Skip to content
RCE Advisory Advanced CVE-2021-27273

NETGEAR ProSAFE Network Management System SettingConfigController fileName Command Injection Remote Code Execution Vulnerability

The SettingConfigController class in NETGEAR ProSAFE Network Management System fails to validate the fileName parameter before passing it to a system call. An attacker who bypasses the existing authentication could run arbitrary commands as SYSTEM.

rgod Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of NETGEAR ProSAFE Network Management System. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.

rgod, 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 fileName parameter is concatenated into a shell command without validation or escaping, so shell metacharacters in the value are executed.

Impact

An attacker could execute arbitrary code with SYSTEM privileges, though authentication is required and the report claims the existing authentication mechanism can be bypassed.

What the attacker needed

Access to the NMS300 interface; bypass of the authentication mechanism

The fix

NETGEAR 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.

A command injection bug means a program takes input from a user and passes it to the operating system as a command without checking it. Here the fileName value is used in a system call, so crafted input can run extra commands on the server. The attacker first needs to get past the login, but the report says that protection can be bypassed.

What is RCE?

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

More by rgod

View all

696 more disclosed reports, best first.

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.