Cross-site Request Forgery (CSRF) Affecting com.softwaremill.akka-http-session:core_2.13 package, versions [0,0.6.1)


0.0
medium

Snyk CVSS

    Attack Complexity Low
    User Interaction Required

    Threat Intelligence

    EPSS 0.13% (47th percentile)
Expand this section
NVD
8.8 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JAVA-COMSOFTWAREMILLAKKAHTTPSESSION-1058933
  • published 21 Jan 2021
  • disclosed 24 Nov 2020
  • credit Willem Vermeer

How to fix?

Upgrade com.softwaremill.akka-http-session:core_2.13 to version 0.6.1 or higher.

Overview

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF). 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.

References