Skip to content
RCE Disclosed report Intermediate

Code Execution in restricted CLI of EdgeSwitch

The restricted CLI of EdgeSwitch 1.7.3 and earlier allowed an admin user to execute arbitrary shell commands by crafting special commands, bypassing the CLI interface. An attacker with admin credentials could break out of the restricted CLI and gain full control of the switch, exceeding normal administrator privileges.

Max VA Follow

Originally disclosed on HackerOne

High 7.2 View original
  • Triaged in 42 hours
  • Fixed in 2 months
  • Paid in 42 hours
  • Disclosed after 4 months

Summary by the program

In EdgeSwitch 1.7.3 and prior, an user with admin credentials can make use of specially crafted commands to execute arbitrary shell instructions, bypassing the SSH/TELNET CLI interface.

Summary by the researcher

A command injection vulnerability existed in the restricted CLI of the EdgeSwitch.

Exploiting this vulnerability allows an attacker to break out of the restricted CLI and elevate their privileges greater than the administrator themselves are able to, taking full control of the Switch without the administrator ever knowing.

The original report as published on HackerOne, by maxpl0it. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Likely the restricted CLI did not properly sanitise or validate user-supplied command input before passing it to the underlying shell.

Impact

An attacker with admin credentials could break out of the restricted CLI and gain full control of the switch, exceeding normal administrator privileges, without the administrator knowing.

What the attacker needed

Admin credentials on the switch

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.

A restricted command-line interface is supposed to limit what an administrator can do on a network switch. Here, the interface failed to properly check the commands entered, so someone with admin access could sneak in extra instructions that run directly on the underlying operating system. This let them take full control of the device, even beyond what a normal admin should be able to do.

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 Max VA

View all

4 more disclosed reports, best first.

More from Ubiquiti Inc.

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.