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.
Originally disclosed on Cisco Talos
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.
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
- Log in to the router console via telnet or SSH with admin credentials.
- Enter privileged mode with the enable command.
- Enter configuration mode with configure terminal.
- Select a VLAN with the vlan command.
- Set a VLAN name containing shell metacharacters and a command.
- 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.