CVE-2018-1199: Input Validation
Pivotal Spring Security and Spring Framework could allow a remote attacker to bypass security restrictions, caused by the failure to consider URL path parameters when processing security constraints. By adding a URL path parameter with special encodings, an attacker could exploit this vulnerability to bypass access restrictions and gain access to the server and obtain sensitive information.
Other sources
Spring Framework and Spring Security do not consider URL path parameters when processing security constraints. By adding a URL path parameter with special encodings, an attacker may be able to bypass a security constraint and access Spring MVC static resource URLs.
Affected versions include: Spring Security 4.1.0 - 4.1.4, 4.2.0 - 4.2.3 and 5.0 Spring Framework 4.3.0 - 4.3.14, and 5.0.0 - 5.0.2
Older unmaintained versions of Spring Security and Spring Framework may also be affected.
External References:
https://pivotal.io/security/cve-2018-1199
Mitigation:
As a general precaution, users are encouraged to separate public and private resources. For example, separating static resources and mapping them to /resources/public/ and /resources/private/ is preferred to having one common root with mixed public and private resource content underneath.
— Red Hat
Spring Security (Spring Security 4.1.x before 4.1.5, 4.2.x before 4.2.4, and 5.0.x before 5.0.1; and Spring Framework 4.3.x before 4.3.14 and 5.0.x before 5.0.3) does not consider URL path parameters when processing security constraints. By adding a URL path parameter with special encodings, an attacker may be able to bypass a security constraint. The root cause of this issue is a lack of clarity regarding the handling of path parameters in the Servlet Specification. Some Servlet containers include path parameters in the value returned for getPathInfo() and some do not. Spring Security uses the value returned by getPathInfo() as part of the process of mapping requests to security constraints. In this particular attack, different character encodings used in path parameters allows secured Spring MVC static resource URLs to be bypassed.
Affected Software
Remediation
Information
Event History
Frequently Asked Questions
What is the vulnerability ID for this security issue?
The vulnerability ID for this security issue is CVE-2018-1199.
What is the severity of CVE-2018-1199?
The severity of CVE-2018-1199 is high, with a severity value of 7.5.
Which software is affected by CVE-2018-1199?
The software affected by CVE-2018-1199 includes Pivotal Spring Security (versions before 4.1.5, 4.2.4, and 5.0.1) and Spring Framework (versions before 4.3.14 and 5.0.3).
How can a remote attacker exploit CVE-2018-1199?
A remote attacker can exploit CVE-2018-1199 by bypassing security restrictions and adding a URL path parameter with special encodings.
Are there any references for more information about CVE-2018-1199?
Yes, you can find more information about CVE-2018-1199 at the following references: [link1](https://pivotal.io/security/cve-2018-1199), [link2](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1540033), [link3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1540032).