{"vuid":"VU#124003","idnumber":"124003","name":"Apache HTTP Server on Win32 systems does not securely handle input passed to CGI programs","keywords":["Apache","Microsoft Windows","cmd.exe","default script","remote command execution","pipe character",".bat",".cmd","win32","atest"],"overview":"A vulnerability in the Apache HTTP Server running on Win32 systems (Windows 9x/Me, Windows NT/2000/XP) could allow an attacker to execute commands with the privileges of the web server process.","clean_desc":"The Apache HTTP Server is a freely available web server that runs on a variety of operating systems including Unix, Linux, and Microsoft Windows (Win32). Apache supports the Common Gateway Interface (CGI) that defines a standard interface between the HTTP server and external applications. On Win32 systems, batch or command shell programs (files typically with .bat or .cmd extensions) can be executed via the CGI interface, and these programs are executed within a full command shell (command.com on Windows 9x/Me, cmd.exe in Windows NT/2000/XP). Ory Segal of Sanctum has reported a vulnerability in which Apache on Win32 does not securely handle the arguments passed to batch or command shell CGI programs. By crafting a CGI request containing the \"|\" (pipe) character, an attacker can cause the program to execute arbitrary commands with the privileges of the Apache process. By default, Apache is installed with local SYSTEM privileges in Windows NT, 2000, and XP. In Windows 9x/Me, all programs including Apache run with full privileges.","impact":"An unauthenticated, remote attacker could execute commands on the vulnerable server with the privileges of the Apache process. By default, Apache runs with local SYSTEM privileges in Windows NT, 2000, and XP. In Windows 9x/Me, Apache runs with full privileges.","resolution":"Upgrade Apache\nThis vulnerability is resolved in Apache 1.3.24 and 2.0.34-beta. Please see the release Announcement for version 1.3.24. The Apache HTTP Server is available from the Apache web site.","workarounds":"Run Apache with User privileges On Windows NT, 2000, and XP systems, the Apache service can be configured to run as a specified user instead of local SYSTEM. By carefully specifying the privileges of the Apache user, an administrator can restrict the ability of a CGI program to access files and execute commands.","sysaffected":"","thanks":"The CERT/CC acknowledges Ory Segal for reporting this vulnerability.","author":"This document was written by Art Manion.","public":["http://www.apache.org/dist/httpd/","http://www.apache.org/dist/httpd/CHANGES_1.3","http://www.apache.org/dist/httpd/Announcement.html","http://www.securityfocus.com/bid/4335","http://online.securityfocus.com/archive/1/263370","http://www.w3.org/CGI/","http://hoohoo.ncsa.uiuc.edu/cgi/"],"cveids":["CVE-2002-0061"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2002-03-21T18:45:46Z","publicdate":"2002-03-21T00:00:00Z","datefirstpublished":"2002-04-11T14:42:27Z","dateupdated":"2002-05-28T23:10:19Z","revision":18,"vrda_d1_directreport":"","vrda_d1_population":"","vrda_d1_impact":"","cam_widelyknown":"15","cam_exploitation":"0","cam_internetinfrastructure":"3","cam_population":"7","cam_impact":"13","cam_easeofexploitation":"18","cam_attackeraccessrequired":"20","cam_scorecurrent":"11.0565","cam_scorecurrentwidelyknown":"14.12775","cam_scorecurrentwidelyknownexploited":"26.41275","ipprotocol":"","cvss_accessvector":"","cvss_accesscomplexity":"","cvss_authentication":null,"cvss_confidentialityimpact":"","cvss_integrityimpact":"","cvss_availabilityimpact":"","cvss_exploitablity":null,"cvss_remediationlevel":"","cvss_reportconfidence":"","cvss_collateraldamagepotential":"","cvss_targetdistribution":"","cvss_securityrequirementscr":"","cvss_securityrequirementsir":"","cvss_securityrequirementsar":"","cvss_basescore":"","cvss_basevector":"","cvss_temporalscore":"","cvss_environmentalscore":"","cvss_environmentalvector":"","metric":11.0565,"vulnote":null}