View Only to Root Privilege Escalation on UniFi Protect
UniFi Protect up to 1.13.2 let users run custom commands to assign themselves unauthorised roles, escalating privileges; fixed in later releases.
- Triaged in 5 days
- Fixed in 2 months
- Paid in 6 days
- Disclosed after 14 months
Summary by the program
UniFi Protect v1.13.2 (and prior) containing vulnerabilities allowing users to run certain custom commands that can be used to assign themselves unauthorized roles, escalating their privileges. These vulnerabilities were found on UniFi Protect v1.13.2 and prior versions for Cloud Key Gen2 plus. The Fix for these vulnerabilities were included in the new version of Unifi Protect v1.13.3 (for Cloud Key Gen2 plus) and Unifi Protect v1.14.10 (for UniFi Dream Machine Pro and UNVR) More details available at: https://community.ui.com/releases/UniFi-Protect-1-13-3/f4be7d35-93a3-422b-8eef-122e442c00ba https://community.ui.com/releases/UniFi-Protect-1-14-10/48a8dbdd-b872-47fa-bbde-1d24ddf5d5b5 https://community.ui.com/releases/Security-advisory-bulletin-012-012/1bba9134-f888-4010-81c0-b0dd53b9bda4
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 application allowed low-privileged users to execute custom commands without properly checking whether they were allowed to change their own role.
Impact
A view-only user could escalate their privileges by assigning themselves unauthorised roles.
What the attacker needed
View-only access to UniFi Protect
The fix
The vulnerabilities were fixed in UniFi Protect v1.13.3 for Cloud Key Gen2 plus and v1.14.10 for UniFi Dream Machine Pro and UNVR.
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 view-only user could run special commands to give themselves a more powerful role than intended.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.