Lucene search
K

Spring Security Header Injection

🗓️ 09 Sep 2011 00:00:00Reported by SpringSource Security TeamType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 45 Views

Spring Security Header Injection vulnerability in versions 2.0.0 to 3.0.5 allows injection of additional headers or split response through a crafted logout URL

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2011-2732
9 Sep 201100:00
circl
CVE
CVE-2011-2732
5 Dec 201217:00
cve
Cvelist
CVE-2011-2732
5 Dec 201217:00
cvelist
EUVD
EUVD-2022-2679
3 Oct 202520:07
euvd
Github Security Blog
Improper Control of Generation of Code in Spring Security
17 May 202205:18
github
NVD
CVE-2011-2732
5 Dec 201217:55
nvd
OSV
GHSA-5XM9-RF63-WJ7H Improper Control of Generation of Code in Spring Security
17 May 202205:18
osv
Prion
Crlf injection
5 Dec 201217:55
prion
securityvulns
CVE-2011-2732: Spring Security header injection vulnerability
13 Sep 201100:00
securityvulns
securityvulns
Web applications security vulnerabilities summary (PHP, ASP, JSP, CGI, Perl)
13 Sep 201100:00
securityvulns
Rows per page
`CVE-2011-2732: Spring Security header injection vulnerability  
  
Severity: Important  
  
Versions Affected:  
2.0.0 to 2.0.6  
3.0.0 to 3.0.5  
Earlier versions may also be affected  
  
Description:  
Spring Security allows the use of a parameter (named "spring-security-redirect" by default) to determine the location URL to which a user will be redirected after logging in. This will normally be submitted as part of the login request, so is deemed to be an acceptable use of remote supplied data. However, the functionality is in a base class which is also shared by logout code, so a logout URL could be maliciously constructed to contain a version of this parameter which contained CRLF characters in order to inject additional headers or split the response.  
  
Example:  
A logout link such as  
/mywebapp/logout/spring-security-redirect=%0d%0a%20NewHeader%3ainjectedValue  
could be used to inject the header  
NewHeader:InjectedValue  
to the response  
  
Mitigation:  
Anyone using Spring Security's default logout handling support may be vulnerable, unless they are using a custom LogoutSuccessHandler which does not support this parameter.  
All users may mitigate this issue by upgrading to 3.0.6  
Users of 2.0.x may upgrade to 2.0.7  
  
Fix:  
Support for the use of the parameter has been disabled by default for logout handling in 3.0.6. A default response wrapper has also been used which will raise an exception if the value passed to HttpResponse.sendRedirect contains CR or LF characters.  
  
Credit:  
The issue was discovered by David Mas.  
  
History:  
2011-09-09: Original advisory  
  
References:  
[1] http://www.springsource.com/security/cve-2011-2732  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

09 Sep 2011 00:00Current
0.1Low risk
Vulners AI Score0.1
EPSS0.07155
45