CVE-2019-25782
ThinkPHP 5.0.0 before 5.0.24 contains a code injection …
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/think
- github.com/top-think/framework/commit/4a4b5e64fa4c46f851b4004005bff5f3196de003
- github.com/vulhub/vulhub/tree/master/thinkphp/5.0.23-rce
- packetstorm.news/files/id/157218/
- www.exploit-db.com/exploits/46150
- www.vulncheck.com/advisories/thinkphp-5.0.0-5.0.23-rce-via-method-construct-in-request-php
- www.vulncheck.com/advisories/thinkphp-5.0.0-5.0.24-rce-via-method-construct-in-request-php
- nvd.nist.gov/vuln/detail/CVE-2019-25782
- cve.org/CVERecord?id=CVE-2019-25782
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.