Secunia Security Advisory - Two vulnerabilities have been reported in Apache Tomcat, which can be exploited by malicious people to conduct cross-site scripting attacks or to bypass certain security restrictions.
9e6022562fca1ccdcfb08a0887680abe3fbcdfc6ad391bd4cbc151b5c51a64d4
----------------------------------------------------------------------
Want a new job?
http://secunia.com/secunia_security_specialist/
http://secunia.com/hardcore_disassembler_and_reverse_engineer/
International Partner Manager - Project Sales in the IT-Security
Industry:
http://corporate.secunia.com/about_secunia/64/
----------------------------------------------------------------------
TITLE:
Apache Tomcat Cross-Site Scripting and Security Bypass
SECUNIA ADVISORY ID:
SA31379
VERIFY ADVISORY:
http://secunia.com/advisories/31379/
CRITICAL:
Moderately critical
IMPACT:
Security Bypass, Cross Site Scripting
WHERE:
>From remote
SOFTWARE:
Apache Tomcat 5.x
http://secunia.com/product/3571/
Apache Tomcat 4.x
http://secunia.com/product/328/
DESCRIPTION:
Two vulnerabilities have been reported in Apache Tomcat, which can be
exploited by malicious people to conduct cross-site scripting attacks
or to bypass certain security restrictions.
1) Input passed to the "HttpServletResponse.sendError()" function is
not properly sanitised before being returned to the user in the HTTP
"Reason-Phrase". This can be exploited to execute arbitrary HTML and
script code in a user's browser session in context of an affected
site.
2) The vulnerability is caused due to the application normalising the
target path before removing the query string when using a
"RequestDispatcher". This can be exploited to access normally
restricted files via e.g. directory traversal attacks.
The vulnerabilities are reported in the following versions:
* 4.1.0 through 4.1.37
* 5.5.0 through 5.5.26
SOLUTION:
Fixed in the SVN repository.
Apache Tomcat 5.5.x:
http://svn.apache.org/viewvc?rev=680949&view=rev
http://svn.apache.org/viewvc?rev=680947&view=rev
Apache Tomcat 4.1.x:
http://svn.apache.org/viewvc?rev=680950&view=rev
http://svn.apache.org/viewvc?rev=680948&view=rev
http://svn.apache.org/viewvc?rev=680947&view=rev
PROVIDED AND/OR DISCOVERED BY:
The vendor credits:
1) Konstantin Kolinko
2) Stefano Di Paola of Minded Security Research Labs
ORIGINAL ADVISORY:
Apache:
http://tomcat.apache.org/security-4.html
http://tomcat.apache.org/security-5.html
http://marc.info/?l=tomcat-user&m=121759964027135&w=2
http://marc.info/?l=tomcat-user&m=121759966427171&w=2
----------------------------------------------------------------------
About:
This Advisory was delivered by Secunia as a free service to help
everybody keeping their systems up to date against the latest
vulnerabilities.
Subscribe:
http://secunia.com/secunia_security_advisories/
Definitions: (Criticality, Where etc.)
http://secunia.com/about_secunia_advisories/
Please Note:
Secunia recommends that you verify all advisories you receive by
clicking the link.
Secunia NEVER sends attached files with advisories.
Secunia does not advise people to install third party patches, only
use those supplied by the vendor.
----------------------------------------------------------------------