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.
Originally disclosed on Cisco Talos
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.
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
- Log in to the web application.
- Enter a command preceded by a semicolon in the ping input box.
- The command executes with root permissions.
- 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.