Skip to content
RCE Advisory Intermediate CVE-2023-23550

Milesight UR32L ys_thirdparty user_delete OS command injection vulnerability

An OS command injection vulnerability exists in the user_delete function of Milesight UR32L v32.3.0.5, allowing an authenticated attacker to execute arbitrary commands by supplying a crafted username. The proof of concept demonstrates a reboot of the device via the injected command.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 7.2 View original

An OS command injection vulnerability exists in the ysthirdparty userdelete functionality of Milesight UR32L v32.3.0.5. A specially crafted network packet 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 username input is passed directly into a shell command without sanitisation, allowing command injection.

Impact

An authenticated attacker with high privileges could execute arbitrary commands on the device, leading to full compromise or disruption of service.

What the attacker needed

Valid credentials for telnet or SSH; High privileges (admin user)

The fix

The vulnerability should be fixed by properly sanitising the username input before passing it to the shell command, or by avoiding shell invocation altogether.

How it was found

  1. Log in to the router console via telnet or SSH with valid credentials.
  2. Enter privileged mode using the 'enable' command.
  3. Enter configuration mode with 'configure terminal'.
  4. Access the user permission menu with 'user_permission'.
  5. Execute the 'no user' command with a username containing a shell command (e.g., backticks with 'reboot').
  6. The injected command runs, causing the device to reboot and the connection to close.

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 flaw in a router's web interface where a logged-in user can run extra commands on the device by typing them into a username field. The router fails to check the input properly, so an attacker with valid credentials could take control of the router or disrupt its operation.

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.