Rapid7 Vulnerability & Exploit Database

EyesOfNetwork 5.1-5.3 AutoDiscovery Target Command Execution

Back to Search

EyesOfNetwork 5.1-5.3 AutoDiscovery Target Command Execution



This module exploits multiple vulnerabilities in EyesOfNetwork version 5.1, 5.2 and 5.3 in order to execute arbitrary commands as root. This module takes advantage of a command injection vulnerability in the `target` parameter of the AutoDiscovery functionality within the EON web interface in order to write an Nmap NSE script containing the payload to disk. It then starts an Nmap scan to activate the payload. This results in privilege escalation because the`apache` user can execute Nmap as root. Valid credentials for a user with administrative privileges are required. However, this module can bypass authentication via various methods, depending on the EON version. EON 5.3 is vulnerable to a hardcoded API key and two SQL injection exploits. EON 5.1 and 5.2 can only be exploited via SQL injection. This module has been successfully tested on EyesOfNetwork 5.1, 5.2 and 5.3.


  • Clément Billac
  • bcoles <bcoles@gmail.com>
  • Erik Wynter


Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/linux/http/eyesofnetwork_autodiscovery_rce
msf exploit(eyesofnetwork_autodiscovery_rce) > show targets
msf exploit(eyesofnetwork_autodiscovery_rce) > set TARGET < target-id >
msf exploit(eyesofnetwork_autodiscovery_rce) > show options
    ...show and set options...
msf exploit(eyesofnetwork_autodiscovery_rce) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security