header-logo
Suggest Exploit
vendor:
thttpd
by:
SecurityFocus
7.5
CVSS
HIGH
Cross-Site Scripting
79
CWE
Product Name: thttpd
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: FREESCO
2002

thttpd Cross-Site Scripting Vulnerability

thttpd is prone to a cross-site scripting vulnerability in the CGI test script. This could permit a remote attacker to create a malicious link to the web server that includes hostile HTML and script code. If this link were followed, the hostile code may be rendered in the web browser of the victim user. This would occur in the security context of the web server and may allow for theft of cookie-based authentication credentials or other attacks.

Mitigation:

Ensure that user-supplied input is properly sanitized before being used in the generation of web pages.
Source

Exploit-DB raw data:

source: https://www.securityfocus.com/bid/9474/info

thttpd is prone to a cross-site scripting vulnerability in the CGI test script. This could permit a remote attacker to create a malicious link to the web server that includes hostile HTML and script code. If this link were followed, the hostile code may be rendered in the web browser of the victim user. This would occur in the security context of the web server and may allow for theft of cookie-based authentication credentials or other attacks.

It should be noted that FREESCO includes an embedded version of thttpd and is also prone to this vulnerability. 

http://www.example.com/cgi/example?test=<script>alert('xss')</script>