CVE-2014-3527
Authorization Bypass in Spring Security
Description
When using Spring Security's CAS Proxy ticket authentication a malicious CAS Service could trick another CAS Service into authenticating a proxy ticket that was not associated. This is due to the fact that the proxy ticket authentication uses the information from the HttpServletRequest which is populated based upon untrusted information within the HTTP request.
This means if there are access control restrictions on which CAS services can authenticate to one another, those restrictions can be bypassed.
If users are not using CAS Proxy tickets and not basing access control decisions based upon the CAS Service, then there is no impact to users.
Mitigation
Users of affected versions should apply the following mitigation:
- Users of 3.2x should upgrade to 3.2.5 or later
- Users of 3.1.x should upgrade to 3.1.7 or later
Credit
This issue was identified by David Ohsie and brought to our attention by the CAS Development team.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.security » spring-security-core | < 3.1.7>= 3.2.0, < 3.2.5 | 3.1.7, 3.2.5 |
Blast radius
49% of the dependent artifacts (2,014) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 19,649 |
| 2 hops | 59,817 |
| 3 hops | 83,625 |
| 4 hops | 24,209 |
| 5 hops | 21,912 |
| 6 hops | 11,315 |
Most used dependents
- org.springframework.boot » spring-boot-starter-security3,609 usages
- org.springframework.security » spring-security-web2,136 usages
- org.springframework.security » spring-security-config2,066 usages
- com.atlassian.jira » jira-api893 usages
- com.atlassian.confluence » confluence724 usages
- com.atlassian.jira » jira-core554 usages
- org.springframework.security.oauth » spring-security-oauth2554 usages
- org.springframework.security » spring-security-cas550 usages
- org.springframework.security » spring-security-ldap457 usages
- org.springframework.security » spring-security-taglibs333 usages
- org.geoserver » gs-main299 usages
- com.atlassian.jira » jira-tests298 usages
- com.atlassian.jira » atlassian-jira-pageobjects230 usages
- org.springframework.security » spring-security-acl222 usages
- com.atlassian.jira » jira-func-tests212 usages
Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2014-3527 | nvd.nist.gov |
| Web | spring-projects/spring-security issue #2907 | github.com |
| Web | spring-projects/spring-security commit 934937d | github.com |
| Web | spring-projects/spring-security | github.com |
| Web | security/cve-2014-3527 | pivotal.io |
