Robustel R1510 web_server action endpoints OS command injection vulnerabilities
Multiple OS command injection vulnerabilities exist in the web_server action endpoints of Robustel R1510 3.3.0. An attacker can send a specially crafted network request to execute arbitrary commands.
Originally disclosed on Cisco Talos
Multiple command injection vulnerabilities exist in the webserver action endpoints functionalities of Robustel R1510 3.3.0. A specially-crafted network request can lead to arbitrary command execution.
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
User-supplied parameters are passed unsanitised to a function that formats a shell command and executes it via system().
Impact
An attacker could execute arbitrary commands on the device, potentially leading to full compromise.
What the attacker needed
Authentication with high privileges (PR:H)
How it was found
- Send a request to /action/import_cert_file/ with a path parameter that does not exist as a directory.
- The path value is used in a sysprintf call to create the directory, allowing command injection.
- Similarly, send a request to /action/import_https_cert_file/ with a path parameter.
- The path is formatted into a string and used in a sysprintf call to move files, allowing command injection.
- Send a request to /action/import_sdk_file/ with a path parameter that does not exist as a directory.
- The path value is used in a sysprintf call to create the directory, allowing command injection.
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.
The router's web interface takes user input (like a file path) and passes it directly to a system command without checking for malicious characters. This lets an attacker run their own commands on the device, potentially taking 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.