CVE-2024-31205
Last modified
CVE-2024-31205 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. Saleor is an e-commerce platform. Starting in version 3.10.0 and prior to versions 3.14.64, 3.15.39, 3.16.39, 3.17.35, 3.18.31, and 3.19.19, an attacker may bypass cross-set request forgery (CSRF) validation when calling refresh token mutation with empty string. EPSS estimates a 0.19% chance of exploitation in the next 30 days.
Description
Saleor is an e-commerce platform. Starting in version 3.10.0 and prior to versions 3.14.64, 3.15.39, 3.16.39, 3.17.35, 3.18.31, and 3.19.19, an attacker may bypass cross-set request forgery (CSRF) validation when calling refresh token mutation with empty string. When a user provides an empty string in `refreshToken` mutation, while the token persists in `JWT_REFRESH_TOKEN_COOKIE_NAME` cookie, application omits validation against CSRF token and returns valid access token. Versions 3.14.64, 3.15.39, 3.16.39, 3.17.35, 3.18.31, and 3.19.19 contain a patch for the issue. As a workaround, one may replace `saleor.graphql.account.mutations.authentication.refresh_token.py.get_refresh_token`. This will fix the issue, but be aware, that it returns `JWT_MISSING_TOKEN` instead of `JWT_INVALID_TOKEN`.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Saleor | Saleor | >= 3.10.0, < 3.14.64 |
| Saleor | Saleor | >= 3.15.0, < 3.15.39 |
| Saleor | Saleor | >= 3.16.0, < 3.16.39 |
| Saleor | Saleor | >= 3.17.0, < 3.17.35 |
| Saleor | Saleor | >= 3.18.0, < 3.18.31 |
| Saleor | Saleor | >= 3.19.0, < 3.19.19 |
References
- https://github.com/saleor/saleor/security/advisories/GHSA-ff69-fwjf-3c9wMitigation, Patch, Vendor Advisory
- https://github.com/saleor/saleor/security/advisories/GHSA-ff69-fwjf-3c9wMitigation, Patch, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-31205?
How severe is CVE-2024-31205?
How do I fix CVE-2024-31205?
Are you affected by CVE-2024-31205?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
