Skip to content
RCE Advisory Intermediate CVE-2017-12120

Moxa EDR-810 Web Server ping Command Injection Vulnerability

The web server of the Moxa EDR-810 device fails to validate user input in the ping diagnostic page, allowing an authenticated attacker to inject operating system commands. This can lead to a root shell on the device.

Carlos Pacho Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable command injection vulnerability exists in the web server functionality of Moxa EDR-810 V4.1 build 17030317. A specially crafted HTTP POST can cause a privilege escalation, resulting in a root shell.

Carlos Pacho, 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 application passes user-supplied input directly into a system command without any server-side validation or sanitisation.

Impact

An authenticated attacker could execute arbitrary commands as root, leading to full compromise of the device.

What the attacker needed

Valid login credentials; network access to the device

The fix

The vulnerability was fixed by the vendor in a firmware update released on 2018-04-12.

How it was found

  1. Log in to the device's web interface.
  2. Send a crafted HTTP POST request to the vulnerable URI with a malicious ip parameter.
  3. The injected command executes, starting a root shell on port 5000.

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.

This is a command injection bug. The device's web page for pinging an IP address takes whatever you type and puts it directly into a system command without checking it. An attacker who can log in can type extra commands that the device then runs with the highest privileges, giving them full control.

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 Carlos Pacho

View all

11 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.