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.
Remediation
References
https://snyk.io/vuln/SNYK-JAVA-COMSOFTWAREMILLAKKAHTTPSESSION-1046675
https://github.com/softwaremill/akka-http-session/pull/79
https://snyk.io/vuln/SNYK-JAVA-COMSOFTWAREMILLAKKAHTTPSESSION-1058933
https://github.com/softwaremill/akka-http-session/issues/77
https://snyk.io/vuln/SNYK-JAVA-COMSOFTWAREMILLAKKAHTTPSESSION-1046674
Related Vulnerabilities
CVE-2017-18077 Vulnerability in maven package org.webjars.npm:brace-expansion
CVE-2022-24066 Vulnerability in npm package simple-git
CVE-2013-4271 Vulnerability in maven package org.restlet:org.restlet
CVE-2018-11758 Vulnerability in maven package org.apache.cayenne:cayenne-server
CVE-2019-16546 Vulnerability in maven package org.jenkins-ci.plugins:google-compute-engine