GLSA-201206-22 : Samba: Multiple vulnerabilities - Nessus

Critical   Plugin ID: 59675

This page contains detailed information about the GLSA-201206-22 : Samba: Multiple vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 59675
Name: GLSA-201206-22 : Samba: Multiple vulnerabilities
Filename: gentoo_GLSA-201206-22.nasl
Vulnerability Published: N/A
This Plugin Published: 2012-06-25
Last Modification Time: 2021-01-06
Plugin Version: 1.14
Plugin Type: local
Plugin Family: Gentoo Local Security Checks
Dependencies: ssh_get_info.nasl
Required KB Items [?]: Host/Gentoo/qpkg-list, Host/Gentoo/release, Host/local_checks_enabled

Vulnerability Information


Severity: Critical
Vulnerability Published: N/A
Patch Published: 2012-06-24
CVE [?]: CVE-2009-2906, CVE-2009-2948, CVE-2010-0728, CVE-2010-1635, CVE-2010-1642, CVE-2010-2063, CVE-2010-3069, CVE-2011-0719, CVE-2011-1678, CVE-2011-2724, CVE-2012-0870, CVE-2012-1182, CVE-2012-2111
CPE [?]: cpe:/o:gentoo:linux, p-cpe:/a:gentoo:linux:samba

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-201206-22 (Samba: Multiple vulnerabilities)

Multiple vulnerabilities have been discovered in Samba. Please review the CVE identifiers referenced below for details. Impact :

A remote attacker could possibly execute arbitrary code with root privileges, cause a Denial of Service condition, take ownership of shared files, or bypass file permissions. Furthermore, a local attacker may be able to cause a Denial of Service condition or obtain sensitive information in a Samba credentials file. Workaround :

There is no known workaround at this time.

Solution

All Samba users should upgrade to the latest version: # emerge --sync # emerge --ask --oneshot --verbose '>=net-fs/samba-3.5.15'

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub, Immunity Canvas, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the GLSA-201206-22 : Samba: Multiple vulnerabilities vulnerability:

  1. Metasploit: exploit/linux/samba/setinfopolicy_heap
    [Samba SetInformationPolicy AuditEventsInfo Heap Overflow]
  2. Metasploit: exploit/linux/samba/chain_reply
    [Samba chain_reply Memory Corruption (Linux x86)]
  3. Exploit-DB: exploits/linux_x86/remote/16860.rb
    [EDB-16860: Samba 3.3.12 (Linux x86) - 'chain_reply' Memory Corruption (Metasploit)]
  4. Exploit-DB: exploits/linux/remote/21850.rb
    [EDB-21850: Samba 3.4.16/3.5.14/3.6.4 - SetInformationPolicy AuditEventsInfo Heap Overflow (Metasploit)]
  5. GitHub: https://github.com/Eutectico/Steel-Mountain
    [CVE-2012-1182]
  6. GitHub: https://github.com/Qftm/Information_Collection_Handbook
    [CVE-2012-1182]
  7. GitHub: https://github.com/amishamunjal-az/Week16-Homework
    [CVE-2012-1182]
  8. GitHub: https://github.com/esteban0477/RedTeamPlaybook
    [CVE-2012-1182]
  9. GitHub: https://github.com/katgoods/week16
    [CVE-2012-1182]
  10. GitHub: https://github.com/notsag-dev/htb-blue
    [CVE-2012-1182]
  11. GitHub: https://github.com/notsag-dev/htb-legacy
    [CVE-2012-1182]
  12. GitHub: https://github.com/superhero1/OSCP-Prep
    [CVE-2012-1182]
  13. Immunity Canvas: CANVAS

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:8.3 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.3 (High)

Go back to menu.

Plugin Source


This is the gentoo_GLSA-201206-22.nasl nessus plugin source code. This script is Copyright (C) 2012-2021 Tenable Network Security, Inc.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from Gentoo Linux Security Advisory GLSA 201206-22.
#
# The advisory text is Copyright (C) 2001-2016 Gentoo Foundation, Inc.
# and licensed under the Creative Commons - Attribution / Share Alike 
# license. See http://creativecommons.org/licenses/by-sa/3.0/
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(59675);
  script_version("1.14");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/06");

  script_cve_id("CVE-2009-2906", "CVE-2009-2948", "CVE-2010-0728", "CVE-2010-1635", "CVE-2010-1642", "CVE-2010-2063", "CVE-2010-3069", "CVE-2011-0719", "CVE-2011-1678", "CVE-2011-2724", "CVE-2012-0870", "CVE-2012-1182", "CVE-2012-2111");
  script_bugtraq_id(36572, 36573, 38326, 38606, 40097, 40884, 43212, 46597, 49939, 52103, 52973, 53307);
  script_xref(name:"GLSA", value:"201206-22");

  script_name(english:"GLSA-201206-22 : Samba: Multiple vulnerabilities");
  script_summary(english:"Checks for updated package(s) in /var/db/pkg");

  script_set_attribute(
    attribute:"synopsis", 
    value:
"The remote Gentoo host is missing one or more security-related
patches."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"The remote host is affected by the vulnerability described in GLSA-201206-22
(Samba: Multiple vulnerabilities)

    Multiple vulnerabilities have been discovered in Samba. Please review
      the CVE identifiers referenced below for details.
  
Impact :

    A remote attacker could possibly execute arbitrary code with root
      privileges, cause a Denial of Service condition, take ownership of shared
      files, or bypass file permissions. Furthermore, a local attacker may be
      able to cause a Denial of Service condition or obtain sensitive
      information in a Samba credentials file.
  
Workaround :

    There is no known workaround at this time."
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security.gentoo.org/glsa/201206-22"
  );
  script_set_attribute(
    attribute:"solution", 
    value:
"All Samba users should upgrade to the latest version:
      # emerge --sync
      # emerge --ask --oneshot --verbose '>=net-fs/samba-3.5.15'"
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"exploit_framework_core", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Samba SetInformationPolicy AuditEventsInfo Heap Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
  script_set_attribute(attribute:"canvas_package", value:'CANVAS');
  script_cwe_id(264);

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:gentoo:linux:samba");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:gentoo:linux");

  script_set_attribute(attribute:"patch_publication_date", value:"2012/06/24");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/06/25");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2012-2021 Tenable Network Security, Inc.");
  script_family(english:"Gentoo Local Security Checks");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/Gentoo/release", "Host/Gentoo/qpkg-list");

  exit(0);
}


include("audit.inc");
include("global_settings.inc");
include("qpkg.inc");

if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
if (!get_kb_item("Host/Gentoo/release")) audit(AUDIT_OS_NOT, "Gentoo");
if (!get_kb_item("Host/Gentoo/qpkg-list")) audit(AUDIT_PACKAGE_LIST_MISSING);


flag = 0;

if (qpkg_check(package:"net-fs/samba", unaffected:make_list("ge 3.5.15"), vulnerable:make_list("lt 3.5.15"))) flag++;

if (flag)
{
  if (report_verbosity > 0) security_hole(port:0, extra:qpkg_report_get());
  else security_hole(0);
  exit(0);
}
else
{
  tested = qpkg_tests_get();
  if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
  else audit(AUDIT_PACKAGE_NOT_INSTALLED, "Samba");
}

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/gentoo_GLSA-201206-22.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\gentoo_GLSA-201206-22.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/gentoo_GLSA-201206-22.nasl

Go back to menu.

How to Run


Here is how to run the GLSA-201206-22 : Samba: Multiple vulnerabilities as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Gentoo Local Security Checks plugin family.
  6. On the right side table select GLSA-201206-22 : Samba: Multiple vulnerabilities plugin ID 59675.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl gentoo_GLSA-201206-22.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a gentoo_GLSA-201206-22.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - gentoo_GLSA-201206-22.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state gentoo_GLSA-201206-22.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: GLSA | Gentoo Linux Security Advisory: CWE | Common Weakness Enumeration:
  • CWE-264 (Category) Permissions, Privileges, and Access Controls
See also: Similar and related Nessus plugins:
  • 65141 - CentOS 6 : samba4 (CESA-2013:0506)
  • 65147 - CentOS 6 : evolution-mapi / openchange (CESA-2013:0515)
  • 47103 - Debian DSA-2061-1 : samba - memory corruption
  • 58729 - Debian DSA-2450-1 : samba - privilege escalation
  • 58789 - Fedora 17 : samba-3.6.4-82.fc17.1 (2012-5793)
  • 58823 - Fedora 15 : samba-3.5.14-73.fc15.1 (2012-5805)
  • 58980 - Fedora 15 : samba4-4.0.0-26.alpha11.fc15.6 (2012-6349)
  • 59098 - Fedora 16 : samba4-4.0.0-38.alpha16.fc16 (2012-6382)
  • 45372 - Mac OS X 10.6.x < 10.6.3 Multiple Vulnerabilities
  • 52754 - Mac OS X 10.6.x < 10.6.7 Multiple Vulnerabilities
  • 55416 - Mac OS X 10.6.x < 10.6.8 Multiple Vulnerabilities
  • 45373 - Mac OS X Multiple Vulnerabilities (Security Update 2010-002)
  • 48424 - Mac OS X Multiple Vulnerabilities (Security Update 2010-005)
  • 55415 - Mac OS X Multiple Vulnerabilities (Security Update 2011-004)
  • 59067 - Mac OS X Multiple Vulnerabilities (Security Update 2012-002) (BEAST)
  • 47042 - Mandriva Linux Security Advisory : samba (MDVSA-2010:119)
  • 58716 - Mandriva Linux Security Advisory : samba (MDVSA-2012:055)
  • 68484 - Oracle Linux 5 : samba (ELSA-2012-0313)
  • 68506 - Oracle Linux 5 / 6 : samba (ELSA-2012-0465)
  • 68507 - Oracle Linux 5 : samba3x (ELSA-2012-0466)
  • 68512 - Oracle Linux 4 : samba (ELSA-2012-0478)
  • 68746 - Oracle Linux 6 : samba4 (ELSA-2013-0506)
  • 68752 - Oracle Linux 6 : openchange (ELSA-2013-0515)
  • 64757 - RHEL 6 : samba4 (RHSA-2013:0506)
  • 64763 - RHEL 6 : openchange (RHSA-2013:0515)
  • 47036 - Samba 3.x < 3.3.13 SMB1 Packet Chaining Memory Corruption
  • 58662 - Samba 3.x < 3.6.4 / 3.5.14 / 3.4.16 RPC Multiple Buffer Overflows
  • 47047 - Slackware 10.0 / 10.1 / 10.2 / 11.0 / 12.0 / 12.1 / 12.2 / 13.0 : samba (SSA:2010-169-01)
  • 58743 - Ubuntu 8.04 LTS / 10.04 LTS / 11.04 / 11.10 : samba vulnerability (USN-1423-1)
  • 49085 - VMSA-2010-0013 : VMware ESX third-party updates for Service Console
  • 89741 - VMware ESX Multiple Vulnerabilities (VMSA-2010-0013) (remote check)
  • 51077 - VMSA-2010-0019 : VMware ESX third-party updates for Service Console
  • 89745 - VMware ESX Multiple Vulnerabilities (VMSA-2010-0019) (remote check)
  • 57749 - VMSA-2012-0001 : VMware ESXi and ESX updates to third-party library and ESX Service Console
  • 89105 - VMware ESX / ESXi Service Console and Third-Party Libraries Multiple Vulnerabilities (VMSA-2012-0001) (remote check)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file gentoo_GLSA-201206-22.nasl version 1.14. For more plugins, visit the Nessus Plugin Library.

Go back to menu.