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.
Affected products
- cakefoundation / cakephp1.3.0 β 1.3.0
- cakephp / cakephp1.2.8 β 1.2.8
- cakephp / cakephp1.3 β 1.3
- cakephp / cakephp1.3.0 β 1.3.0
- cakephp / cakephp1.3.0 β 1.3.0
- cakephp / cakephp1.3.0 β 1.3.0
- cakephp / cakephp1.3.0 β 1.3.0
- cakephp / cakephp1.3.0 β 1.3.0
- cakephp / cakephp1.3.0 β 1.3.0
- cakephp / cakephp1.3.1 β 1.3.1
- cakephp / cakephp1.3.2 β 1.3.2
- cakephp / cakephp1.3.3 β 1.3.3
- cakephp / cakephp1.3.4 β 1.3.4
- cakephp / cakephp1.3.5 β 1.3.5
References
- PATCHhttps://github.com/cakephp/cakephp/commit/e431e86aa4301ced4273dc7919b59362cbb353cb
- EXPLOIThttp://www.exploit-db.com/exploits/16011
- EXPLOIThttp://packetstormsecurity.org/files/view/95847/burnedcake.py.txt
- MISChttp://www.osvdb.org/69352
- MISChttp://securityreason.com/securityalert/8026
- MISChttp://malloc.im/CakePHP-unserialize.txt
- VENDOR_ADVISORYhttp://secunia.com/advisories/42211