VDB
Sign up
MEDIUM6.1

GHSA-w4fj-87j5-f25c

XWiki has Reflected Cross-Site Scripting (XSS) in page history compare

Quick fix

GHSA-w4fj-87j5-f25c — org.xwiki.platform:xwiki-platform-web-templates: upgrade to the fixed version with the command below.

# pom.xml: bump <version>16.10.16</version> for org.xwiki.platform:xwiki-platform-web-templates

Details

### Impact A reflected cross-site scripting vulnerability (XSS) in the compare view between revisions of a page allows executing JavaScript code in the user's browser. If the current user is an admin, this can not only affect the current user but also the confidentiality, integrity and availability of the whole XWiki instance.

### Patches The problem has been patched by properly escaping the URL parameters.

### Workarounds The [patch](https://github.com/xwiki/xwiki-platform/commit/3c8a2ec985641367015c2db937574fcd360c788c#diff-a5e75a4e3820a63c02a32666dda67c73ee7885ab8e7f67e52cfcb3be5a13326e) can be applied manually to `templates/changesdoc.vm` in the deployed WAR.

### Attribution

XWiki thanks Mike Cole @mikecole-mg for discovering and reporting this vulnerability.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.xwiki.platform:xwiki-platform-web-templates
Introduced in: 10.4-rc-1Fixed in: 16.10.16
Fix# pom.xml: bump <version>16.10.16</version> for org.xwiki.platform:xwiki-platform-web-templates
Maven/org.xwiki.platform:xwiki-platform-web-templates
Introduced in: 17.0.0-rc-1Fixed in: 17.4.8
Fix# pom.xml: bump <version>17.4.8</version> for org.xwiki.platform:xwiki-platform-web-templates
Maven/org.xwiki.platform:xwiki-platform-web-templates
Introduced in: 17.5.0-rc-1Fixed in: 17.10.1
Fix# pom.xml: bump <version>17.10.1</version> for org.xwiki.platform:xwiki-platform-web-templates

References