Lucene search
K

OpenVAS Scanner Symlink Attack Local Privilege Escalation Vulnerability

šŸ—“ļøĀ 10 Jan 2012Ā 00:00:00Reported byĀ Copyright (C) 2012 Greenbone Networks GmbHTypeĀ 
openvas
Ā openvas
šŸ”—Ā plugins.openvas.orgšŸ‘Ā 21Ā Views

OpenVAS Scanner Symlink Attack Local Privilege Escalation Vulnerabilit

Related
Refs
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2011-3351
26 Nov 201900:32
–circl
CVE
CVE-2011-3351
25 Nov 201921:45
–cve
Cvelist
CVE-2011-3351
25 Nov 201921:45
–cvelist
EUVD
EUVD-2011-3315
7 Oct 202500:30
–euvd
NVD
CVE-2011-3351
25 Nov 201922:15
–nvd
OpenVAS
OpenVAS Scanner Symlink Attack Local Privilege Escalation Vulnerability
10 Jan 201200:00
–openvas
Prion
Code injection
25 Nov 201922:15
–prion
SUSE CVE
SUSE CVE-2011-3351
15 Feb 202305:51
–susecve
UbuntuCve
CVE-2011-3351
25 Nov 201922:15
–ubuntucve
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_openvas_scanner_prev_escl_vuln.nasl 7823 2017-11-20 08:54:04Z cfischer $
#
# OpenVAS Scanner Symlink Attack Local Privilege Escalation Vulnerability
#
# Authors:
# Antu Sanadi <[email protected]>
#
# Copyright:
# Copyright (c) 2012 Greenbone Networks GmbH, http://www.greenbone.net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

tag_insight = "The flaw is due to the application passing a predictable temporary
  filename to the '-r' parameter of the ovaldi application, which can be
  exploited to overwrite arbitrary files via symlink attacks.

  NOTE: This vulnerability exists when ovaldi support enabled.";

tag_impact = "Successful exploitation allows local user on a client or server system can
  gain access to the administrator or root account thus taking full control
  of the system.
  Impact Level: Application.";
tag_affected = "OpenVAS Project OpenVAS Scanner 3.2.4";
tag_solution = "Upgrade to OpenVAS Scanner 4 or later,
  For updates refer to http://www.openvas.org/software.html";
tag_summary = "This host is installed with OpenVAS Scanner and is prone to
  privilege escalation vulnerability.";

if(description)
{
  script_id(801979);
  script_version("$Revision: 7823 $");
  script_cve_id("CVE-2011-3351");
  script_bugtraq_id(49460);
  script_tag(name:"cvss_base", value:"5.1");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:H/Au:N/C:P/I:P/A:P");
  script_tag(name:"last_modification", value:"$Date: 2017-11-20 09:54:04 +0100 (Mon, 20 Nov 2017) $");
  script_tag(name:"creation_date", value:"2012-01-10 17:29:46 +0530 (Tue, 10 Jan 2012)");
  script_name("OpenVAS Scanner Symlink Attack Local Privilege Escalation Vulnerability");
  script_xref(name : "URL" , value : "http://seclists.org/oss-sec/2011/q3/432");
  script_xref(name : "URL" , value : "http://www.securelist.com/en/advisories/45836");
  script_xref(name : "URL" , value : "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=641327");

  script_tag(name:"qod_type", value:"executable_version");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2012 Greenbone Networks GmbH");
  script_family("General");
  script_dependencies("gather-package-list.nasl");
  script_mandatory_keys("login/SSH/success");
  script_exclude_keys("ssh/no_linux_shell");

  script_tag(name : "impact" , value : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  script_tag(name : "insight" , value : tag_insight);
  exit(0);
}

include("ssh_func.inc");
include("version_func.inc");

sock = ssh_login_or_reuse_connection();
if(!sock){
  exit(0);
}

foreach command (make_list("openvasd"))
{
  ## Find the command path
  openvasName = find_file(file_name:command, file_path:"/", useregex:TRUE,
                         regexpar:"$", sock:sock);

  ## Check for each path
  foreach binaryName (openvasName)
  {
    openvasVer = get_bin_version(full_prog_name:chomp(binaryName),
             version_argv:"--version", ver_pattern:"OpenVAS.(Scanner)?.?([0-9.]+)",
             sock:sock);

    ## check for the version
    if(openvasVer[2])
    {
      if(version_is_less_equal(version:openvasVer[2], test_version:"3.2.4"))
      {
        security_message(0);
        close(sock);
        exit(0);
      }
    }
  }
}
close(sock);

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