{"vuid":"VU#434566","idnumber":"434566","name":"Apache mod_rewrite vulnerable to buffer overflow via crafted regular expression","keywords":["Apache","buffer overflow","mod_rewrite"],"overview":"A vulnerability in a supplementary module to the Apache HTTP server could allow an attacker to execute arbitrary code on an affected web server under certain circumstances.","clean_desc":"The Apache HTTP server distribution includes a number of supplemental modules that provide additional functionality to the web server. One of these modules, mod_rewrite, provides a rule-based rewriting engine to rewrite requested URLs \"on the fly\" based regular expressions. A buffer overflow has been discovered in the way that mod_rewrite handles regular expressions containing more than 9 captures (stored strings matching a particular pattern). This flaw results in a remotely exploitable vulnerability on web servers that specify such a regular expression to the mod_rewrite module in their configuration files.","impact":"An attacker may be able to execute arbitrary code in the context of the web server user (e.g., \"apache\", \"httpd\", \"nobody\", etc.). The attacker would have to have the ability to supply a specially crafted configuration file (e.g., .htaccess or httpd.conf) to the Apache server in order to mount this attack.","resolution":"Apply a patch from the vendor Patches have been released to address this vulnerability. Please see the Systems Affected section of this document for more details.","workarounds":"Workarounds Disable mod_rewrite if it is not required in your web server configuration. Instructions for doing this can be found in the Apache HTTP server documentation. Sites, particularly those that are not able to apply the patches, are encouraged to consider implementing this workaround.","sysaffected":"","thanks":"The Apache Software Foundation credits André Malo with the discovery of this vulnerability.","author":"This document was written by Chad R Dougherty.","public":["http://www.secunia.com/advisories/10153/","http://www.secunia.com/advisories/10114/","http://www.secunia.com/advisories/10112/","http://www.secunia.com/advisories/10102/","http://www.secunia.com/advisories/10098/","http://www.secunia.com/advisories/10096/","http://www.secunia.com/advisories/10260/","http://www.secunia.com/advisories/10264/","http://www.secunia.com/advisories/10463/"],"cveids":["CVE-2003-0542"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2003-10-30T13:57:11Z","publicdate":"2003-10-30T00:00:00Z","datefirstpublished":"2004-02-03T18:45:49Z","dateupdated":"2004-03-19T19:59:55Z","revision":29,"vrda_d1_directreport":"","vrda_d1_population":"","vrda_d1_impact":"","cam_widelyknown":"15","cam_exploitation":"0","cam_internetinfrastructure":"5","cam_population":"15","cam_impact":"18","cam_easeofexploitation":"2","cam_attackeraccessrequired":"3","cam_scorecurrent":"0.6075","cam_scorecurrentwidelyknown":"0.759375","cam_scorecurrentwidelyknownexploited":"1.366875","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":0.6075,"vulnote":null}