Skip to content
RCE Advisory Intermediate CVE-2023-22306

Milesight UR32L libzebra.so bridge_group OS command injection vulnerability

The bridge_group function in libzebra.so builds a shell command using an interface name without sanitising it, so an authenticated admin can inject OS commands. An attacker with admin credentials could execute arbitrary commands on the router.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 7.2 View original

An OS command injection vulnerability exists in the libzebra.so bridgegroup 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 interface name is inserted into a shell command string passed to system() without any sanitisation or escaping.

Impact

An attacker with admin access could execute arbitrary OS commands on the router, potentially rebooting it or taking full control.

What the attacker needed

Admin credentials for the router console

How it was found

  1. Log in to the router console with admin credentials.
  2. Enter privileged mode with the enable command.
  3. Enter configuration mode with configure terminal.
  4. Select an interface using the interface command with a crafted name.
  5. Run bridge-group 2 to trigger the command injection.

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's command-line interface lets an admin name a network interface. That name is passed directly into a system command without checking for special characters, so an admin can type a name that includes extra shell commands. Those extra commands then run on the device 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.