PHP prior 5.0.2 rfc1867.c file upload 2.0
 
Plugin ID247
Plugin namePHP prior 5.0.2 rfc1867.c file upload
Plugin filenamePHP prior 5.0.2 rfc1867.c unspecified file upload.plugin
Plugin filesize3998 bytes
Plugin familyCGI
Plugin created nameMarc Ruef
Plugin created emailmarc dot ruef at computec dot ch
Plugin created webhttp://www.computec.ch
Plugin created companycomputec.ch
Plugin created date2004/09/20
Plugin updated nameMarc Ruef
Plugin updated emailmarc dot ruef at computec dot ch
Plugin updated webhttp://www.computec.ch
Plugin updated companycomputec.ch
Plugin updated date2004/11/14
Plugin version2.0
Plugin changelogCorrected the plugin structure and added the accuracy values in 1.1. Improved the pattern matching and introduced the plugin changelog in 2.0
Plugin protocoltcp
Plugin port80
Plugin procedure detectionopen|send HEAD / HTTP/1.0\n\n|sleep|close|pattern_exists HTTP/#.# ### *PHP/[0-4].* OR HTTP/#.# ### *PHP/5.0.[0-2]*
Plugin detection accuracy80
Plugin commentCheck is inspired by the Nessus plugin.
Bug published nameStefano Di Paola
Bug published emailstefano dot dipaola at wisec dot it
Bug published webhttp://www.wisec.it
Bug published companywisec.it
Bug published date2004/09/15
Bug advisoryhttp://www.securityfocus.com/archive/1/375370
Bug affectedPHP prior 5.0.2
Bug not affectedPHP 5.0.2 and newer or other solutions (e.g. CGI or ASP)
Bug vulnerability classConfiguration
Bug descriptionThe remote system is running a web server with PHP prior 5.0.2. These old versions are vulnerable to a unspecified vulnerability in rfc1867.c that could allow a remote attacker to upload files.
Bug solutionIf the web server is not used it should be de-installed or de-activated. Install the newest patch or bugfix to solve the problem or upgrade to the latest software version which is not vulnerable anymore. To make it harder to find the server the daemon could be configured to listen at another port (e.g. 8081). Alternation of the application banner can confuse an attacker and let him determine the wrong software. Additionally limit unwanted connections and communications with firewalling.
Bug fixing timeApprox. 45 minutes
Bug exploit availabilityMaybe
Bug exploit urlhttp://www.securityfocus.com/bid/11038/exploit/
Bug remoteYes
Bug localYes
Bug severityMedium
Bug popularity6
Bug simplicity6
Bug impact8
Bug risk7
Bug Nessus riskMedium
Bug check toolsNessus is able to do the same check. A proof-of-concept exploit may be available as like Di Paola writes in his Bugtraq posting: "I don't know if releasing a POC for this vuln is a good thing because php is used widely in the net... so if you are interested feel free to contact me." It seems to be just a matter of time when the exploit is available for the public.
Source SecurityFocus BID11190
Source Nessus ID14770
Source LiteratureHacking Exposed: Network Security Secrets & Solutions, Stuart McClure, Joel Scambray and George Kurtz, February 25, 2003, 4th Edition, McGraw-Hill Osborne Media, ISBN 0072227427
Source Misc.http://viewcvs.php.net/viewcvs.cgi/php-src/NEWS.diff?r1=1.1247.2.724&r2=1.1247.2.726

This file was generated by the Attack Tool Kit (ATK), the open-sourced security scanner and exploiting framework.