ThinkPHP command execution in Request filter handling
TopThink ThinkPHP
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| TopThink ThinkPHP |
| No fix yet |
Original description
ThinkPHP 5.0.0 before 5.0.24 contains a code injection vulnerability that allows unauthenticated attackers to execute commands by setting _method=__construct in POST data to overwrite the Request filter property. Attackers can send POST requests to endpoints reached via ?s=captcha or ?s=index/index/index with filter[]=system and server[REQUEST_METHOD] values to execute arbitrary system commands. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-10-14.
From the CVE record · VulnCheck