Vulnerability · Published Jan 20, 2021 · Assigned by snyk
CVE-2020-28452Cross-site Request Forgery (CSRF)
Medium 6.3
In plain English
A medium-severity security flaw in com.softwaremill.akka-http-session:core_2.11. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
This affects the package com.softwaremill.akka-http-session:core_2.12 from 0 and before 0.6.1; all versions of package com.softwaremill.akka-http-session:core_2.11; the package com.softwaremill.akka-http-session:core_2.13 from 0 and before 0.6.1. CSRF protection can be bypassed by forging a request that contains the same value for both the X-XSRF-TOKEN header and the XSRF-TOKEN cookie value, as the check in randomTokenCsrfProtection only checks that the two values are equal and non-empty.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | com.softwaremill.akka-http-session:core_2.12 | 0.6.1 | GHSA-4jf5-jggp-g56j |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | com.softwaremill.akka-http-session:core_2.12 | 0 – before unspecifiedunspecified – before 0.6.1 |
| n/a | com.softwaremill.akka-http-session:core_2.11 | 0 – before unspecified |
| n/a | com.softwaremill.akka-http-session:core_2.13 | 0 – before unspecifiedunspecified – before 0.6.1 |
References
- https://github.com/softwaremill/akka-http-session/issues/77 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-COMSOFTWAREMILLAKKAHTTPSESSION-1046674 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-COMSOFTWAREMILLAKKAHTTPSESSION-1046675 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-COMSOFTWAREMILLAKKAHTTPSESSION-1058933 x_refsource_MISC
- https://github.com/softwaremill/akka-http-session/pull/79 x_refsource_MISC