Zabbix Server Active Proxy Trapper Remote Code Execution Vulnerability
The Zabbix server's trapper service accepts unauthenticated 'command' requests that execute scripts from the database, and the host IP address used in those scripts is not validated. An attacker who can get a host added via auto-discovery can inject shell commands into the IP field, leading to remote code execution.
Originally disclosed on Cisco Talos
An exploitable code execution vulnerability exists in the trapper command functionality of Zabbix Server 2.4.X . A specially crafted set of packets can cause a command injection resulting in remote code execution.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The server inserts the host IP address from discovery data into the database without validation, and later substitutes it into a shell command without sanitisation.
Impact
An attacker could execute arbitrary commands on the Zabbix server, leading to a reverse shell, but this requires that auto-discovery is configured to add hosts automatically.
What the attacker needed
Auto-discovery configured to add hosts; network access to port 10051
The fix
The report suggests removing the three default script entries from the Zabbix database, which would prevent code execution even if hosts with spoofed addresses are inserted.
How it was found
- Send a discovery data request to the server with a crafted IP address containing a command injection.
- Send a second discovery data request with another crafted IP address to complete the payload.
- Brute force host IDs by sending command requests and observing different responses.
- Invoke the command request with the discovered host ID to execute the injected commands and gain a reverse shell.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Zabbix is a monitoring tool. Its server listens for messages from proxies and can run scripts like ping or traceroute using the IP address of a monitored host. Because the server does not check that the IP address is safe, an attacker can put a shell command there, and when the script runs, the command executes on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.