Skip to content
RCE Advisory Intermediate CVE-2023-24519CVE-2023-24520

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.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 8.8 View original

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.

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 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

  1. Send a request to the /cgi endpoint with core yruo_tools and function ping or traceroute.
  2. Include a host parameter containing a command injection payload.
  3. 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.

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.