Skip to content
Path traversal Disclosed report Intermediate CVE-2020-8144

UniFi Video Server web interface admin user Firmware Update path traversal leading to local system compromise

The UniFi Video Server web interface's Firmware Update feature did not validate the destination path for downloaded firmware, allowing directory traversal via '..\' sequences in the version field. An attacker could write a file outside the intended directory, potentially leading to local system compromise.

Alex Chapman Follow

Originally disclosed on HackerOne

High 8.4 View original
  • Triaged in 18 hours
  • Fixed in 22 days
  • Paid in 41 hours
  • Disclosed after 2.0 years

Summary by the program

The UniFi Video Server (for Windows) web interface Firmware Update functionality, under certain circumstances, does not validate firmware download destinations to ensure they are within the intended destination directory tree. It accepts a request with a URL to firmware update information. If the version field contains ..\ character sequences, the destination file path to save the firmware can be manipulated to be outside the intended destination directory tree.

More details about this vulnerability and the fixes can be found here: https://community.ui.com/releases/Security-advisory-bulletin-006-006/3cf6264e-e0e6-4e26-a331-1d271f84673e

The original report as published on HackerOne, by ajxchapman. 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

The application failed to validate that the user-supplied version field, used to build the firmware download destination path, did not contain directory traversal sequences.

What the attacker needed

Access to the web interface; ability to trigger firmware update

The fix

A security advisory linked in the text discusses fixes for this vulnerability.

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 firmware update feature downloads a file and saves it to a folder. The server did not check that the save location stayed inside that folder. By putting special characters in the version field, an attacker could make the server save the file somewhere else on the computer, which could let them take over the system.

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 Alex Chapman

View all

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