CVE-2018-7841: SCHNEIDER ELECTRIC U.MOTION BUILDER REMOTE CODE EXECUTION 0-DAY
An unauthenticated command injection vulnerability existed in Schneider Electric U.Motion Builder's track_import_export.php because the object_id parameter was passed to a shell command after an incomplete fix that only filtered dollar signs. An attacker could execute arbitrary commands on the device, leading to remote code execution.
rcesecurity.com
Published on rcesecurity.com
I came across an unauthenticated Remote Code Execution vulnerability (called CVE-2018-7841) on an IoT device which was apparently using a component provided by Schneider Electric called U.Motion Builder.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An unauthenticated attacker could execute arbitrary commands on the device, leading to remote code execution.
What the attacker needed
Network access to the device; no authentication required
The fix
The product was retired and will not be fixed.
How it was found
- Send a POST request to the track_import_export.php endpoint with op=export and a malicious object_id parameter.
- The object_id value contains a backtick command substitution that executes a reverse shell.
- The server executes the command, resulting in a reverse shell connection.
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 write-up has not been written yet. The Original tab links to the source.
This is a command injection bug. The application took user input and put it directly into a system command without properly cleaning it. An attacker could send a specially crafted request to run their own commands on the device, 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.