Skip to content
Path traversal Disclosed report Intermediate CVE-2017-0932

Privilege Escalation using API->Feature

A path traversal flaw in the EdgeOS Feature API lets a read-only operator account execute a crafted file with root privileges. An attacker with SSH access can upload a malicious file and call the API to escalate to admin/root.

hacknroll Follow

Originally disclosed on HackerOne

Critical 9.9 View original
  • Triaged in 7 hours
  • Fixed in 5 months
  • Paid in 8 hours
  • Disclosed after 5 months

Summary by the program

EdgeOS version 1.9.1.1 and prior, consequence of the lack of validation on the input of the Feature functionality, an attacker with access to an operator (read-only) account and ssh connection to the devices, can escalate privileges to admin (root) access in the system.

Summary by the researcher

The EdgeRouter X (firmware v1.9.1.1) is susceptible to a local privilege escalation due a Path Traversal vulnerability in the Feature API. This vulnerability allows an attacker with non-privileged access (read-only) to execute commands on the device with the root rights. The attack consists in sending a maliciously crafted file (using scp with a non-privileged account) to the device and then calling the vulnerable API exploiting the Path Traversal. The exploitation will result on the crafted file being executed with root permission, giving the attacker full access to the device.

The original report as published on HackerOne, by hacknroll. 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 Feature API does not validate the file path supplied to it, allowing traversal outside the intended directory and execution of an attacker-controlled file as root.

Impact

An attacker with a read-only account could gain full root access to the device.

What the attacker needed

An operator (read-only) account; SSH access to the device; EdgeOS [redacted] or prior

How it was found

  1. Log in with a non-privileged operator account over SSH.
  2. Upload a crafted file to the device using scp.
  3. Call the vulnerable Feature API with a path that traverses to the uploaded file.
  4. The crafted file is executed with root permission.

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 read-only account on a router should not be able to run commands as the all-powerful administrator. Here, a feature meant to handle files could be tricked into running a file the attacker uploaded, because the file path was not checked properly. This is called path traversal: using special path characters to escape the intended folder.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by hacknroll

View all

3 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.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.