Lucene search
K

OpenVAS Command Injection

🗓️ 13 Nov 2012 00:00:00Reported by Tim Brown at OpenVASType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 46 Views

OpenVAS Manager command injection vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2012-5520
26 Nov 201211:00
cve
Cvelist
CVE-2012-5520
26 Nov 201211:00
cvelist
EUVD
EUVD-2012-5412
7 Oct 202500:30
euvd
NVD
CVE-2012-5520
26 Nov 201212:45
nvd
Prion
Cross site request forgery (csrf)
26 Nov 201212:45
prion
securityvulns
[OVSA20121112] OpenVAS Manager Vulnerable To Command Injection
14 Nov 201200:00
securityvulns
securityvulns
OpenVAS Manager code execution
14 Nov 201200:00
securityvulns
SUSE CVE
SUSE CVE-2012-5520
15 Feb 202305:43
susecve
`OpenVAS Security Advisory (OVSA20121112)  
Date: 12th November 2012  
Product: OpenVAS Manager < 3.0.4 and < 4.0+beta4  
Vendor: OpenVAS <http://www.openvas.org/>  
Risk: Medium  
  
Summary  
  
It has been identified that OpenVAS Manager is vulnerable to command  
injection due to insufficient validation of user supplied data when  
processing OMP requests. It has been identified that this vulnerability  
may allow arbitrary code to be executed with the privileges of the  
OpenVAS Manager on vulnerable systems. CVE-2012-5520 has been assigned  
to this vulnerability.  
  
Current Status  
  
As of the 12th November, the state of the vulnerabilities is believed  
to be as follows. A patch has been supplied by Greenbone Networks which  
it successfully resolves this vulnerability. New releases of both 3.0.x  
and 4.0.x have also been created which incorporate this patch.  
  
Technical Details  
  
It has been identified that OpenVAS Manager is vulnerable to command  
injection due to insufficient validation of user supplied data when  
sending reports to a Sourcefire Defense Center.  
  
The processing of requests containing malicious values for the ip address  
or port causes the command below to be executed with the privileges of  
the OpenVAS Manager (typically root) using the send_to_sourcefire()  
function from manage_sql.c:  
  
command = g_strdup_printf ("/bin/sh %s %s %s %s %s > /dev/null"  
" 2> /dev/null",  
script,  
ip,  
port,  
pkcs12_file,  
report_file);  
  
...  
if (ret = system (command)...  
  
As you can see, an attacker can influence both the ip address and port  
within the concatenated string.  
  
The vulnerable code path is only accessible to authenticated users of  
OpenVAS Manager.  
  
Fix  
  
OpenVAS recommends that the publicly available patches are applied. If  
building from source, then either patch r14404, r14405 and r14421 (trunk)  
or r14437 (3.0.x) should be obtained from the OpenVAS SVN repository.  
A fresh tarball containing the latest stable release can be obtained from:  
  
* http://wald.intevation.org/frs/download.php/1212/openvas-manager-3.0.4.tar.gz  
  
In the event that OpenVAS has been supplied as part of a distribution  
then the vendor or organisation concerned should be contacted for a  
patch.  
  
History  
  
On the 7th November 2012, Greenbone Networks contacted the OpenVAS security team  
to notify them of the vulnerability and request assistance in  
coordinating the disclosure.  
  
OpenVAS Manager 3.0.4 was released on the 7th.  
  
The OpenVAS security team and Greenbone Networks opened a dialogue in order  
to draft this advisory and on the 12th November, CVE-2012-5520 was assigned for  
this vulnerability.  
  
Thanks  
  
OpenVAS would like to thank Andre Heinecke of Greenbone Networks for  
his help in reporting the vulnerability.  
`

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