CVE-2020-28452 Cross-site Request Forgery (CSRF)
Attackers can bypass CSRF protection in Akka HTTP session library by forging requests with matching token values, potentially allowing unauthorized actions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-28452?
CVE-2020-28452 is a medium-severity vulnerability in com.softwaremill.akka-http-session:core_2.11, published on 20 Jan 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
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.
Weakness: CWE-352
Which versions are affected by CVE-2020-28452?
2 open source packages ship an affected version, including com.softwaremill.akka-http-session:core_2.12. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.softwaremill.akka-http-session:core_2.12 Maven | From 0.3.0 | 0.6.1 |
com.softwaremill.akka-http-session:core_2.12 Maven | From 0.3.0 | 0.6.1 |
Products include Softwaremill Akka-Http-Session.
How do I fix CVE-2020-28452?
Upgrade com.softwaremill.akka-http-session:core_2.12 to 0.6.1 or later.
Is CVE-2020-28452 being exploited?
There is no known exploitation of CVE-2020-28452 in the wild and no public exploit code.
Other vulnerabilities in com.softwaremill.akka-http-session:core_2.11
Sources
Also known as GHSA-4jf5-jggp-g56j.