Description
Unrestricted file upload vulnerability in ofc_upload_image.php in Open Flash Chart v2 Beta 1 through v2 Lug Wyrm Charmer, as used in Piwik 0.2.35 through 0.4.3, Woopra Analytics Plugin before 1.4.3.2, and possibly other products, when register_globals is enabled, allows remote authenticated users to execute arbitrary code by uploading a file with an executable extension through the name parameter with the code in the HTTP_RAW_POST_DATA parameter, then accessing it via a direct request to the file in tmp-upload-images/.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 2 modules
-
OpenEMR PHP File Upload Vulnerability
exploit/unix/webapp/openemr_upload_exec
-
Open Flash Chart v2 Arbitrary File Upload
exploit/unix/webapp/open_flash_chart_upload_exec
Exploit-DB 6
- Open Flash Chart 2 - Arbitrary File Upload (Metasploit) EDB-29210 · remote · Oct 26, 2013 · verified
- ZonPHP 2.25 - Remote Code Execution EDB-29091 · webapps · Oct 20, 2013 · verified
- Joomla! Component com_civicrm 4.2.2 - Remote Code Injection EDB-24969 · webapps · Apr 22, 2013 · verified
- OpenEMR - Arbitrary '.PHP' File Upload (Metasploit) EDB-24529 · remote · Feb 20, 2013 · verified
- OpenEMR 4.1.1 - 'ofc_upload_image.php' Arbitrary File Upload EDB-24492 · webapps · Feb 13, 2013 · verified
- Piwik Open Flash Chart - Remote Code Execution EDB-10532 · webapps · Dec 17, 2009
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 37314 vdb-entry
- 59051 vdb-entry
- http://packetstormsecurity.com/files/123494/wpslimstatex-exec.txt
- [oss-security] 20091214 Re: CVE Request - Open Flash Chart v2 mailing-list
- [oss-security] 20091214 CVE Request - Open Flash Chart v2 mailing-list
- piwik-ofcuploadimage-code-execution(53825) vdb-entry
- 55160 third-party-advisory
- http://wordpress.org/extend/plugins/woopra/changelog/
- http://packetstormsecurity.org/0910-exploits/piwik-upload.txt
- 37078 third-party-advisory
- 24969 exploit
- 55162 third-party-advisory
- http://piwik.org/blog/2009/10/piwik-response-to-secunia-advisory-sa37078/
- ADV-2009-2966 vdb-entry
- http://packetstormsecurity.com/files/123493/wpseowatcher-exec.txt
- 37911 third-party-advisory