CVE-2022-23622
Published Feb 9, 2022
Last updated 3 years ago
Overview
- Description
- XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions there is a cross site scripting (XSS) vector in the `registerinline.vm` template related to the `xredirect` hidden field. This template is only used in the following conditions: 1. The wiki must be open to registration for anyone. 2. The wiki must be closed to view for Guest users or more specifically the XWiki.Registration page must be forbidden in View for guest user. A way to obtain the second condition is when administrators checked the "Prevent unregistered users from viewing pages, regardless of the page rights" box in the administration rights. This issue is patched in versions 12.10.11, 14.0-rc-1, 13.4.7, 13.10.3. There are two main ways for protecting against this vulnerability, the easiest and the best one is by applying a patch in the `registerinline.vm` template, the patch consists in checking the value of the xredirect field to ensure it matches: `<input type="hidden" name="xredirect" value="$escapetool.xml($!request.xredirect)" />`. If for some reason it's not possible to patch this file, another workaround is to ensure "Prevent unregistered users from viewing pages, regardless of the page rights" is not checked in the rights and apply a better right scheme using groups and rights on spaces.
- Source
- security-advisories@github.com
- NVD status
- Analyzed
Social media
- Hype score
- Not currently trending
Risk scores
CVSS 3.1
- Type
- Primary
- Base score
- 6.1
- Impact score
- 2.7
- Exploitability score
- 2.8
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Severity
- MEDIUM
CVSS 2.0
- Type
- Primary
- Base score
- 4.3
- Impact score
- 2.9
- Exploitability score
- 8.6
- Vector string
- AV:N/AC:M/Au:N/C:N/I:P/A:N
Weaknesses
- security-advisories@github.com
- CWE-79
Configurations
[ { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "E4739F1E-1CC5-41FC-A93D-08807DEF75CA", "versionEndIncluding": "12.10.10" }, { "criteria": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "5C2AF753-69A0-4B05-87BF-A3020F544A1C", "versionEndIncluding": "13.4.6", "versionStartIncluding": "13.0" }, { "criteria": "cpe:2.3:a:xwiki:xwiki:13.10:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "79E24FC2-CB28-4A00-AB05-D7068C8D8D39" }, { "criteria": "cpe:2.3:a:xwiki:xwiki:13.10.1:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "D1873519-3D31-4D0E-B442-597962CB2ED7" }, { "criteria": "cpe:2.3:a:xwiki:xwiki:13.10.2:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "557EAEC1-CDFD-41A8-A609-28049D999AB6" }, { "criteria": "cpe:2.3:a:xwiki:xwiki:14.0:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "8464428C-4BC2-49F9-9040-5D98E7C0B776" } ], "operator": "OR" } ] } ]