CVE-2021-28490: Cross-Site Request Forgery in OWASP CSRFGuard
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.36347%
CWE
Published
5/24/2022
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.owasp:csrfguard | maven | <= 3.1.0 | 4.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from CSRF tokens being retrievable using only session tokens. The JavaScriptServlet
is responsible for generating dynamic JavaScript containing CSRF tokens. In versions ≤3.1.0, it likely lacked proper origin/referer validation, allowing attackers to exfiltrate tokens via cross-origin requests. The patched version (4.0.0) introduced stricter CORS/referer checks, as implied by advisory notes requiring clients to respect CORS for proper protection. This aligns with the JavaScriptServlet
's role in token injection and its configuration parameters (e.g., referer-pattern
, domain-strict
), which were insufficiently enforced in vulnerable versions.