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