Overview
- Description
- Xwiki commons is the common modules used by other XWiki top level projects. The HTML sanitizer that is included in XWiki since version 14.6RC1 allowed form and input HTML tags. In the context of XWiki, this allows an attacker without script right to either create forms that can be used for phishing attacks or also in the context of a sheet, the attacker could add an input like `{{html}}<input type="hidden" name="content" value="{{groovy}}println("Hello from Groovy!")" />{{/html}}` that would allow remote code execution when it is submitted by an admin (the sheet is rendered as part of the edit form). The attacker would need to ensure that the edit form looks plausible, though, which can be non-trivial as without script right the attacker cannot display the regular content of the document. This has been patched in XWiki 14.10.6 and 15.2RC1 by removing the central form-related tags from the list of allowed tags. Users are advised to upgrade. As a workaround an admin can manually disallow the tags by adding `form, input, select, textarea, button` to the configuration option `xml.htmlElementSanitizer.forbidTags` in the `xwiki.properties` configuration file.
- Source
- security-advisories@github.com
- NVD status
- Analyzed
Risk scores
CVSS 3.1
- Type
- Primary
- Base score
- 5.4
- Impact score
- 2.7
- Exploitability score
- 2.3
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Severity
- MEDIUM
Social media
- Hype score
- Not currently trending
Configurations
[ { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:a:xwiki:commons:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "28D2C022-6760-4865-B087-19EB62B226A3", "versionEndExcluding": "14.10.6", "versionStartIncluding": "14.6" }, { "criteria": "cpe:2.3:a:xwiki:commons:15.0:-:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "B5E0E97B-07B7-43D5-BF0B-A20F41AB1B5B" }, { "criteria": "cpe:2.3:a:xwiki:commons:15.0:rc1:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "3686A321-60C2-4BCE-8D0B-32F56D1D2C63" }, { "criteria": "cpe:2.3:a:xwiki:commons:15.1:-:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "0E3494D6-09D1-426B-BC58-5B11F2371645" }, { "criteria": "cpe:2.3:a:xwiki:commons:15.1:rc1:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "C4FFC387-3B28-4875-819C-B0847083CD55" } ], "operator": "OR" } ] } ]