{"id":"CVE-2009-4140","published":"2009-12-22T22:00:00Z","modified":"2024-08-07T06:54:09Z","title":"Unrestricted file upload vulnerability in ofc_upload_image.php in Open Flash Chart v2 Beta 1 through v2 Lug Wyrm…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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/.","provenance":"source","from":"CVE.org"},"summary":{"text":"Open Flash Chart v2 (Beta 1 through v2 Lug Wyrm Charmer), as used in Piwik 0.2.35 through 0.4.3 and the Woopra Analytics Plugin before 1.4.3.2, contains an unrestricted file upload flaw in its ofc_upload_image.php component. An attacker who is authenticated and can reach the upload handler, with register_globals enabled, can upload a file with an executable extension and then request it directly from the tmp-upload-images/ directory to run arbitrary code.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:20:00Z"},"cvss":null,"epss":{"score":0.75838,"percentile":0.99523,"date":"2026-10-28","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2014-05-06","exploitedFirstSeen":"2014-05-06","ransomware":false,"evidence":[{"url":"https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/honeypot-alert-open-flash-charts-file-upload-attacks/","date":"2014-05-06"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[],"references":[{"url":"http://www.securityfocus.com/bid/37314","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.osvdb.org/59051","tags":["vdb-entry","x_refsource_OSVDB"]},{"url":"http://packetstormsecurity.com/files/123494/wpslimstatex-exec.txt","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2009/12/14/3","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2009/12/14/1","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/53825","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://secunia.com/advisories/55160","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://wordpress.org/extend/plugins/woopra/changelog/","tags":["x_refsource_CONFIRM"]},{"url":"http://packetstormsecurity.org/0910-exploits/piwik-upload.txt","tags":["x_refsource_MISC"]},{"url":"http://secunia.com/advisories/37078","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.exploit-db.com/exploits/24969","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"http://secunia.com/advisories/55162","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://piwik.org/blog/2009/10/piwik-response-to-secunia-advisory-sa37078/","tags":["x_refsource_CONFIRM"]},{"url":"http://www.vupen.com/english/advisories/2009/2966","tags":["vdb-entry","x_refsource_VUPEN"]},{"url":"http://packetstormsecurity.com/files/123493/wpseowatcher-exec.txt","tags":["x_refsource_MISC"]},{"url":"http://secunia.com/advisories/37911","tags":["third-party-advisory","x_refsource_SECUNIA"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2009-4110","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2009-4110","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":10532,"url":"https://www.exploit-db.com/exploits/10532","title":"Piwik Open Flash Chart - Remote Code Execution","type":"webapps","platform":"php","date":"2009-12-17","verified":false,"provenance":"source"},{"id":24492,"url":"https://www.exploit-db.com/exploits/24492","title":"OpenEMR 4.1.1 - 'ofc_upload_image.php' Arbitrary File Upload","type":"webapps","platform":"php","date":"2013-02-13","verified":true,"provenance":"source"},{"id":24529,"url":"https://www.exploit-db.com/exploits/24529","title":"OpenEMR - Arbitrary '.PHP' File Upload (Metasploit)","type":"remote","platform":"php","date":"2013-02-20","verified":true,"provenance":"source"},{"id":24969,"url":"https://www.exploit-db.com/exploits/24969","title":"Joomla! Component com_civicrm 4.2.2 - Remote Code Injection","type":"webapps","platform":"php","date":"2013-04-22","verified":true,"provenance":"source"},{"id":29091,"url":"https://www.exploit-db.com/exploits/29091","title":"ZonPHP 2.25 - Remote Code Execution","type":"webapps","platform":"php","date":"2013-10-20","verified":true,"provenance":"source"},{"id":29210,"url":"https://www.exploit-db.com/exploits/29210","title":"Open Flash Chart 2 - Arbitrary File Upload (Metasploit)","type":"remote","platform":"php","date":"2013-10-26","verified":true,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":6,"earliest":"2009-12-17"},"metasploit":[{"name":"Open Flash Chart v2 Arbitrary File Upload","module":"exploit/unix/webapp/open_flash_chart_upload_exec","type":"exploit","disclosureDate":"2009-12-14","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/open_flash_chart_upload_exec.rb"},{"name":"OpenEMR PHP File Upload Vulnerability","module":"exploit/unix/webapp/openemr_upload_exec","type":"exploit","disclosureDate":"2013-02-13","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/openemr_upload_exec.rb"}],"first":{"date":"2009-12-14","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/open_flash_chart_upload_exec.rb"},"provenance":"source"},"exploitRefs":["http://www.exploit-db.com/exploits/24969","http://packetstormsecurity.com/files/123494/wpslimstatex-exec.txt","http://packetstormsecurity.com/files/123493/wpseowatcher-exec.txt"],"flow":[],"timeline":[{"date":"2009-12-14","kind":"exploit-public","label":"First public exploit: Metasploit; later: Exploit-DB 2009-12-17","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/open_flash_chart_upload_exec.rb","provenance":"source"},{"date":"2009-12-22","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2009-4140","provenance":"source"},{"date":"2014-05-06","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/honeypot-alert-open-flash-charts-file-upload-attacks/","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":59.9,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 4559 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.9,"detail":"percentile 0.9952"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD reference tagged Exploit; 6 Exploit-DB entries; 2 NVD exploit links; 2 Metasploit modules"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}