Skip to content
RCE Advisory Beginner CVE-2016-8721

Moxa AWK-3131A Web Application Ping Command Injection Vulnerability

The ping feature of the Moxa AWK-3131A web application does not filter user input, allowing an authenticated attacker to inject operating system commands. These commands are executed with root privileges, enabling complete compromise of the device.

Patrick DeSantis Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

An exploitable OS Command Injection vulnerability exists in the web application ‘ping’ functionality of Moxa AWK-3131A Wireless Access Points running firmware 1.1. Specially crafted web form input can cause an OS Command Injection resulting in complete compromise of the vulnerable device.

Patrick DeSantis, 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 web application fails to sanitise user input before passing it to the operating system's command shell, allowing command injection.

Impact

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

What the attacker needed

Authentication to the web application

How it was found

  1. Log in to the web application.
  2. Enter a command preceded by a semicolon in the ping input box.
  3. The command executes with root permissions.
  4. Connect to the opened port to obtain a root 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.

This device has a web page that lets you ping an address to test connectivity. The problem is that the web page passes whatever you type directly to the underlying operating system without checking it. An attacker who can log in can add extra commands after a semicolon, and those commands run with the highest level of permission on the device.

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 Patrick DeSantis

View all

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