Skip to content
RCE Advisory Advanced CVE-2017-2824

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.

Lilith Wyatt Follow

Originally disclosed on Cisco Talos

Critical 9.0 View original

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.

Lilith Wyatt, on Cisco Talos

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

  1. Send a discovery data request to the server with a crafted IP address containing a command injection.
  2. Send a second discovery data request with another crafted IP address to complete the payload.
  3. Brute force host IDs by sending command requests and observing different responses.
  4. 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.

More by Lilith Wyatt

View all

28 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.