Skip to content
RCE Advisory Advanced CVE-2020-27867

NETGEAR Multiple Routers mini_httpd Command Injection Remote Code Execution Vulnerability

The mini_httpd service on several NETGEAR routers fails to validate the funjsq_access_token parameter before using it in a system call, allowing command injection. An attacker on the adjacent network could bypass authentication and execute code as root.

1sd3d Follow

Originally disclosed on Zero Day Initiative

Medium 6.8 View original

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of NETGEAR R6020, R6080, R6120, R6220, R6260, R6700v2, R6800, R6900v2, R7450, JNR3210, WNR2020, Nighthawk AC2100, and Nighthawk AC2400 routers. Although authentication is required to exploit this vulnerability, the…

1sd3d, 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 funjsq_access_token parameter is passed into a shell command without sanitisation, so shell metacharacters in the value are executed.

Impact

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

What the attacker needed

Network-adjacent access to the router; authentication bypass (mechanism not detailed)

The fix

NETGEAR issued a firmware update that corrects the flaw.

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 router runs a small web server so you can log in and change settings. This server takes a value from a request and passes it to the operating system without checking it, so someone who can reach the router can sneak in their own commands. Because the server runs with the highest privileges, those commands run as the router's administrator.

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.