CVE-2004-2735 in P4DBinfo

Summary

by MITRE

Cross-site scripting (XSS) vulnerability in P4DB 2.01 and earlier allows remote attackers to inject arbitrary web script or HTML via (1) SET_PREFERENCES parameter in SetPreferences.cgi; (2) BRANCH parameter in branchView.cgi; (3) FSPC and (4) COMPLETE parameters in changeByUsers.cgi; (5) FSPC, (6) LABEL, (7) EXLABEL, (8) STATUS, (9) MAXCH, (10) FIRSTCH, (11) CHOFFSETDISP, (12) SEARCHDESC, (13) SEARCH_INVERT, (14) USER, (15) GROUP, and (16) CLIENT parameters in changeList.cgi; (17) CH parameter in changeView.cgi; (18) USER parameter in clientList.cgi; (19) CLIENT parameter in clientView.cgi; (20) FSPC parameter in depotTreeBrowser.cgi; (21) FSPC parameter in depotStats.cgi; (22) FSPC, (23) REV, (24) ACT, (25) FSPC2, (26) REV2, (27) CH, and (28) CONTEXT parameters in fileDiffView.cgi; (29) FSPC and (30) REV parameters in fileDownLoad.cgi; (31) FSPC, (32) LISTLAB, and (33) SHOWBRANCH parameters in fileLogView.cgi; (34) FSPC and (35) LABEL parameters in fileSearch.cgi; (36) FSPC, (37) REV, and (38) FORCE parameters in fileViewer.cgi; (39) FSPC parameter in filesChangedSince.cgi; (40) GROUP parameter in groupView.cgi; (41) TYPE, (42) FSPC, and (43) REV parameters in htmlFileView.cgi; (44) CMD parameter in javaDataView.cgi; (45) JOBVIEW and (46) FLD parameters in jobList.cgi; (47) JOB parameter in jobView.cgi; (48) LABEL1 and (49) LABEL2 parameters in labelDiffView.cgi; (50) LABEL parameter in labelView.cgi; (51) FSPC parameter in searchPattern.cgi; (52) TYPE, (53) FSPC, and (54) REV parameters in specialFileView.cgi; (55) GROUPSONLY parameter in userList.cgi; or (56) USER parameter in userView.cgi.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 06/30/2018

This cross-site scripting vulnerability exists within P4DB 2.01 and earlier versions of the Perforce Database system, representing a critical security flaw that allows remote attackers to inject malicious web scripts or HTML content into web applications. The vulnerability spans multiple CGI scripts within the system, demonstrating a widespread failure in input validation and output sanitization across the application's interface components. The flaw specifically affects parameters across numerous web pages that process user input without proper sanitization, creating numerous attack vectors that could be exploited to compromise user sessions and execute unauthorized commands.

The technical nature of this vulnerability aligns with CWE-79, which describes cross-site scripting flaws where untrusted data is improperly incorporated into web page content without adequate validation or encoding. This weakness enables attackers to inject malicious scripts that execute in the context of other users' browsers, potentially leading to session hijacking, credential theft, or unauthorized actions within the application. The vulnerability affects both GET and POST parameters across various CGI scripts, indicating a systemic issue in the application's data handling architecture rather than isolated script-level problems.

The operational impact of this vulnerability extends beyond simple script injection, as it could enable attackers to manipulate the Perforce database interface to perform unauthorized operations. Attackers could potentially redirect users to malicious sites, steal session cookies, or modify the application's behavior through injected scripts. The broad scope of affected parameters across multiple CGI scripts suggests that an attacker could leverage this vulnerability across various application functions, from user management to file browsing and change tracking operations. This widespread exposure increases the potential attack surface significantly, as each vulnerable parameter represents a separate entry point for exploitation.

Mitigation strategies should focus on implementing comprehensive input validation and output encoding across all user-controllable parameters within the affected CGI scripts. The system should enforce strict sanitization of all input data before processing, particularly for parameters that directly influence web page content generation. Additionally, implementing proper content security policies and using secure coding practices such as parameterized queries and output encoding can prevent malicious script execution. Organizations should also consider implementing web application firewalls to detect and block suspicious input patterns, while regular security assessments should be conducted to identify similar vulnerabilities in other application components. The vulnerability demonstrates the critical importance of input validation in web applications and aligns with ATT&CK technique T1059.001 for command and script injection, highlighting the need for robust security controls in enterprise collaboration platforms.

Reservation

10/08/2007

Disclosure

12/31/2004

Moderation

accepted

Entry

VDB-23601

CPE

ready

EPSS

0.01263

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!