Skip to content
RCE Disclosed report Advanced

Format String Vulnerability in the EdgeSwitch restricted CLI

A format string vulnerability in the EdgeSwitch admin CLI allowed an authenticated admin to break out of the restricted command interface and execute arbitrary shell instructions. This gave full control of the switch beyond normal administrator privileges.

Max VA Follow

Originally disclosed on HackerOne

High 7.2 View original
  • Triaged in 3 days
  • Fixed in 2 months
  • Paid in 3 days
  • 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

There was a format string vulnerability present in the Admin CLI for 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 CLI passed user-supplied command input directly to a format-string function without sanitising it, allowing memory manipulation and escape from the restricted shell.

Impact

An authenticated admin could break out of the restricted CLI and gain full control of the switch, exceeding normal administrator capabilities, without the administrator knowing.

What the attacker needed

Admin credentials on the switch; access to SSH or Telnet CLI

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 format string bug happens when a program passes user input directly into a function that treats it as a template for output, so special characters can make the program read or write memory it should not. Here, an admin using the switch's command line could send crafted commands that escaped the limited menu and ran full system commands. That means they could control the device at a deeper level than the admin interface normally allows.

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.