Skip to content
RCE Advisory Intermediate CVE-2023-22653

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.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 8.8 View original

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.

Francesco Benvenuto, on Cisco Talos

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

  1. Authenticate to the router's web interface.
  2. Send an HTTP request to the /cgi endpoint with core 'yruo_tools' and function 'tcpdump_start'.
  3. Include a crafted 'advanced' parameter (or other parameters) containing shell metacharacters.
  4. 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.

More by Francesco Benvenuto

View all

152 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.