Skip to content
RCE Advisory Intermediate CVE-2023-24583CVE-2023-24582

Milesight UR32L urvpn_client cmd_name_action OS command injection vulnerabilities

The urvpn_client service on Milesight UR32L routers accepts JSON commands over TCP or UDP and passes the 'name' value unsanitised into a shell command, allowing an attacker to execute arbitrary OS commands. An attacker can send a crafted network request to trigger command injection.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 8.8 View original

Two OS command injection vulnerabilities exist in the urvpnclient cmdnameaction functionality of Milesight UR32L v32.3.0.5. A specially crafted network request can lead to arbitrary 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 'name' value from the JSON request is inserted into a shell command string without sanitisation, then executed via system().

Impact

An attacker could execute arbitrary commands on the router, potentially leading to full compromise.

What the attacker needed

Network access to the urvpn_client service; ability to send TCP or UDP packets

The fix

The vendor did not release a patch within the 90-day window; the service should sanitise the 'name' value before using it in a shell command.

How it was found

  1. Send a JSON message over TCP or UDP to the urvpn_client service.
  2. Set the 'type' field to 'cmd_name'.
  3. Set the 'name' field to a value containing shell metacharacters and commands.
  4. The service passes the 'name' value into a shell command and executes it.

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 runs a small program that listens for network messages to change VPN settings. When it receives a message with a certain type, it takes a text field from that message and inserts it directly into a command that the operating system runs. Because the text is not cleaned, an attacker can include extra shell commands in that field, and the router will run them with high privileges.

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.