Skip to content
RCE Write-up Advanced

Security Advisory: NETGEAR Routers FunJSQ Vulnerabilities

The FunJSQ component in NETGEAR routers had an insecure update mechanism that disabled TLS certificate validation and extracted unsigned packages to the root filesystem, and its HTTP server had an unauthenticated command injection in the funjsq_access_token parameter. An attacker could execute arbitrary code with root privileges from the LAN or WAN.

Quentin Kaiser Follow

Published on onekey.com

Example H2

Quentin Kaiser (@QKaiser), Mücahid Kır (@muc0ze), on onekey.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The update script used curl with certificate validation disabled and extracted unsigned archives to the root path, while the HTTP server built a shell command from unsanitised user input.

What the attacker needed

NETGEAR router with vulnerable firmware; FunJSQ component enabled (e.g., QoS on); For update attack: MitM position; For command injection: access to port 12300

The fix

The vulnerabilities were fixed in the listed firmware versions.

How it was found

  1. Send a request to apply_bind.cgi with action_mode=funjsq_bind and a crafted funjsq_access_token value.
  2. The token value is inserted into a curl command line without sanitisation.
  3. The injected command executes as root, as shown by the id output.

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 write-up has not been written yet. The Original tab links to the source.

The router runs a third-party gaming accelerator that downloads updates without checking if the download is genuine, and it also has a web service that passes user input directly to a system command. An attacker who can intercept network traffic or send a crafted request can run their own code on the router as the root user, taking full control.

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 Netgear

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.