Moxa EDR-810 Web Server Certificate Signing Request Command Injection Vulnerability
The web server of the Moxa EDR-810 device fails to sanitise the CN parameter in a certificate signing request, allowing an authenticated attacker to inject operating system commands. This leads to a root shell on the device.
Originally disclosed on Cisco Talos
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 root shell.
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
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 vendor patched the vulnerability and released new firmware.
How it was found
- Log in to the device's web interface.
- Send a POST request to /goform/net_WebCSRGen with a crafted CN parameter containing OS commands.
- The injected commands execute, 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 takes a user-supplied value (the CN field) and passes it directly to a system command without checking it. An attacker with a valid login can add extra commands that run with the highest privileges, giving them full control of 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.