Cross-Site Request Forgery (CSRF) Affecting org.springframework:spring-webflux package, versions [5.2.0, 5.2.3)
Threat Intelligence
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-ORGSPRINGFRAMEWORK-542932
- published 22 Jan 2020
- disclosed 16 Jan 2020
- credit Eric Zimanyi
Introduced: 16 Jan 2020
CVE-2020-5397 Open this link in a new tabHow to fix?
Upgrade org.springframework:spring-webflux
to version 5.2.3 or higher.
Overview
org.springframework:spring-webflux is a Spring Framework module that contains support for reactive HTTP and WebSocket clients as well as for reactive server web applications including REST, HTML browser, and WebSocket style interactions.
Affected versions of this package are vulnerable to Cross-Site Request Forgery (CSRF) through CORS preflight requests that target Spring MVC (spring-webmvc
module) or Spring WebFlux (spring-webflux
module) endpoints. Only non-authenticated endpoints are vulnerable because preflight requests should not include credentials and therefore requests should fail authentication. However a notable exception to this are Chrome based browsers when using client certificates for authentication since Chrome sends TLS client certificates in CORS preflight requests in violation of spec requirements. No HTTP body can be sent or received as a result of this attack.