CVE-2008-1947: XSS

Published May 14, 2008
·
Updated

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

40 affected componentsFixes available
redhat/tomcat5<0:5.5.23-0jpp.7.el5_2.1
0:5.5.23-0jpp.7.el5_2.1
Apache Tomcat=5.5.9
Apache Tomcat=5.5.10
Apache Tomcat=5.5.11
Apache Tomcat=5.5.12
Apache Tomcat=5.5.13
Apache Tomcat=5.5.14
Apache Tomcat=5.5.15
Apache Tomcat=5.5.16
Apache Tomcat=5.5.17
Apache Tomcat=5.5.18
Apache Tomcat=5.5.19
Apache Tomcat=5.5.20
Apache Tomcat=5.5.21
Apache Tomcat=5.5.22
Apache Tomcat=5.5.23
Apache Tomcat=5.5.24
Apache Tomcat=5.5.25
Apache Tomcat=5.5.26
Apache Tomcat=6.0.0
Apache Tomcat=6.0.1
Apache Tomcat=6.0.2
Apache Tomcat=6.0.3
Apache Tomcat=6.0.4
Apache Tomcat=6.0.5
Apache Tomcat=6.0.6
Apache Tomcat=6.0.7
Apache Tomcat=6.0.8
Apache Tomcat=6.0.9
Apache Tomcat=6.0.10
Apache Tomcat=6.0.11
Apache Tomcat=6.0.12
Apache Tomcat=6.0.13
Apache Tomcat=6.0.14
Apache Tomcat=6.0.15
Apache Tomcat=6.0.16
maven/org.apache.tomcat.embed:tomcat-embed-core>=6.0.0<=6.0.16
6.0.18
maven/org.apache.tomcat.embed:tomcat-embed-core>=5.5.9<=5.5.26
5.5.27
maven/org.apache.tomcat:tomcat>=6.0.0<=6.0.16
6.0.18
maven/org.apache.tomcat:tomcat>=5.5.9<=5.5.26
5.5.27

Event History

May 14, 2008
Data Sourced
via Red Hat·01:33 PM
DescriptionSeverityAffected Software
Jun 2, 2008
CVE Published
via Red Hat·12:00 AM
Jun 4, 2008
CVE Published
via MITRE·07:17 PM
Data Sourced
via MITRE·07:17 PM
Description
May 1, 2022
Advisory Published
via GitHub·11:45 PM
Data Sourced
via GitHub·11:45 PM
DescriptionWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2008-1947?

CVE-2008-1947 is classified as a medium severity cross-site scripting vulnerability in Apache Tomcat.

2

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.

3

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.

4

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.

5

What attack vector does CVE-2008-1947 utilize?

CVE-2008-1947 can be exploited via the name parameter in the host-manager application.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203