Skip to content
RCE Write-up Intermediate

Pentest discoveries on EyesOfNetwork

The EyesOfNetwork monitoring application had default admin credentials, an OS command injection in its discovery module, a privilege escalation via sudo Nmap, and an SQL injection in its API authentication. An attacker could chain these to execute commands as root and authenticate as admin without knowing the password.

medium.com

Published on medium.com

In this article I will share with you the story behind the CVE’s I found on EyesOfNetwork. EON is an IT monitoring solution based on Nagios and Cacti; it provides an easy-to-use web interface for its users.

Clément, on medium.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 application failed to sanitise user input in the discovery module and API authentication, and it granted excessive sudo privileges to the web server user.

Impact

An attacker could execute arbitrary commands as root and authenticate as admin, leading to full compromise of the monitoring server.

What the attacker needed

Default credentials admin/admin; network access to the web interface

The fix

The developers shipped an update that fixed the most severe issues.

How it was found

  1. Log in with default credentials admin/admin.
  2. In the discovery module, enter a command with a semicolon in the target field to execute arbitrary commands.
  3. Use the apache user's sudo rights to run Nmap as root and escalate privileges via a custom NSE script.
  4. Exploit SQL injection in the getApiKey API endpoint to authenticate as admin without knowing the password.
  5. Create a new admin user via the API, then create a discovery job to trigger a reverse shell as root.

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.

EyesOfNetwork is a tool for monitoring servers. It shipped with a default username and password (admin/admin), and its web interface allowed users to run system commands without proper checks. This meant an attacker could take full control of 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.

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.