UniFi Video v3.2.2 (Windows) Local Privileges Escalation due to weak default install directory ACLs
The UniFi Video Windows installer created directories with weak permissions, letting unprivileged users modify program files. An attacker could then escalate privileges by altering those files.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 18 months
- Paid in 10 months
- Disclosed after 19 months
Summary by the program
The UniFi Video Windows installation v3.7.3 and prior create directories with insecure permission, allowing unprivileged users to modify UniFi Video files and consequently escalate privileges.
Summary by the researcher
This vulnerability does affect all UniFi video versions up to and including 3.7.3 and is referenced by CVE-2016-6914.
The full public advisory can be found here: http://seclists.org/fulldisclosure/2017/Dec/83.
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 installer set overly permissive access control lists on its installation directories, allowing standard users to write to files that are later executed with higher privileges.
Impact
An unprivileged local user could modify UniFi Video files and escalate their privileges on the Windows host.
What the attacker needed
Local access to a Windows host; UniFi Video v3.7.3 or earlier installed
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 program is installed, it creates folders on the computer. If those folders can be changed by any user, a normal user could replace a program file with their own. Then, when the program runs with higher rights, the attacker's file runs too, giving them more control.
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.