Ubiquiti Networks EdgeOS Improper Certificate Validation Remote Code Execution Vulnerability
The firmware update process on several Ubiquiti EdgeOS routers did not properly validate the HTTPS certificate of the server it downloaded firmware from. An attacker who can intercept the update traffic could serve malicious firmware and execute code as root on the device.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Ubiquiti Networks EdgeOS on EdgeRouter X, EdgeRouter Pro X SFP, EdgeRouter 10X and EdgePoint 6-port routers. User interaction is required to exploit this vulnerability in that an administrator must perform a firmware…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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
Impact
An attacker who can intercept the firmware download could execute arbitrary code as root on the router, but the attack requires an administrator to initiate a firmware update.
What the attacker needed
Attacker can intercept network traffic; administrator performs firmware update
The fix
The vendor issued an update to correct the vulnerability.
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 router downloads a firmware update over HTTPS, it should check that the server's certificate is valid to ensure it is talking to the real server. Here, that check was missing, so someone who can intercept the network traffic could pretend to be the update server and send a malicious firmware file. Installing that file would let the attacker run commands on the router with the highest privileges.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.