Skip to content
Crypto Advisory Advanced CVE-2021-27254

(Pwn2Own) NETGEAR Nighthawk R7800 Use of Hard-coded Password Authentication Bypass Vulnerability

The apply_save.cgi endpoint on the NETGEAR R7800 router uses a hard-coded encryption key for authentication. A network-adjacent attacker can bypass authentication and execute arbitrary code as root.

84c0 Follow

Originally disclosed on Zero Day Initiative

Medium 6.3 View original

This vulnerability allows network-adjacent attackers to bypass authentication on affected installations of NETGEAR R7800. Authentication is not required to exploit this vulnerability.

84c0, 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

Root cause

Likely the apply_save.cgi endpoint authenticates requests using a fixed encryption key embedded in the firmware rather than a per-device secret.

Impact

A network-adjacent attacker could bypass authentication and execute arbitrary code as root on the router.

What the attacker needed

Network-adjacent access to the router

The fix

NETGEAR issued a firmware 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.

A hard-coded password or key is one that is built into the device's software and is the same for every unit, so anyone who finds it can use it. Here, the router's apply_save.cgi page checks a key that never changes, letting someone on the same network skip the login. Once past that check, the attacker can run commands on the router with the highest privileges.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

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.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.