Access-token theft via empty refreshToken argument
Published Apr 8, 2024 · Updated Aug 2, 2024
CSRF bypass in Saleor's refreshToken mutation allows remote attackers to obtain a signed-in user's JWT access token through a crafted request. get_refresh_token treats an explicitly empty refreshToken argument as false and substitutes JWT_REFRESH_TOKEN_COOKIE_NAME, bypassing CSRF validation before issuing a valid token. A victim must be signed in and interact with attacker-controlled content; browser CORS blocks the attack by default unless the deployment allows the attacker's origin.
Summary
What happened
CSRF bypass in Saleor's refreshToken mutation allows remote attackers to obtain a signed-in user's JWT access token through a crafted request. get_refresh_token treats an explicitly empty refreshToken argument as false and substitutes JWT_REFRESH_TOKEN_COOKIE_NAME, bypassing CSRF validation before issuing a valid token. A victim must be signed in and interact with attacker-controlled content; browser CORS blocks the attack by default unless the deployment allows the attacker's origin.
The record
- CVE
- CVE-2024-31205
- Published
- Apr 8, 2024
- Updated
- Aug 2, 2024
- Vendor
- Saleor
- Product
- Saleor
- Classifications
- CWE-352, T1528
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 8, 2024CVE publishedPublication date reported by the CVE source.
- Aug 2, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 3.10.0, < 3.14.64
- Affected versionversion=>= 3.15.0, < 3.15.39
- Affected versionversion=>= 3.16.0, < 3.16.39
- Affected versionversion=>= 3.17.0, < 3.17.35
- Affected versionversion=>= 3.18.0, < 3.18.31
- Affected versionversion=>= 3.19.0, < 3.19.19
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo