W3C CERN httpd Proxy Cross-Site Scripting Vulnerability

BID:5447

Info

W3C CERN httpd Proxy Cross-Site Scripting Vulnerability

Bugtraq ID: 5447
Class: Input Validation Error
CVE: CVE-2002-1445
Remote: Yes
Local: No
Published: Aug 12 2002 12:00AM
Updated: Jul 11 2009 03:56PM
Credit: Reported by "TAKAGI, Hiromitsu" <[email protected]>.
Vulnerable: W3C httpd 3.0
Not Vulnerable:

Discussion

W3C CERN httpd Proxy Cross-Site Scripting Vulnerability

CERN httpd is a freely available HTTP server and HTTP proxy server available from the W3C.

The httpd Proxy is vulnerable to a cross site scripting attack.

The condition is present because of the way URLS are displayed in error messages. It is possible for arbitrary HTML or script code to be embedded in the error page through a maliciously constructed link. When the error is displayed, the script will be executed within the context of the proxy server's error page on the client browser. This may permit various web-based attacks including stealing cookies, etc.

Exploit / POC

W3C CERN httpd Proxy Cross-Site Scripting Vulnerability

"TAKAGI, Hiromitsu" &lt;[email protected]&gt; submitted this example:

Accessing the following URL with the browser configured to use CERN httpd as a proxy,

http://nonexistenthost.google.com/&lt;SCRIPT&gt;document.write(document.cookie)&lt;/SCRIPT&gt;

will cause CERN httpd Proxy to produce output like this:
========================================================
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;TITLE&gt;Error Message&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;H1&gt;Fatal Error 500&lt;/H1&gt;
Can't Access Document: http://nonexistenthost.google.com/&lt;SCRIPT&gt;document.write(document.cookie)&lt;/SCRIPT&gt;.
&lt;P&gt;
&lt;B&gt;Reason:&lt;/B&gt; Can't locate remote host: nonexistenthost.google.com.
&lt;P&gt;
...
========================================================

Solution / Fix

W3C CERN httpd Proxy Cross-Site Scripting Vulnerability

Solution:
Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.

References

W3C CERN httpd Proxy Cross-Site Scripting Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report