CVE-2021-32730: No CSRF protection on the password change form
5.7
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.38982%
CWE
Published
7/2/2021
Updated
2/1/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.xwiki.platform:xwiki-platform-administration-ui | maven | < 12.10.5 | 12.10.5 |
| org.xwiki.platform:xwiki-platform-administration-ui | maven | >= 13.0, < 13.2 | 13.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing CSRF protection in the password change form handler. The commit diff shows:
- A CSRF token field was added to the form template
- A CSRF check was implemented in the validateFields macro using services.csrf.isTokenValid()
- Before the patch, this validation was absent, making the password reset functionality accept unauthenticated requests. The validateFields macro is the core validation routine that processes form submissions, and its lack of CSRF validation directly enabled the exploit scenario described in the advisory.