Paper/Archive/CVE-2019-25782

CVE-2019-25782

TopThink ThinkPHP — ThinkPHP 5.0.0 < 5.0.24 RCE via _method construct in Request.php

Description · from the CVE record

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.

Affected

ProductAffectedFixed inSource
ThinkPHP5.0.0 – < 5.0.245.0.24CNA

Scores by source

VulnCheck (CNA)9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
VulnCheck (CNA)9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CISA ADPSSVCExploitation: poc · Automatable: yes · Technical impact: total

References

patchgithub.com/top-think/framework/commit/4a4b5e64fa4c46f851b4004005bff5f3196de003exploitgithub.com/vulhub/vulhub/tree/master/thinkphp/5.0.23-rceexploitexploit-db.com/exploits/46150exploitpacketstorm.news/files/id/157218writeupgithub.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-5023-rce.yamlwriteupvulncheck.com/advisories/thinkphp-5.0.0-5.0.23-rce-via-method-construct-in-request-phpwriteupvulncheck.com/advisories/thinkphp-5.0.0-5.0.24-rce-via-method-construct-in-request-php