Cross-site Request Forgery (CSRF) Affecting com.softwaremill.akka-http-session:core_2.12 Open this link in a new tab package, versions [0,0.6.1)


0.0
medium
  • Attack Complexity

    Low

  • User Interaction

    Required

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-1046674

  • published

    21 Jan 2021

  • disclosed

    24 Nov 2020

  • credit

    Willem Vermeer

How to fix?

Upgrade com.softwaremill.akka-http-session:core_2.12 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