Lucene search
+L

OpenVAS Scanner Symlink Attack Local Privilege Escalation Vulnerability

🗓️ 10 Jan 2012 00:00:00Reported by Copyright (C) 2012 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 29 Views

OpenVAS Scanner Symlink Attack Local Privilege Escalation Vulnerability. Application passes predictable temporary filenames, allowing arbitrary file overwrites via symlink attacks

Related
Refs
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2011-3351
26 Nov 201900:32
circl
cve
CVE
CVE-2011-3351
25 Nov 201921:45
cve
cvelist
Cvelist
CVE-2011-3351
25 Nov 201921:45
cvelist
euvd
EUVD
EUVD-2011-3315
7 Oct 202500:30
euvd
nvd
NVD
CVE-2011-3351
25 Nov 201922:15
nvd
openvas
OpenVAS
OpenVAS Scanner Symlink Attack Local Privilege Escalation Vulnerability
10 Jan 201200:00
openvas
prion
Prion
Code injection
25 Nov 201922:15
prion
susecve
SUSE CVE
SUSE CVE-2011-3351
15 Feb 202305:51
susecve
ubuntucve
UbuntuCve
CVE-2011-3351
25 Nov 201922:15
ubuntucve
# SPDX-FileCopyrightText: 2012 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.801979");
  script_version("2024-11-22T15:40:47+0000");
  script_cve_id("CVE-2011-3351");
  script_tag(name:"cvss_base", value:"6.6");
  script_tag(name:"cvss_base_vector", value:"AV:L/AC:L/Au:N/C:N/I:C/A:C");
  script_tag(name:"last_modification", value:"2024-11-22 15:40:47 +0000 (Fri, 22 Nov 2024)");
  script_tag(name:"severity_vector", value:"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2019-12-11 18:39:00 +0000 (Wed, 11 Dec 2019)");
  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.securityfocus.com/bid/49460");
  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 AG");
  script_family("Privilege escalation");
  script_tag(name:"solution_type", value:"VendorFix");
  script_dependencies("gather-package-list.nasl");
  script_mandatory_keys("login/SSH/success");
  script_exclude_keys("ssh/no_linux_shell");

  script_tag(name:"impact", value:"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.");

  script_tag(name:"affected", value:"OpenVAS Project OpenVAS Scanner 3.2.4.");

  script_tag(name:"solution", value:"Upgrade to OpenVAS Scanner 4 or later.");

  script_tag(name:"summary", value:"OpenVAS Scanner is prone to a privilege escalation vulnerability.");

  script_tag(name:"insight", value:"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.");

  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"))
{
  openvasName = ssh_find_file(file_name:"/" + command + "$", useregex:TRUE, sock:sock);

  foreach binaryName (openvasName)
  {
    binaryName = chomp(binaryName);
    if(!binaryName)
      continue;

    openvasVer = ssh_get_bin_version(full_prog_name:binaryName, version_argv:"--version", ver_pattern:"OpenVAS.(Scanner)?.?([0-9.]+)", sock:sock);

    if(openvasVer[2])
    {
      if(version_is_less_equal(version:openvasVer[2], test_version:"3.2.4"))
      {
        security_message( port: 0, data: "The target host was found to be vulnerable" );
        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

22 Nov 2024 00:00Current
7.1High risk
Vulners AI Score7.1
CVSS 26.6
CVSS 3.17.1
EPSS0.00398
29