Skip to content
RCE Disclosed report Intermediate

Command injection in the process of downloading the latest version of the cloud key firmware through the unifi management software.

The UniFi Cloud Key firmware download used an unprotected channel, allowing a man-in-the-middle attacker to interfere with the communication and possibly modify the firmware during an update. The issue was fixed in versions 5.3.12, 5.4.9 and 5.5.2 by using an encrypted channel.

dblack Follow

Originally disclosed on HackerOne

High 8.3 View original
  • Triaged in 2 hours
  • Fixed in 5 months
  • Paid in 4 months
  • Disclosed after 13 months

Summary by the program

In UniFi Cloud Key versions prior to 5.3.12, 5.4.9 and 5.5.2, the firmware is downloaded in a unprotected channel, with allow an attacker in an MitM scenario to interfere with the communication, and possibly modifying the firmware during an update. The versions 5.3.12, 5.4.9 and 5.5.2 fix this problem by utilizing encrypted channel to download the firmware.

The original report as published on HackerOne, by dblack. 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 firmware download was performed over an unencrypted channel, allowing interception and modification.

Impact

An attacker in a man-in-the-middle position could interfere with the communication and possibly modify the firmware during an update.

What the attacker needed

Attacker in man-in-the-middle position

The fix

The problem was fixed in versions 5.3.12, 5.4.9 and 5.5.2 by using an encrypted channel to download the firmware.

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.

When a device downloads an update, it should use a secure, encrypted connection. Here it did not, so someone between the device and the update server could interfere and possibly modify the firmware.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

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.