Skip to content
RCE Write-up Intermediate

Commanding Chaos The Tale Of Cve 2021 46704 In Genieacs

GenieACS versions before 1.2.8 had an unauthenticated OS command injection in the ping host argument of its UI API, due to insufficient input validation and a missing authorization check. An attacker could execute arbitrary commands on the server.

Abhishek Kollur Follow

Published on systemweakness.com

In the ever-evolving world of cybersecurity, even the most trusted tools can occasionally go rogue. Today, we’re diving into the misadventures of GenieACS, a popular TR-069 ACS (Auto Configuration Server) platform, and its critical vulnerability, CVE-2021–46704.

Abhishek Kollur, on systemweakness.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

Likely the ping host parameter was passed to a system command without proper sanitisation, and the API endpoint lacked an authentication check.

Impact

An attacker could execute arbitrary commands on the server, potentially leading to full compromise.

What the attacker needed

Network access to the GenieACS UI API; no authentication required

The fix

The vulnerability was fixed in GenieACS version 1.2.8; users should upgrade to that version or later.

How it was found

  1. Search Shodan for GenieACS instances using a favicon hash query.
  2. Examine the results to identify versions susceptible to the vulnerability.
  3. Use publicly available exploits to test the identified devices in a controlled environment with permission.

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.

GenieACS is a tool that helps manage internet routers and similar devices. A part of it that checks whether a host is reachable (a 'ping') did not check what the user typed, so someone could sneak in extra system commands. Because there was also no login check, anyone who could reach the service could run commands on the server.

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 Abhishek Kollur

View all

20 more disclosed reports, best first.

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.