Skip to content
RCE Advisory Intermediate CVE-2023-25582CVE-2023-25583

Milesight UR32L zebra vlan_name OS command injection vulnerabilities

Two OS command injection vulnerabilities exist in the zebra vlan_name function of Milesight UR32L v32.3.0.5. An authenticated attacker can inject commands through the VLAN name field, leading to command execution.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 7.2 View original

Two OS command injection vulnerabilities exist in the zebra vlanname 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 vlan_name function constructs shell commands with user-supplied interface names and executes them via system() without sanitising the input.

Impact

An authenticated attacker with admin privileges could execute arbitrary OS commands on the router, potentially rebooting it or compromising the device.

What the attacker needed

Admin credentials for the router console; access to telnet or SSH service

The fix

The vendor did not release a patch within the 90-day window; the function should be fixed by sanitising the VLAN name before building the shell command.

How it was found

  1. Log in to the router console via telnet or SSH with admin credentials.
  2. Enter privileged mode with the enable command.
  3. Enter configuration mode with configure terminal.
  4. Select a VLAN with the vlan command.
  5. Set a VLAN name containing shell metacharacters and a command.
  6. The injected command executes, causing the device to reboot.

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 configuration interface. When an admin names a VLAN (a virtual network segment), the router builds a system command using that name without checking for special characters. An attacker who can log in as admin can include extra commands in the name, and the router will run them, potentially rebooting the device or doing worse.

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.