CVE-2019-25782 ThinkPHP 5.0.0 < 5.0.24 RCE via _method construct in Request.php
CriticalCVSS 9.3
EPSS 0.68%
Public exploit
- Published
- Updated
- Exploit status
- Public exploit available
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
- Technology
- PHP
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| topthink/thinkphp | >= 5.0.0, < 5.0.24 | 5.0.24 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| topthink/thinkphp | >= 5.0.0, < 5.0.24 | 5.0.24 |
References
- Fix Commit patch
- Vulhub Exploit exploit technical-description
- EDB-46150 exploit
- Packet Storm 157218 exploit
- Nuclei Template technical-description
- VulnCheck Advisory: ThinkPHP 5.0.0-5.0.23 RCE via _method construct in Request.php third-party-advisory
- VulnCheck Advisory: ThinkPHP 5.0.0 < 5.0.24 RCE via _method construct in Request.php third-party-advisory
- ENISA EUVD EUVD-2019-20219 third-party-advisory