NetSight
medium5.3

CVE-2020-5397

CSRF attack via CORS preflight requests with Spring MVC or Spring WebFlux

Impact

Spring Framework, versions 5.2.x prior to 5.2.3 are vulnerable to CSRF attacks 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.

Affected packages

EcosystemPackageAffectedFixed in
mavenorg.springframework:spring-webmvc>= 5.2.0, < 5.2.35.2.3
mavenorg.springframework:spring-webflux>= 5.2.0, < 5.2.35.2.3

Affected products

VendorProductAffected versions
VmwareSpring Framework
from 5.2.0 before 5.2.3
OracleApplication Testing Suite
Version 13.3.0.1
OracleCommunications Brm - Elastic Charging Engine
Versions 11.3, 12.0
OracleCommunications Diameter Signaling Router
from 8.0.0 through 8.2.2
OracleCommunications Element Manager
Versions 8.1.1, 8.2.0, 8.2.1
OracleCommunications Policy Management
Version 12.5.0
OracleCommunications Session Route Manager
Versions 8.1.1, 8.2.0, 8.2.1
OracleEnterprise Manager Base Platform
Version 13.2.1.0
OracleFinancial Services Regulatory Reporting With Agilereporter
Version 8.0.9.2.0
OracleFlexcube Private Banking
Versions 12.0.0, 12.1.0
OracleHealthcare Master Person Index
Version 4.0.2
OracleInsurance Calculation Engine
from 11.0.0 through 11.3.1

Weakness classification

References