Horizon Alert
Summary of the vulnerability and why it matters
A code injection vulnerability in ThinkPHP allows unauthenticated attackers to execute arbitrary commands on affected systems by manipulating POST data. This could allow an attacker to gain control of the server.
- Attackers can run commands on servers.
- Understand its potential impact on your systems.
- Confirm relevance and assess exposure.
Attack Path
How an attacker could exploit the issue
An unauthenticated attacker can exploit this vulnerability by sending a specially crafted POST request to specific endpoints of a ThinkPHP application. This request manipulates POST data to overwrite a request filter, allowing the attacker to execute arbitrary system commands on the server. The vulnerability was first observed in the wild in October 2023.
- No authentication or user interaction needed.
- Triggered by sending POST requests with manipulated data.
- Allows remote code execution on the server.
Live Threat
Current exploitation, exposure, and threat context
This vulnerability could allow unauthenticated attackers to execute arbitrary system commands on affected ThinkPHP installations when specific POST requests are sent to certain endpoints. This could impact the integrity and availability of the underlying system.
- System commands on the server.
- Crafted POST requests to public endpoints.
- Potential for unauthorized system control.
Operational Fix
Recommended remediation, mitigation, and detection steps
Real-world ownership likely falls to the application teams responsible for the ThinkPHP instances, in coordination with infrastructure or platform teams managing the underlying servers. The immediate first step is to identify all deployed instances of ThinkPHP and determine their exposure to unauthenticated access, prioritizing those that are internet-facing or handle sensitive data. Once identified, the accountable application owner must be confirmed to initiate a risk-based remediation plan.
- Application owners should manage remediation.
- Verify public exposure and business criticality.
- Plan maintenance for identified systems.