CVE-2023-36471CWE-74

HTML sanitizer allows form elements in restricted in org.xwiki.commons:xwiki-commons-xml

Critical · published June 29, 2023

CVSS v3.1
9.1
EPSS
1%
Percentile
63.4
In the wild
Unconfirmed
What it is

🚨 A crafty ability to slip in forms could lead to full remote code execution! An attacker can exploit XWiki's HTML sanitizer, turning the site into a phishing playground! 🔥 Think of it like a sneaky delivery service allowing an attacker to drop off phony forms at your office, disguised as official documents. Without any verification on what's inside those packages, you're opening your doors wide to a world of trouble! An attacker could create deceptive forms, tricking unsuspecting admins into executing malicious code. This could lead to unauthorized access, data breaches, or even complete takeover of the affected XWiki instance—absolutely devastating!

Put simply

Think of it like a sneaky delivery service allowing an attacker to drop off phony forms at your office, disguised as official documents. Without any verification on what's inside those packages, you're opening your doors wide to a world of trouble! This vulnerability arises from the HTML sanitizer in XWiki that permits certain form-related tags, allowing attackers to inject harmful content that executes when processed by an admin. This means that a simple hidden input can trigger remote code execution when the admin submits the form.

What to do

An attacker could create deceptive forms, tricking unsuspecting admins into executing malicious code. This could lead to unauthorized access, data breaches, or even complete takeover of the affected XWiki instance—absolutely devastating! Immediately upgrade to XWiki versions 14.10.6 or 15.2RC1 to patch this vulnerability. As a temporary measure, admins should manually disallow the tags by adding `form, input, select, textarea, button` to the `xml.htmlElementSanitizer.forbidTags` configuration option in `xwiki.properties`. Don’t delay on this one! You've got this! By following these steps, you'll ensure your XWiki environment is secure in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01029 · 63.4th percentile
Weakness
CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Published
2023-06-29T19:44Z
EPSS history
Timeline
  • 29 JUN 19:44Z
    HTML sanitizer allows form elements in restricted in org.xwiki.commons:xwiki-commons-xml
    cvelistv5