Skip to content
RCE Advisory Advanced CVE-2021-22909

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.

awxylitol Follow

Originally disclosed on Zero Day Initiative

High 7.5 View original

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…

awxylitol, on the Zero Day Initiative

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.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.