Vulnerabilities > CVE-2012-2111 - Permissions, Privileges, and Access Controls vulnerability in Samba

047910
CVSS 6.5 - MEDIUM
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
SINGLE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
low complexity
samba
CWE-264
nessus

Summary

The (1) CreateAccount, (2) OpenAccount, (3) AddAccountRights, and (4) RemoveAccountRights LSA RPC procedures in smbd in Samba 3.4.x before 3.4.17, 3.5.x before 3.5.15, and 3.6.x before 3.6.5 do not properly restrict modifications to the privileges database, which allows remote authenticated users to obtain the "take ownership" privilege via an LSA connection.

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Accessing, Modifying or Executing Executable Files
    An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Blue Boxing
    This type of attack against older telephone switches and trunks has been around for decades. A tone is sent by an adversary to impersonate a supervisor signal which has the effect of rerouting or usurping command of the line. While the US infrastructure proper may not contain widespread vulnerabilities to this type of attack, many companies are connected globally through call centers and business process outsourcing. These international systems may be operated in countries which have not upgraded Telco infrastructure and so are vulnerable to Blue boxing. Blue boxing is a result of failure on the part of the system to enforce strong authorization for administrative functions. While the infrastructure is different than standard current applications like web applications, there are historical lessons to be learned to upgrade the access control for administrative functions.
  • Restful Privilege Elevation
    Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
  • Target Programs with Elevated Privileges
    This attack targets programs running with elevated privileges. The attacker would try to leverage a bug in the running program and get arbitrary code to execute with elevated privileges. For instance an attacker would look for programs that write to the system directories or registry keys (such as HKLM, which stores a number of critical Windows environment variables). These programs are typically running with elevated privileges and have usually not been designed with security in mind. Such programs are excellent exploit targets because they yield lots of power when they break. The malicious user try to execute its code at the same level as a privileged system call.

Nessus

  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2012-258.NASL
    description - docs-xml: fix default name resolve order; (bso#7564). - s3-aio-fork: Fix a segfault in vfs_aio_fork; (bso#8836). - docs: remove whitespace in example samba.ldif; (bso#8789). - s3-smbd: move print_backend_init() behind init_system_info(); (bso#8845). - s3-docs: Prepend
    last seen2020-06-05
    modified2014-06-13
    plugin id74613
    published2014-06-13
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/74613
    titleopenSUSE Security Update : samba (openSUSE-SU-2012:0583-1)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from openSUSE Security Update openSUSE-2012-258.
    #
    # The text description of this plugin is (C) SUSE LLC.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(74613);
      script_version("1.4");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/04");
    
      script_cve_id("CVE-2012-2111");
    
      script_name(english:"openSUSE Security Update : samba (openSUSE-SU-2012:0583-1)");
      script_summary(english:"Check for the openSUSE-2012-258 patch");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote openSUSE host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "  - docs-xml: fix default name resolve order; (bso#7564).
    
      - s3-aio-fork: Fix a segfault in vfs_aio_fork; (bso#8836).
    
      - docs: remove whitespace in example samba.ldif;
        (bso#8789).
    
      - s3-smbd: move print_backend_init() behind
        init_system_info(); (bso#8845).
    
      - s3-docs: Prepend '/' to filename argument; (bso#8826).
    
      - Restrict self granting privileges where security=ads for
        Samba post-3.3.16; CVE-2012-2111; (bnc#757576)."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=757576"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.samba.org/show_bug.cgi?id=7564"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.samba.org/show_bug.cgi?id=8789"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.samba.org/show_bug.cgi?id=8826"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.samba.org/show_bug.cgi?id=8836"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.samba.org/show_bug.cgi?id=8845"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://lists.opensuse.org/opensuse-updates/2012-05/msg00003.html"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected samba packages."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:ldapsmb");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libldb-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libldb1");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libldb1-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libldb1-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libldb1-debuginfo-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libnetapi-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libnetapi0");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libnetapi0-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libsmbclient-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libsmbclient0");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libsmbclient0-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libsmbclient0-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libsmbclient0-debuginfo-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libsmbsharemodes-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libsmbsharemodes0");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libsmbsharemodes0-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libtalloc-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libtalloc2");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libtalloc2-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libtalloc2-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libtalloc2-debuginfo-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libtdb-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libtdb1");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libtdb1-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libtdb1-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libtdb1-debuginfo-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libtevent-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libtevent0");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libtevent0-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libtevent0-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libtevent0-debuginfo-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libwbclient-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libwbclient0");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libwbclient0-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libwbclient0-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libwbclient0-debuginfo-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:samba");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:samba-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:samba-client");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:samba-client-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:samba-client-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:samba-client-debuginfo-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:samba-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:samba-debuginfo-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:samba-debugsource");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:samba-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:samba-krb-printing");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:samba-krb-printing-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:samba-winbind");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:samba-winbind-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:samba-winbind-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:samba-winbind-debuginfo-32bit");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:12.1");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2012/04/30");
      script_set_attribute(attribute:"patch_publication_date", value:"2012/05/02");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/06/13");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"SuSE Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/SuSE/release", "Host/SuSE/rpm-list", "Host/cpu");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/SuSE/release");
    if (isnull(release) || release =~ "^(SLED|SLES)") audit(AUDIT_OS_NOT, "openSUSE");
    if (release !~ "^(SUSE12\.1)$") audit(AUDIT_OS_RELEASE_NOT, "openSUSE", "12.1", release);
    if (!get_kb_item("Host/SuSE/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    ourarch = get_kb_item("Host/cpu");
    if (!ourarch) audit(AUDIT_UNKNOWN_ARCH);
    if (ourarch !~ "^(i586|i686|x86_64)$") audit(AUDIT_ARCH_NOT, "i586 / i686 / x86_64", ourarch);
    
    flag = 0;
    
    if ( rpm_check(release:"SUSE12.1", reference:"ldapsmb-1.34b-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libldb-devel-1.0.2-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libldb1-1.0.2-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libldb1-debuginfo-1.0.2-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libnetapi-devel-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libnetapi0-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libnetapi0-debuginfo-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libsmbclient-devel-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libsmbclient0-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libsmbclient0-debuginfo-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libsmbsharemodes-devel-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libsmbsharemodes0-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libsmbsharemodes0-debuginfo-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libtalloc-devel-2.0.5-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libtalloc2-2.0.5-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libtalloc2-debuginfo-2.0.5-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libtdb-devel-1.2.9-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libtdb1-1.2.9-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libtdb1-debuginfo-1.2.9-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libtevent-devel-0.9.11-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libtevent0-0.9.11-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libtevent0-debuginfo-0.9.11-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libwbclient-devel-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libwbclient0-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libwbclient0-debuginfo-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"samba-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"samba-client-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"samba-client-debuginfo-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"samba-debuginfo-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"samba-debugsource-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"samba-devel-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"samba-krb-printing-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"samba-krb-printing-debuginfo-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"samba-winbind-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"samba-winbind-debuginfo-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"libldb1-32bit-1.0.2-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"libldb1-debuginfo-32bit-1.0.2-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"libsmbclient0-32bit-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"libsmbclient0-debuginfo-32bit-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"libtalloc2-32bit-2.0.5-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"libtalloc2-debuginfo-32bit-2.0.5-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"libtdb1-32bit-1.2.9-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"libtdb1-debuginfo-32bit-1.2.9-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"libtevent0-32bit-0.9.11-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"libtevent0-debuginfo-32bit-0.9.11-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"libwbclient0-32bit-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"libwbclient0-debuginfo-32bit-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"samba-32bit-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"samba-client-32bit-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"samba-client-debuginfo-32bit-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"samba-debuginfo-32bit-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"samba-winbind-32bit-3.6.3-34.12.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"samba-winbind-debuginfo-32bit-3.6.3-34.12.1") ) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "ldapsmb / libldb-devel / libldb1 / libldb1-32bit / etc");
    }
    
  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20120430_SAMBA_AND_SAMBA3X_ON_SL5_X.NASL
    descriptionSamba is an open source implementation of the Server Message Block (SMB) or Common Internet File System (CIFS) protocol, which allows PC-compatible machines to share files, printers, and other information. A flaw was found in the way Samba handled certain Local Security Authority (LSA) Remote Procedure Calls (RPC). An authenticated user could use this flaw to issue an RPC call that would modify the privileges database on the Samba server, allowing them to steal the ownership of files and directories that are being shared by the Samba server, and create, delete, and modify user accounts, as well as other Samba server administration tasks. (CVE-2012-2111) Users of Samba are advised to upgrade to these updated packages, which contain a backported patch to resolve this issue. After installing this update, the smb service will be restarted automatically.
    last seen2020-03-18
    modified2012-08-01
    plugin id61308
    published2012-08-01
    reporterThis script is Copyright (C) 2012-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/61308
    titleScientific Linux Security Update : samba and samba3x on SL5.x, SL6.x i386/x86_64 (20120430)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text is (C) Scientific Linux.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(61308);
      script_version("1.12");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2012-2111");
    
      script_name(english:"Scientific Linux Security Update : samba and samba3x on SL5.x, SL6.x i386/x86_64 (20120430)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Scientific Linux host is missing one or more security
    updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Samba is an open source implementation of the Server Message Block
    (SMB) or Common Internet File System (CIFS) protocol, which allows
    PC-compatible machines to share files, printers, and other
    information.
    
    A flaw was found in the way Samba handled certain Local Security
    Authority (LSA) Remote Procedure Calls (RPC). An authenticated user
    could use this flaw to issue an RPC call that would modify the
    privileges database on the Samba server, allowing them to steal the
    ownership of files and directories that are being shared by the Samba
    server, and create, delete, and modify user accounts, as well as other
    Samba server administration tasks. (CVE-2012-2111)
    
    Users of Samba are advised to upgrade to these updated packages, which
    contain a backported patch to resolve this issue. After installing
    this update, the smb service will be restarted automatically."
      );
      # https://listserv.fnal.gov/scripts/wa.exe?A2=ind1204&L=scientific-linux-errata&T=0&P=2540
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?15f88f35"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libsmbclient");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libsmbclient-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba-client");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba-common");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba-doc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba-domainjoin-gui");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba-swat");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba-winbind");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba-winbind-clients");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba-winbind-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba-winbind-krb5-locator");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba3x");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba3x-client");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba3x-common");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba3x-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba3x-doc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba3x-domainjoin-gui");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba3x-swat");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba3x-winbind");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:samba3x-winbind-devel");
      script_set_attribute(attribute:"cpe", value:"x-cpe:/o:fermilab:scientific_linux");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2012/04/30");
      script_set_attribute(attribute:"patch_publication_date", value:"2012/04/30");
      script_set_attribute(attribute:"plugin_publication_date", value:"2012/08/01");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2012-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Scientific Linux Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Scientific Linux " >!< release) audit(AUDIT_HOST_NOT, "running Scientific Linux");
    os_ver = pregmatch(pattern: "Scientific Linux.*release ([0-9]+(\.[0-9]+)?)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Scientific Linux");
    os_ver = os_ver[1];
    if (! preg(pattern:"^6([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Scientific Linux 6.x", "Scientific Linux " + os_ver);
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if (cpu >!< "x86_64" && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Scientific Linux", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"SL5", reference:"samba3x-3.5.10-0.109.el5_8")) flag++;
    if (rpm_check(release:"SL5", reference:"samba3x-client-3.5.10-0.109.el5_8")) flag++;
    if (rpm_check(release:"SL5", reference:"samba3x-common-3.5.10-0.109.el5_8")) flag++;
    if (rpm_check(release:"SL5", reference:"samba3x-debuginfo-3.5.10-0.109.el5_8")) flag++;
    if (rpm_check(release:"SL5", reference:"samba3x-doc-3.5.10-0.109.el5_8")) flag++;
    if (rpm_check(release:"SL5", reference:"samba3x-domainjoin-gui-3.5.10-0.109.el5_8")) flag++;
    if (rpm_check(release:"SL5", reference:"samba3x-swat-3.5.10-0.109.el5_8")) flag++;
    if (rpm_check(release:"SL5", reference:"samba3x-winbind-3.5.10-0.109.el5_8")) flag++;
    if (rpm_check(release:"SL5", reference:"samba3x-winbind-devel-3.5.10-0.109.el5_8")) flag++;
    
    if (rpm_check(release:"SL6", reference:"libsmbclient-3.5.10-116.el6_2")) flag++;
    if (rpm_check(release:"SL6", reference:"libsmbclient-devel-3.5.10-116.el6_2")) flag++;
    if (rpm_check(release:"SL6", reference:"samba-3.5.10-116.el6_2")) flag++;
    if (rpm_check(release:"SL6", reference:"samba-client-3.5.10-116.el6_2")) flag++;
    if (rpm_check(release:"SL6", reference:"samba-common-3.5.10-116.el6_2")) flag++;
    if (rpm_check(release:"SL6", reference:"samba-debuginfo-3.5.10-116.el6_2")) flag++;
    if (rpm_check(release:"SL6", reference:"samba-doc-3.5.10-116.el6_2")) flag++;
    if (rpm_check(release:"SL6", reference:"samba-domainjoin-gui-3.5.10-116.el6_2")) flag++;
    if (rpm_check(release:"SL6", reference:"samba-swat-3.5.10-116.el6_2")) flag++;
    if (rpm_check(release:"SL6", reference:"samba-winbind-3.5.10-116.el6_2")) flag++;
    if (rpm_check(release:"SL6", reference:"samba-winbind-clients-3.5.10-116.el6_2")) flag++;
    if (rpm_check(release:"SL6", reference:"samba-winbind-devel-3.5.10-116.el6_2")) flag++;
    if (rpm_check(release:"SL6", reference:"samba-winbind-krb5-locator-3.5.10-116.el6_2")) flag++;
    
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_WARNING,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "libsmbclient / libsmbclient-devel / samba / samba-client / etc");
    }
    
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-1434-1.NASL
    descriptionIvano Cristofolini discovered that Samba incorrectly handled some Local Security Authority (LSA) remote procedure calls (RPC). A remote, authenticated attacker could exploit this to grant administrative privileges to arbitrary users. The administrative privileges could be used to bypass permission checks performed by the Samba server. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id58948
    published2012-05-01
    reporterUbuntu Security Notice (C) 2012-2019 Canonical, Inc. / NASL script (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/58948
    titleUbuntu 10.04 LTS / 11.04 / 11.10 / 12.04 LTS : samba vulnerability (USN-1434-1)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Ubuntu Security Notice USN-1434-1. The text 
    # itself is copyright (C) Canonical, Inc. See 
    # <http://www.ubuntu.com/usn/>. Ubuntu(R) is a registered 
    # trademark of Canonical, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(58948);
      script_version("1.11");
      script_cvs_date("Date: 2019/09/19 12:54:28");
    
      script_cve_id("CVE-2012-2111");
      script_bugtraq_id(53307);
      script_xref(name:"USN", value:"1434-1");
    
      script_name(english:"Ubuntu 10.04 LTS / 11.04 / 11.10 / 12.04 LTS : samba vulnerability (USN-1434-1)");
      script_summary(english:"Checks dpkg output for updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Ubuntu host is missing a security-related patch."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Ivano Cristofolini discovered that Samba incorrectly handled some
    Local Security Authority (LSA) remote procedure calls (RPC). A remote,
    authenticated attacker could exploit this to grant administrative
    privileges to arbitrary users. The administrative privileges could be
    used to bypass permission checks performed by the Samba server.
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Ubuntu security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://usn.ubuntu.com/1434-1/"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected samba package.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:samba");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:10.04:-:lts");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:11.04");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:11.10");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:12.04:-:lts");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2012/04/30");
      script_set_attribute(attribute:"patch_publication_date", value:"2012/05/01");
      script_set_attribute(attribute:"plugin_publication_date", value:"2012/05/01");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"Ubuntu Security Notice (C) 2012-2019 Canonical, Inc. / NASL script (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Ubuntu Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/cpu", "Host/Ubuntu", "Host/Ubuntu/release", "Host/Debian/dpkg-l");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("ubuntu.inc");
    include("misc_func.inc");
    
    if ( ! get_kb_item("Host/local_checks_enabled") ) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/Ubuntu/release");
    if ( isnull(release) ) audit(AUDIT_OS_NOT, "Ubuntu");
    release = chomp(release);
    if (! preg(pattern:"^(10\.04|11\.04|11\.10|12\.04)$", string:release)) audit(AUDIT_OS_NOT, "Ubuntu 10.04 / 11.04 / 11.10 / 12.04", "Ubuntu " + release);
    if ( ! get_kb_item("Host/Debian/dpkg-l") ) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Ubuntu", cpu);
    
    flag = 0;
    
    if (ubuntu_check(osver:"10.04", pkgname:"samba", pkgver:"2:3.4.7~dfsg-1ubuntu3.10")) flag++;
    if (ubuntu_check(osver:"11.04", pkgname:"samba", pkgver:"2:3.5.8~dfsg-1ubuntu2.5")) flag++;
    if (ubuntu_check(osver:"11.10", pkgname:"samba", pkgver:"2:3.5.11~dfsg-1ubuntu2.3")) flag++;
    if (ubuntu_check(osver:"12.04", pkgname:"samba", pkgver:"2:3.6.3-2ubuntu2.1")) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_WARNING,
        extra      : ubuntu_report_get()
      );
      exit(0);
    }
    else
    {
      tested = ubuntu_pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "samba");
    }
    
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2012-6981.NASL
    descriptionSecurity Release, fixes CVE-2012-2111 This fixes smbd and nmbd startup issues. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-17
    modified2012-05-03
    plugin id58971
    published2012-05-03
    reporterThis script is Copyright (C) 2012-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/58971
    titleFedora 17 : samba-3.6.5-85.fc17.1 (2012-6981)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Fedora Security Advisory 2012-6981.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(58971);
      script_version("1.12");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2012-2111");
      script_bugtraq_id(53307);
      script_xref(name:"FEDORA", value:"2012-6981");
    
      script_name(english:"Fedora 17 : samba-3.6.5-85.fc17.1 (2012-6981)");
      script_summary(english:"Checks rpm output for the updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Fedora host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Security Release, fixes CVE-2012-2111 This fixes smbd and nmbd startup
    issues.
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Fedora security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=751625"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=817551"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2012-May/079662.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?466fa10d"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected samba package.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:samba");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:17");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2012/04/30");
      script_set_attribute(attribute:"plugin_publication_date", value:"2012/05/03");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2012-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Fedora Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
    os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
    os_ver = os_ver[1];
    if (! ereg(pattern:"^17([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 17.x", "Fedora " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu);
    
    flag = 0;
    if (rpm_check(release:"FC17", reference:"samba-3.6.5-85.fc17.1")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "samba");
    }
    
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_0FA15E0892EC11E1A94A00215C6A37BB.NASL
    descriptionThe Samba project reports : Samba versions 3.4.x to 3.6.4 inclusive are affected by a vulnerability that allows arbitrary users to modify privileges on a file server. Security checks were incorrectly applied to the Local Security Authority (LSA) remote proceedure calls (RPC) CreateAccount, OpenAccount, AddAccountRights and RemoveAccountRights allowing any authenticated user to modify the privileges database. This is a serious error, as it means that authenticated users can connect to the LSA and grant themselves the
    last seen2020-06-01
    modified2020-06-02
    plugin id58937
    published2012-05-01
    reporterThis script is Copyright (C) 2012-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/58937
    titleFreeBSD : samba -- incorrect permission checks vulnerability (0fa15e08-92ec-11e1-a94a-00215c6a37bb)
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2012-0533.NASL
    descriptionUpdated samba3x and samba packages that fix one security issue are now available for Red Hat Enterprise Linux 5 and 6 respectively. The Red Hat Security Response Team has rated this update as having important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Samba is an open source implementation of the Server Message Block (SMB) or Common Internet File System (CIFS) protocol, which allows PC-compatible machines to share files, printers, and other information. A flaw was found in the way Samba handled certain Local Security Authority (LSA) Remote Procedure Calls (RPC). An authenticated user could use this flaw to issue an RPC call that would modify the privileges database on the Samba server, allowing them to steal the ownership of files and directories that are being shared by the Samba server, and create, delete, and modify user accounts, as well as other Samba server administration tasks. (CVE-2012-2111) Red Hat would like to thank the Samba project for reporting this issue. Upstream acknowledges Ivano Cristofolini as the original reporter. Users of Samba are advised to upgrade to these updated packages, which contain a backported patch to resolve this issue. After installing this update, the smb service will be restarted automatically.
    last seen2020-06-01
    modified2020-06-02
    plugin id58940
    published2012-05-01
    reporterThis script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/58940
    titleRHEL 5 / 6 : samba and samba3x (RHSA-2012:0533)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2012-7317.NASL
    descriptionBump Epoch to match Samba3 Epoch number for updates. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-17
    modified2012-05-08
    plugin id59024
    published2012-05-08
    reporterThis script is Copyright (C) 2012-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/59024
    titleFedora 17 : evolution-mapi-3.4.1-3.fc17 / openchange-1.0-6.fc17 / samba4-4.0.0-47alpha18.fc17 (2012-7317)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201206-22.NASL
    descriptionThe 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.
    last seen2020-06-01
    modified2020-06-02
    plugin id59675
    published2012-06-25
    reporterThis script is Copyright (C) 2012-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/59675
    titleGLSA-201206-22 : Samba: Multiple vulnerabilities
  • NASL familySolaris Local Security Checks
    NASL idSOLARIS11_SAMBA_20120807.NASL
    descriptionThe remote Solaris system is missing necessary patches to address security updates : - The (1) CreateAccount, (2) OpenAccount, (3) AddAccountRights, and (4) RemoveAccountRights LSA RPC procedures in smbd in Samba 3.4.x before 3.4.17, 3.5.x before 3.5.15, and 3.6.x before 3.6.5 do not properly restrict modifications to the privileges database, which allows remote authenticated users to obtain the
    last seen2020-06-01
    modified2020-06-02
    plugin id80761
    published2015-01-19
    reporterThis script is Copyright (C) 2015-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/80761
    titleOracle Solaris Third-Party Patch Update : samba (cve_2012_2111_access_controls)
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2012-0533.NASL
    descriptionUpdated samba3x and samba packages that fix one security issue are now available for Red Hat Enterprise Linux 5 and 6 respectively. The Red Hat Security Response Team has rated this update as having important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Samba is an open source implementation of the Server Message Block (SMB) or Common Internet File System (CIFS) protocol, which allows PC-compatible machines to share files, printers, and other information. A flaw was found in the way Samba handled certain Local Security Authority (LSA) Remote Procedure Calls (RPC). An authenticated user could use this flaw to issue an RPC call that would modify the privileges database on the Samba server, allowing them to steal the ownership of files and directories that are being shared by the Samba server, and create, delete, and modify user accounts, as well as other Samba server administration tasks. (CVE-2012-2111) Red Hat would like to thank the Samba project for reporting this issue. Upstream acknowledges Ivano Cristofolini as the original reporter. Users of Samba are advised to upgrade to these updated packages, which contain a backported patch to resolve this issue. After installing this update, the smb service will be restarted automatically.
    last seen2020-06-01
    modified2020-06-02
    plugin id67088
    published2013-06-29
    reporterThis script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/67088
    titleCentOS 5 / 6 : samba / samba3x (CESA-2012:0533)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-2463.NASL
    descriptionIvano Cristofolini discovered that insufficient security checks in Samba
    last seen2020-03-17
    modified2012-05-03
    plugin id58969
    published2012-05-03
    reporterThis script is Copyright (C) 2012-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/58969
    titleDebian DSA-2463-1 : samba - missing permission checks
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2012-7006.NASL
    descriptionSecurity Release, fixes CVE-2012-2111 Fix dependency on (private) libkrb5 symbol. This fixes smbd and nmbd startup issues. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-17
    modified2012-05-04
    plugin id58983
    published2012-05-04
    reporterThis script is Copyright (C) 2012-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/58983
    titleFedora 16 : samba-3.6.5-85.fc16 (2012-7006)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_LDAPSMB-120424.NASL
    descriptionThis update of Samba fixes one security issue and several bugs. The security fix is : - Ensure that users cannot hand out their own privileges to everyone, only administrators are allowed to do that. (CVE-2012-2111) The non-security bug fixes merged from upstream Samba are : - Fix default name resolve order. (docs-xml, bso#7564). - Fix a segfault in vfs_aio_fork. (s3-aio-fork, bso#8836). - Remove whitespace in example samba.ldif. (docs, bso#8789) - Move print_backend_init() behind init_system_info(). (s3-smbd, bso#8845) - Prepend
    last seen2020-06-05
    modified2012-05-01
    plugin id58943
    published2012-05-01
    reporterThis script is Copyright (C) 2012-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/58943
    titleSuSE 11.2 Security Update : Samba (SAT Patch Number 6211)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2012-6999.NASL
    descriptionSecurity Release, fixes CVE-2012-2111 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-17
    modified2012-05-04
    plugin id58982
    published2012-05-04
    reporterThis script is Copyright (C) 2012-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/58982
    titleFedora 15 : samba-3.5.15-74.fc15.1 (2012-6999)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_CIFS-MOUNT-120424.NASL
    descriptionThis update of Samba includes the following fixes for two security issues : - Ensure that users cannot hand out their own privileges to everyone, only administrators are allowed to do that. (CVE-2012-2111) - mount.cifs no longer allows unprivileged users to mount onto dirs that are not accessible to them. (CVE-2012-1586)
    last seen2020-06-05
    modified2012-05-01
    plugin id58941
    published2012-05-01
    reporterThis script is Copyright (C) 2012-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/58941
    titleSuSE 11.1 Security Update : Samba (SAT Patch Number 6210)
  • NASL familyMisc.
    NASL idSAMBA_3_6_5.NASL
    descriptionAccording to its banner, the version of Samba 3.x running on the remote host is earlier than 3.4.17 / 3.5.15 / 3.6.5, and as such, is potentially affected by a security bypass vulnerability. Authenticated users are able to modify ownership of files and directories that the user does not own. Improper security checking related to the Local Security Authority (LSA) remote procedure calls (RPC)
    last seen2020-06-01
    modified2020-06-02
    plugin id58949
    published2012-05-01
    reporterThis script is Copyright (C) 2012-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/58949
    titleSamba 3.x < 3.4.17 / 3.5.15 / 3.6.5 Security Bypass
  • NASL familyOracle Linux Local Security Checks
    NASL idORACLELINUX_ELSA-2012-0533.NASL
    descriptionFrom Red Hat Security Advisory 2012:0533 : Updated samba3x and samba packages that fix one security issue are now available for Red Hat Enterprise Linux 5 and 6 respectively. The Red Hat Security Response Team has rated this update as having important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Samba is an open source implementation of the Server Message Block (SMB) or Common Internet File System (CIFS) protocol, which allows PC-compatible machines to share files, printers, and other information. A flaw was found in the way Samba handled certain Local Security Authority (LSA) Remote Procedure Calls (RPC). An authenticated user could use this flaw to issue an RPC call that would modify the privileges database on the Samba server, allowing them to steal the ownership of files and directories that are being shared by the Samba server, and create, delete, and modify user accounts, as well as other Samba server administration tasks. (CVE-2012-2111) Red Hat would like to thank the Samba project for reporting this issue. Upstream acknowledges Ivano Cristofolini as the original reporter. Users of Samba are advised to upgrade to these updated packages, which contain a backported patch to resolve this issue. After installing this update, the smb service will be restarted automatically.
    last seen2020-06-01
    modified2020-06-02
    plugin id68521
    published2013-07-12
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/68521
    titleOracle Linux 5 / 6 : samba / samba3x (ELSA-2012-0533)
  • NASL familyMandriva Local Security Checks
    NASL idMANDRIVA_MDVSA-2012-067.NASL
    descriptionA vulnerability has been found and corrected in samba : Security checks were incorrectly applied to the Local Security Authority (LSA) remote proceedure calls (RPC) CreateAccount, OpenAccount, AddAccountRights and RemoveAccountRights allowing any authenticated user to modify the privileges database (CVE-2012-2111). The updated packages have been patched to correct this issue.
    last seen2020-06-01
    modified2020-06-02
    plugin id58939
    published2012-05-01
    reporterThis script is Copyright (C) 2012-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/58939
    titleMandriva Linux Security Advisory : samba (MDVSA-2012:067)

Redhat

advisories
bugzilla
id813569
titleCVE-2012-2111 samba: Incorrect permission checks when granting/removing privileges
oval
OR
  • commentRed Hat Enterprise Linux must be installed
    ovaloval:com.redhat.rhba:tst:20070304026
  • AND
    • commentRed Hat Enterprise Linux 5 is installed
      ovaloval:com.redhat.rhba:tst:20070331005
    • OR
      • AND
        • commentsamba3x-swat is earlier than 0:3.5.10-0.109.el5_8
          ovaloval:com.redhat.rhsa:tst:20120533001
        • commentsamba3x-swat is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhba:tst:20110054008
      • AND
        • commentsamba3x-winbind is earlier than 0:3.5.10-0.109.el5_8
          ovaloval:com.redhat.rhsa:tst:20120533003
        • commentsamba3x-winbind is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhba:tst:20110054014
      • AND
        • commentsamba3x is earlier than 0:3.5.10-0.109.el5_8
          ovaloval:com.redhat.rhsa:tst:20120533005
        • commentsamba3x is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhba:tst:20110054004
      • AND
        • commentsamba3x-domainjoin-gui is earlier than 0:3.5.10-0.109.el5_8
          ovaloval:com.redhat.rhsa:tst:20120533007
        • commentsamba3x-domainjoin-gui is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhba:tst:20110054010
      • AND
        • commentsamba3x-doc is earlier than 0:3.5.10-0.109.el5_8
          ovaloval:com.redhat.rhsa:tst:20120533009
        • commentsamba3x-doc is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhba:tst:20110054012
      • AND
        • commentsamba3x-client is earlier than 0:3.5.10-0.109.el5_8
          ovaloval:com.redhat.rhsa:tst:20120533011
        • commentsamba3x-client is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhba:tst:20110054006
      • AND
        • commentsamba3x-common is earlier than 0:3.5.10-0.109.el5_8
          ovaloval:com.redhat.rhsa:tst:20120533013
        • commentsamba3x-common is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhba:tst:20110054002
      • AND
        • commentsamba3x-winbind-devel is earlier than 0:3.5.10-0.109.el5_8
          ovaloval:com.redhat.rhsa:tst:20120533015
        • commentsamba3x-winbind-devel is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhba:tst:20110054016
  • AND
    • commentRed Hat Enterprise Linux 6 is installed
      ovaloval:com.redhat.rhba:tst:20111656003
    • OR
      • AND
        • commentsamba-doc is earlier than 0:3.5.10-116.el6_2
          ovaloval:com.redhat.rhsa:tst:20120533018
        • commentsamba-doc is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20100860008
      • AND
        • commentsamba-winbind-krb5-locator is earlier than 0:3.5.10-116.el6_2
          ovaloval:com.redhat.rhsa:tst:20120533020
        • commentsamba-winbind-krb5-locator is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhba:tst:20152258004
      • AND
        • commentsamba-winbind-devel is earlier than 0:3.5.10-116.el6_2
          ovaloval:com.redhat.rhsa:tst:20120533022
        • commentsamba-winbind-devel is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20100860014
      • AND
        • commentsamba-swat is earlier than 0:3.5.10-116.el6_2
          ovaloval:com.redhat.rhsa:tst:20120533024
        • commentsamba-swat is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20100860010
      • AND
        • commentlibsmbclient-devel is earlier than 0:3.5.10-116.el6_2
          ovaloval:com.redhat.rhsa:tst:20120533026
        • commentlibsmbclient-devel is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhba:tst:20152258034
      • AND
        • commentsamba-domainjoin-gui is earlier than 0:3.5.10-116.el6_2
          ovaloval:com.redhat.rhsa:tst:20120533028
        • commentsamba-domainjoin-gui is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20100860002
      • AND
        • commentsamba-client is earlier than 0:3.5.10-116.el6_2
          ovaloval:com.redhat.rhsa:tst:20120533030
        • commentsamba-client is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhba:tst:20152258014
      • AND
        • commentsamba-common is earlier than 0:3.5.10-116.el6_2
          ovaloval:com.redhat.rhsa:tst:20120533032
        • commentsamba-common is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhba:tst:20152258006
      • AND
        • commentsamba is earlier than 0:3.5.10-116.el6_2
          ovaloval:com.redhat.rhsa:tst:20120533034
        • commentsamba is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhba:tst:20152258022
      • AND
        • commentsamba-winbind-clients is earlier than 0:3.5.10-116.el6_2
          ovaloval:com.redhat.rhsa:tst:20120533036
        • commentsamba-winbind-clients is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhba:tst:20152258018
      • AND
        • commentsamba-winbind is earlier than 0:3.5.10-116.el6_2
          ovaloval:com.redhat.rhsa:tst:20120533038
        • commentsamba-winbind is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhba:tst:20152258010
      • AND
        • commentlibsmbclient is earlier than 0:3.5.10-116.el6_2
          ovaloval:com.redhat.rhsa:tst:20120533040
        • commentlibsmbclient is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhba:tst:20152258012
rhsa
idRHSA-2012:0533
released2012-04-30
severityImportant
titleRHSA-2012:0533: samba and samba3x security update (Important)
rpms
  • libsmbclient-0:3.5.10-116.el6_2
  • libsmbclient-devel-0:3.5.10-116.el6_2
  • samba-0:3.5.10-116.el6_2
  • samba-client-0:3.5.10-116.el6_2
  • samba-common-0:3.5.10-116.el6_2
  • samba-debuginfo-0:3.5.10-116.el6_2
  • samba-doc-0:3.5.10-116.el6_2
  • samba-domainjoin-gui-0:3.5.10-116.el6_2
  • samba-swat-0:3.5.10-116.el6_2
  • samba-winbind-0:3.5.10-116.el6_2
  • samba-winbind-clients-0:3.5.10-116.el6_2
  • samba-winbind-devel-0:3.5.10-116.el6_2
  • samba-winbind-krb5-locator-0:3.5.10-116.el6_2
  • samba3x-0:3.5.10-0.109.el5_8
  • samba3x-client-0:3.5.10-0.109.el5_8
  • samba3x-common-0:3.5.10-0.109.el5_8
  • samba3x-debuginfo-0:3.5.10-0.109.el5_8
  • samba3x-doc-0:3.5.10-0.109.el5_8
  • samba3x-domainjoin-gui-0:3.5.10-0.109.el5_8
  • samba3x-swat-0:3.5.10-0.109.el5_8
  • samba3x-winbind-0:3.5.10-0.109.el5_8
  • samba3x-winbind-devel-0:3.5.10-0.109.el5_8