Milesight UR32L vtysh_ubus toolsh_excute.constprop.1 OS command injection vulnerabilities
Two OS command injection vulnerabilities exist in the vtysh_ubus toolsh_excute.constprop.1 functionality of Milesight UR32L v32.3.0.5. A specially-crafted network request can lead to command execution.
Originally disclosed on Cisco Talos
Two OS command injection vulnerability exist in the vtyshubus toolshexcute.constprop.1 functionality of Milesight UR32L v32.3.0.5. A specially-crafted network request can lead to 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
The host parameter is only partially parsed (taking the first word before a space) before being passed to a system command, allowing command injection.
Impact
An attacker could execute arbitrary commands on the router, potentially leading to full compromise.
What the attacker needed
Authentication (ubus_rpc_session required)
The fix
The host parameter should be properly sanitised to prevent command injection.
How it was found
- Send a request to the /cgi endpoint with core yruo_tools and function ping or traceroute.
- Include a host parameter containing a command injection payload.
- The router executes the injected command via system().
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 report describes a security flaw in a router that lets an attacker run their own commands on the device. The router takes input from a web request and passes it to a system command without properly checking it, so an attacker can sneak in extra commands. This could give them full control of the router.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.