{"id":"CVE-2024-31205","published":"2024-04-08T14:26:30Z","modified":"2024-08-02T01:46:04Z","title":"Saleor CSRF bypass in refreshToken mutation","vendor":"saleor","product":"saleor","tier":"tail","description":{"text":"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`.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":4.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00193,"percentile":0.09144,"provenance":"source"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://github.com/saleor/saleor/security/advisories/GHSA-ff69-fwjf-3c9w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/saleor/saleor/commit/36699c6f5c99590d24f46e3d5c5b1a3c2fd072e7","tags":["x_refsource_MISC"]}],"priority":{"score":4.8,"factors":[{"name":"EPSS percentile","points":1.83},{"name":"CVSS severity","points":2.94}]},"vendorSlug":"saleor","affectedVersions":[{"vendor":"saleor","product":"saleor","versions":[">= 3.10.0, < 3.14.64",">= 3.15.0, < 3.15.39",">= 3.16.0, < 3.16.39",">= 3.17.0, < 3.17.35",">= 3.18.0, < 3.18.31",">= 3.19.0, < 3.19.19"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-04-09T15:46:25.741486Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-29109","exploited":false,"provenance":"source"}}