Milesight UR32L vtysh_ubus tcpdump_start_cb OS command injection vulnerability
An OS command injection vulnerability exists in the tcpdump_start_cb function of Milesight UR32L v32.3.0.5. An authenticated attacker can send a specially crafted HTTP request to execute arbitrary commands on the device.
Originally disclosed on Cisco Talos
An OS command injection vulnerability exists in the vtyshubus tcpdumpstartcb functionality of Milesight UR32L v32.3.0.5. A specially crafted HTTP 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 tcpdump_start_cb function builds a shell command using user-supplied parameters without proper sanitisation, then passes it to system().
Impact
An authenticated attacker could execute arbitrary OS commands on the router, leading to full compromise.
What the attacker needed
Authentication to the router
How it was found
- Authenticate to the router's web interface.
- Send an HTTP request to the /cgi endpoint with core 'yruo_tools' and function 'tcpdump_start'.
- Include a crafted 'advanced' parameter (or other parameters) containing shell metacharacters.
- 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 someone who is already logged in run their own commands on the device. The router takes input from a web request and uses it to build a system command without 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.