Eval Injection Vulnerability in ThinkPHP 2.0 to 3.0 Lite by ThinkPHP
CVE-2012-20007
Key Information:
Badges
What is CVE-2012-20007?
The eval injection vulnerability in ThinkPHP versions 2.0 through 2.2 and 3.0 Lite mode arises from flawed handling of PATH_INFO parsing in the Dispatcher. This vulnerability allows unauthenticated attackers to craft malicious requests to the index.php file. By supplying a specifically constructed 's' parameter that contains PHP expressions, attackers can exploit the /e modifier in preg_replace, leading to potential execution of arbitrary PHP code on the affected server. This vulnerability has been documented, with evidence of exploitation reported by the Shadowserver Foundation.
Affected Version(s)
ThinkPHP 2.0 <= 2.2
ThinkPHP 3.0
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
CVSS V4
Timeline
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
Vulnerability published
Vulnerability Reserved
