Horizon Alert
Summary of the vulnerability and why it matters
This advisory details a critical vulnerability found in Dokploy, a self-hostable Platform as a Service. The issue allows authenticated users to run unauthorized commands with full system privileges by exploiting an unvalidated input in the Docker container logs feature. This could potentially lead to a compromise of the entire platform and any applications it manages.
- An authenticated user can gain root access.
- Affects self-hosted application deployment platforms.
- Confirm relevance and exposure of this PaaS.
Attack Path
How an attacker could exploit the issue
An attacker with authenticated access to Dokploy can exploit a command injection vulnerability in the Docker container logs feature. By manipulating the `tail` and `since` parameters in requests to the `/docker-container-logs` WebSocket endpoint, an attacker can inject and execute arbitrary commands on the server with root privileges. This could allow them to compromise the entire Dokploy instance and any applications it manages.
- Authenticated access to Dokploy is required.
- Injecting commands via WebSocket parameters.
- Execute arbitrary code as root.
Live Threat
Current exploitation, exposure, and threat context
This vulnerability could allow authenticated users to run arbitrary commands on the server with root privileges, potentially impacting the Dokploy PaaS and any applications it manages. The vulnerability exists in the handling of parameters within the /docker-container-logs WebSocket endpoint when these parameters are directly used in shell commands without proper validation.
- Server-side commands and system data.
- Authenticated users could inject commands.
- Full server compromise and data loss.
Operational Fix
Recommended remediation, mitigation, and detection steps
This vulnerability in Dokploy affects self-hostable PaaS deployments, likely managed by platform or infrastructure teams. The first practical step is to identify all Dokploy instances, assess their reachability and criticality, and determine the accountable owner before planning remediation.
- Platform or infrastructure teams own this.
- Verify Dokploy instance reachability.
- Plan remediation based on risk.