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.
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Link | Tags |
---|---|
https://github.com/cakephp/cakephp/commit/e431e86aa4301ced4273dc7919b59362cbb353cb | patch |
http://www.exploit-db.com/exploits/16011 | exploit |
http://packetstormsecurity.org/files/view/95847/burnedcake.py.txt | exploit |
http://www.osvdb.org/69352 | vdb entry |
http://securityreason.com/securityalert/8026 | third party advisory |
http://malloc.im/CakePHP-unserialize.txt | exploit |
http://secunia.com/advisories/42211 | third party advisory vendor advisory |