Vulnerabilities > CVE-2012-2697 - Improper Input Validation vulnerability in Redhat Enterprise Linux 5

047910
CVSS 4.9 - MEDIUM
Attack vector
LOCAL
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
COMPLETE
local
low complexity
redhat
CWE-20
nessus

Summary

Unspecified vulnerability in autofs, as used in Red Hat Enterprise Linux (RHEL) 5, allows local users to cause a denial of service (autofs crash and delayed mounts) or prevent "mount expiration" via unspecified vectors related to "using an LDAP-based automount map."

Vulnerable Configurations

Part Description Count
OS
Redhat
1

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Server Side Include (SSI) Injection
    An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
  • Cross Zone Scripting
    An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.

Nessus

  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20130108_AUTOFS_ON_SL5_X.NASL
    descriptionA bug fix included in SLBA-2012:0264 introduced a denial of service flaw in autofs. When using autofs with LDAP, a local user could use this flaw to crash autofs, preventing future mount requests from being processed until the autofs service was restarted. Note: This flaw did not impact existing mounts (except for preventing mount expiration). (CVE-2012-2697) This update also fixes the following bugs : - The autofs init script sometimes timed out waiting for the automount daemon to exit and returned a shutdown failure if the daemon failed to exit in time. To resolve this problem, the amount of time that the init script waits for the daemon has been increased to allow for cases where servers are slow to respond or there are many active mounts. - Due to an omission when backporting a change, autofs attempted to download the entire LDAP map at startup. This mistake has now been corrected. - A function to check the validity of a mount location was meant to check only for a small subset of map location errors. A recent modification in error reporting inverted a logic test in this validating function. Consequently, the scope of the test was widened, which caused the automount daemon to report false positive failures. With this update, the faulty logic test has been corrected and false positive failures no longer occur. - When there were many attempts to access invalid or non-existent keys, the automount daemon used excessive CPU resources. As a consequence, systems sometimes became unresponsive. The code has been improved so that automount checks for invalid keys earlier in the process which has eliminated a significant amount of the processing overhead. - The auto.master(5) man page did not document the
    last seen2020-03-18
    modified2013-01-17
    plugin id63591
    published2013-01-17
    reporterThis script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/63591
    titleScientific Linux Security Update : autofs on SL5.x i386/x86_64 (20130108)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text is (C) Scientific Linux.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(63591);
      script_version("1.5");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2012-2697");
    
      script_name(english:"Scientific Linux Security Update : autofs on SL5.x i386/x86_64 (20130108)");
      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:
    "A bug fix included in SLBA-2012:0264 introduced a denial of service
    flaw in autofs. When using autofs with LDAP, a local user could use
    this flaw to crash autofs, preventing future mount requests from being
    processed until the autofs service was restarted. Note: This flaw did
    not impact existing mounts (except for preventing mount expiration).
    (CVE-2012-2697)
    
    This update also fixes the following bugs :
    
      - The autofs init script sometimes timed out waiting for
        the automount daemon to exit and returned a shutdown
        failure if the daemon failed to exit in time. To resolve
        this problem, the amount of time that the init script
        waits for the daemon has been increased to allow for
        cases where servers are slow to respond or there are
        many active mounts.
    
      - Due to an omission when backporting a change, autofs
        attempted to download the entire LDAP map at startup.
        This mistake has now been corrected.
    
      - A function to check the validity of a mount location was
        meant to check only for a small subset of map location
        errors. A recent modification in error reporting
        inverted a logic test in this validating function.
        Consequently, the scope of the test was widened, which
        caused the automount daemon to report false positive
        failures. With this update, the faulty logic test has
        been corrected and false positive failures no longer
        occur.
    
      - When there were many attempts to access invalid or
        non-existent keys, the automount daemon used excessive
        CPU resources. As a consequence, systems sometimes
        became unresponsive. The code has been improved so that
        automount checks for invalid keys earlier in the process
        which has eliminated a significant amount of the
        processing overhead.
    
      - The auto.master(5) man page did not document the '-t,
        --timeout' option in the FORMAT options section. This
        update adds this information to the man page.
    
    This update also adds the following enhancement :
    
      - Previously, it was not possible to configure separate
        timeout values for individual direct map entries in the
        autofs master map. This update adds this functionality."
      );
      # https://listserv.fnal.gov/scripts/wa.exe?A2=ind1301&L=scientific-linux-errata&T=0&P=2563
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?c49d8f58"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected autofs and / or autofs-debuginfo packages."
      );
      script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:N/I:N/A:C");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:autofs");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:autofs-debuginfo");
      script_set_attribute(attribute:"cpe", value:"x-cpe:/o:fermilab:scientific_linux");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/02/24");
      script_set_attribute(attribute:"patch_publication_date", value:"2013/01/08");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/01/17");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-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:"^5([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Scientific Linux 5.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:"autofs-5.0.1-0.rc2.177.el5")) flag++;
    if (rpm_check(release:"SL5", reference:"autofs-debuginfo-5.0.1-0.rc2.177.el5")) 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, "autofs / autofs-debuginfo");
    }
    
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2013-0132.NASL
    descriptionAn updated autofs package that fixes one security issue, several bugs, and adds one enhancement is now available for Red Hat Enterprise Linux 5. The Red Hat Security Response Team has rated this update as having low 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. The autofs utility controls the operation of the automount daemon. The automount daemon automatically mounts and unmounts file systems. A bug fix included in RHBA-2012:0264 introduced a denial of service flaw in autofs. When using autofs with LDAP, a local user could use this flaw to crash autofs, preventing future mount requests from being processed until the autofs service was restarted. Note: This flaw did not impact existing mounts (except for preventing mount expiration). (CVE-2012-2697) Red Hat would like to thank Ray Rocker for reporting this issue. This update also fixes the following bugs : * The autofs init script sometimes timed out waiting for the automount daemon to exit and returned a shutdown failure if the daemon failed to exit in time. To resolve this problem, the amount of time that the init script waits for the daemon has been increased to allow for cases where servers are slow to respond or there are many active mounts. (BZ#585058) * Due to an omission when backporting a change, autofs attempted to download the entire LDAP map at startup. This mistake has now been corrected. (BZ#767428) * A function to check the validity of a mount location was meant to check only for a small subset of map location errors. A recent modification in error reporting inverted a logic test in this validating function. Consequently, the scope of the test was widened, which caused the automount daemon to report false positive failures. With this update, the faulty logic test has been corrected and false positive failures no longer occur. (BZ#798448) * When there were many attempts to access invalid or non-existent keys, the automount daemon used excessive CPU resources. As a consequence, systems sometimes became unresponsive. The code has been improved so that automount checks for invalid keys earlier in the process which has eliminated a significant amount of the processing overhead. (BZ#847101) * The auto.master(5) man page did not document the
    last seen2020-06-01
    modified2020-06-02
    plugin id63577
    published2013-01-17
    reporterThis script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/63577
    titleCentOS 5 : autofs (CESA-2013:0132)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Red Hat Security Advisory RHSA-2013:0132 and 
    # CentOS Errata and Security Advisory 2013:0132 respectively.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(63577);
      script_version("1.11");
      script_cvs_date("Date: 2020/01/06");
    
      script_cve_id("CVE-2012-2697");
      script_bugtraq_id(57183);
      script_xref(name:"RHSA", value:"2013:0132");
    
      script_name(english:"CentOS 5 : autofs (CESA-2013:0132)");
      script_summary(english:"Checks rpm output for the updated package");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote CentOS host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "An updated autofs package that fixes one security issue, several bugs,
    and adds one enhancement is now available for Red Hat Enterprise Linux
    5.
    
    The Red Hat Security Response Team has rated this update as having low
    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.
    
    The autofs utility controls the operation of the automount daemon. The
    automount daemon automatically mounts and unmounts file systems.
    
    A bug fix included in RHBA-2012:0264 introduced a denial of service
    flaw in autofs. When using autofs with LDAP, a local user could use
    this flaw to crash autofs, preventing future mount requests from being
    processed until the autofs service was restarted. Note: This flaw did
    not impact existing mounts (except for preventing mount expiration).
    (CVE-2012-2697)
    
    Red Hat would like to thank Ray Rocker for reporting this issue.
    
    This update also fixes the following bugs :
    
    * The autofs init script sometimes timed out waiting for the automount
    daemon to exit and returned a shutdown failure if the daemon failed to
    exit in time. To resolve this problem, the amount of time that the
    init script waits for the daemon has been increased to allow for cases
    where servers are slow to respond or there are many active mounts.
    (BZ#585058)
    
    * Due to an omission when backporting a change, autofs attempted to
    download the entire LDAP map at startup. This mistake has now been
    corrected. (BZ#767428)
    
    * A function to check the validity of a mount location was meant to
    check only for a small subset of map location errors. A recent
    modification in error reporting inverted a logic test in this
    validating function. Consequently, the scope of the test was widened,
    which caused the automount daemon to report false positive failures.
    With this update, the faulty logic test has been corrected and false
    positive failures no longer occur. (BZ#798448)
    
    * When there were many attempts to access invalid or non-existent
    keys, the automount daemon used excessive CPU resources. As a
    consequence, systems sometimes became unresponsive. The code has been
    improved so that automount checks for invalid keys earlier in the
    process which has eliminated a significant amount of the processing
    overhead. (BZ#847101)
    
    * The auto.master(5) man page did not document the '-t, --timeout'
    option in the FORMAT options section. This update adds this
    information to the man page. (BZ#859890)
    
    This update also adds the following enhancement :
    
    * Previously, it was not possible to configure separate timeout values
    for individual direct map entries in the autofs master map. This
    update adds this functionality. (BZ#690404)
    
    All users of autofs are advised to upgrade to this updated package,
    which contains backported patches to correct these issues and add this
    enhancement."
      );
      # https://lists.centos.org/pipermail/centos-announce/2013-January/019169.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?296f4b5f"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2013-January/000318.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?021a067d"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected autofs package."
      );
      script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:N/I:N/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_attribute(attribute:"cvss_score_source", value:"CVE-2012-2697");
      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:centos:centos:autofs");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:centos:centos:5");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/02/24");
      script_set_attribute(attribute:"patch_publication_date", value:"2013/01/09");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/01/17");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"CentOS Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/CentOS/release", "Host/CentOS/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/CentOS/release");
    if (isnull(release) || "CentOS" >!< release) audit(AUDIT_OS_NOT, "CentOS");
    os_ver = pregmatch(pattern: "CentOS(?: Linux)? release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "CentOS");
    os_ver = os_ver[1];
    if (! preg(pattern:"^5([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "CentOS 5.x", "CentOS " + os_ver);
    
    if (!get_kb_item("Host/CentOS/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, "CentOS", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"CentOS-5", reference:"autofs-5.0.1-0.rc2.177.el5")) flag++;
    
    
    if (flag)
    {
      cr_plugin_caveat = '\n' +
        'NOTE: The security advisory associated with this vulnerability has a\n' +
        'fixed package version that may only be available in the continuous\n' +
        'release (CR) repository for CentOS, until it is present in the next\n' +
        'point release of CentOS.\n\n' +
    
        'If an equal or higher package level does not exist in the baseline\n' +
        'repository for your major version of CentOS, then updates from the CR\n' +
        'repository will need to be applied in order to address the\n' +
        'vulnerability.\n';
      security_report_v4(
        port       : 0,
        severity   : SECURITY_WARNING,
        extra      : rpm_report_get() + cr_plugin_caveat
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "autofs");
    }
    
  • NASL familyOracle Linux Local Security Checks
    NASL idORACLELINUX_ELSA-2013-0132.NASL
    descriptionFrom Red Hat Security Advisory 2013:0132 : An updated autofs package that fixes one security issue, several bugs, and adds one enhancement is now available for Red Hat Enterprise Linux 5. The Red Hat Security Response Team has rated this update as having low 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. The autofs utility controls the operation of the automount daemon. The automount daemon automatically mounts and unmounts file systems. A bug fix included in RHBA-2012:0264 introduced a denial of service flaw in autofs. When using autofs with LDAP, a local user could use this flaw to crash autofs, preventing future mount requests from being processed until the autofs service was restarted. Note: This flaw did not impact existing mounts (except for preventing mount expiration). (CVE-2012-2697) Red Hat would like to thank Ray Rocker for reporting this issue. This update also fixes the following bugs : * The autofs init script sometimes timed out waiting for the automount daemon to exit and returned a shutdown failure if the daemon failed to exit in time. To resolve this problem, the amount of time that the init script waits for the daemon has been increased to allow for cases where servers are slow to respond or there are many active mounts. (BZ#585058) * Due to an omission when backporting a change, autofs attempted to download the entire LDAP map at startup. This mistake has now been corrected. (BZ#767428) * A function to check the validity of a mount location was meant to check only for a small subset of map location errors. A recent modification in error reporting inverted a logic test in this validating function. Consequently, the scope of the test was widened, which caused the automount daemon to report false positive failures. With this update, the faulty logic test has been corrected and false positive failures no longer occur. (BZ#798448) * When there were many attempts to access invalid or non-existent keys, the automount daemon used excessive CPU resources. As a consequence, systems sometimes became unresponsive. The code has been improved so that automount checks for invalid keys earlier in the process which has eliminated a significant amount of the processing overhead. (BZ#847101) * The auto.master(5) man page did not document the
    last seen2020-06-01
    modified2020-06-02
    plugin id68703
    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/68703
    titleOracle Linux 5 : autofs (ELSA-2013-0132)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Red Hat Security Advisory RHSA-2013:0132 and 
    # Oracle Linux Security Advisory ELSA-2013-0132 respectively.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(68703);
      script_version("1.8");
      script_cvs_date("Date: 2019/09/30 10:58:18");
    
      script_cve_id("CVE-2012-2697");
      script_bugtraq_id(57183);
      script_xref(name:"RHSA", value:"2013:0132");
    
      script_name(english:"Oracle Linux 5 : autofs (ELSA-2013-0132)");
      script_summary(english:"Checks rpm output for the updated package");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Oracle Linux host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "From Red Hat Security Advisory 2013:0132 :
    
    An updated autofs package that fixes one security issue, several bugs,
    and adds one enhancement is now available for Red Hat Enterprise Linux
    5.
    
    The Red Hat Security Response Team has rated this update as having low
    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.
    
    The autofs utility controls the operation of the automount daemon. The
    automount daemon automatically mounts and unmounts file systems.
    
    A bug fix included in RHBA-2012:0264 introduced a denial of service
    flaw in autofs. When using autofs with LDAP, a local user could use
    this flaw to crash autofs, preventing future mount requests from being
    processed until the autofs service was restarted. Note: This flaw did
    not impact existing mounts (except for preventing mount expiration).
    (CVE-2012-2697)
    
    Red Hat would like to thank Ray Rocker for reporting this issue.
    
    This update also fixes the following bugs :
    
    * The autofs init script sometimes timed out waiting for the automount
    daemon to exit and returned a shutdown failure if the daemon failed to
    exit in time. To resolve this problem, the amount of time that the
    init script waits for the daemon has been increased to allow for cases
    where servers are slow to respond or there are many active mounts.
    (BZ#585058)
    
    * Due to an omission when backporting a change, autofs attempted to
    download the entire LDAP map at startup. This mistake has now been
    corrected. (BZ#767428)
    
    * A function to check the validity of a mount location was meant to
    check only for a small subset of map location errors. A recent
    modification in error reporting inverted a logic test in this
    validating function. Consequently, the scope of the test was widened,
    which caused the automount daemon to report false positive failures.
    With this update, the faulty logic test has been corrected and false
    positive failures no longer occur. (BZ#798448)
    
    * When there were many attempts to access invalid or non-existent
    keys, the automount daemon used excessive CPU resources. As a
    consequence, systems sometimes became unresponsive. The code has been
    improved so that automount checks for invalid keys earlier in the
    process which has eliminated a significant amount of the processing
    overhead. (BZ#847101)
    
    * The auto.master(5) man page did not document the '-t, --timeout'
    option in the FORMAT options section. This update adds this
    information to the man page. (BZ#859890)
    
    This update also adds the following enhancement :
    
    * Previously, it was not possible to configure separate timeout values
    for individual direct map entries in the autofs master map. This
    update adds this functionality. (BZ#690404)
    
    All users of autofs are advised to upgrade to this updated package,
    which contains backported patches to correct these issues and add this
    enhancement."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://oss.oracle.com/pipermail/el-errata/2013-January/003204.html"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected autofs package."
      );
      script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:N/I:N/A:C");
      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:oracle:linux:autofs");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:oracle:linux:5");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/02/24");
      script_set_attribute(attribute:"patch_publication_date", value:"2013/01/12");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/07/12");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Oracle Linux Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/OracleLinux", "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);
    if (!get_kb_item("Host/OracleLinux")) audit(AUDIT_OS_NOT, "Oracle Linux");
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || !pregmatch(pattern: "Oracle (?:Linux Server|Enterprise Linux)", string:release)) audit(AUDIT_OS_NOT, "Oracle Linux");
    os_ver = pregmatch(pattern: "Oracle (?:Linux Server|Enterprise Linux) .*release ([0-9]+(\.[0-9]+)?)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Oracle Linux");
    os_ver = os_ver[1];
    if (! preg(pattern:"^5([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Oracle Linux 5", "Oracle 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 ("x86_64" >!< cpu && "ia64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Oracle Linux", cpu);
    
    flag = 0;
    if (rpm_check(release:"EL5", reference:"autofs-5.0.1-0.rc2.177.0.1.el5")) 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, "autofs");
    }
    
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2013-0132.NASL
    descriptionAn updated autofs package that fixes one security issue, several bugs, and adds one enhancement is now available for Red Hat Enterprise Linux 5. The Red Hat Security Response Team has rated this update as having low 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. The autofs utility controls the operation of the automount daemon. The automount daemon automatically mounts and unmounts file systems. A bug fix included in RHBA-2012:0264 introduced a denial of service flaw in autofs. When using autofs with LDAP, a local user could use this flaw to crash autofs, preventing future mount requests from being processed until the autofs service was restarted. Note: This flaw did not impact existing mounts (except for preventing mount expiration). (CVE-2012-2697) Red Hat would like to thank Ray Rocker for reporting this issue. This update also fixes the following bugs : * The autofs init script sometimes timed out waiting for the automount daemon to exit and returned a shutdown failure if the daemon failed to exit in time. To resolve this problem, the amount of time that the init script waits for the daemon has been increased to allow for cases where servers are slow to respond or there are many active mounts. (BZ#585058) * Due to an omission when backporting a change, autofs attempted to download the entire LDAP map at startup. This mistake has now been corrected. (BZ#767428) * A function to check the validity of a mount location was meant to check only for a small subset of map location errors. A recent modification in error reporting inverted a logic test in this validating function. Consequently, the scope of the test was widened, which caused the automount daemon to report false positive failures. With this update, the faulty logic test has been corrected and false positive failures no longer occur. (BZ#798448) * When there were many attempts to access invalid or non-existent keys, the automount daemon used excessive CPU resources. As a consequence, systems sometimes became unresponsive. The code has been improved so that automount checks for invalid keys earlier in the process which has eliminated a significant amount of the processing overhead. (BZ#847101) * The auto.master(5) man page did not document the
    last seen2020-06-01
    modified2020-06-02
    plugin id63413
    published2013-01-08
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/63413
    titleRHEL 5 : autofs (RHSA-2013:0132)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Red Hat Security Advisory RHSA-2013:0132. The text 
    # itself is copyright (C) Red Hat, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(63413);
      script_version ("1.16");
      script_cvs_date("Date: 2019/10/24 15:35:36");
    
      script_cve_id("CVE-2012-2697");
      script_xref(name:"RHSA", value:"2013:0132");
    
      script_name(english:"RHEL 5 : autofs (RHSA-2013:0132)");
      script_summary(english:"Checks the rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Red Hat host is missing one or more security updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "An updated autofs package that fixes one security issue, several bugs,
    and adds one enhancement is now available for Red Hat Enterprise Linux
    5.
    
    The Red Hat Security Response Team has rated this update as having low
    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.
    
    The autofs utility controls the operation of the automount daemon. The
    automount daemon automatically mounts and unmounts file systems.
    
    A bug fix included in RHBA-2012:0264 introduced a denial of service
    flaw in autofs. When using autofs with LDAP, a local user could use
    this flaw to crash autofs, preventing future mount requests from being
    processed until the autofs service was restarted. Note: This flaw did
    not impact existing mounts (except for preventing mount expiration).
    (CVE-2012-2697)
    
    Red Hat would like to thank Ray Rocker for reporting this issue.
    
    This update also fixes the following bugs :
    
    * The autofs init script sometimes timed out waiting for the automount
    daemon to exit and returned a shutdown failure if the daemon failed to
    exit in time. To resolve this problem, the amount of time that the
    init script waits for the daemon has been increased to allow for cases
    where servers are slow to respond or there are many active mounts.
    (BZ#585058)
    
    * Due to an omission when backporting a change, autofs attempted to
    download the entire LDAP map at startup. This mistake has now been
    corrected. (BZ#767428)
    
    * A function to check the validity of a mount location was meant to
    check only for a small subset of map location errors. A recent
    modification in error reporting inverted a logic test in this
    validating function. Consequently, the scope of the test was widened,
    which caused the automount daemon to report false positive failures.
    With this update, the faulty logic test has been corrected and false
    positive failures no longer occur. (BZ#798448)
    
    * When there were many attempts to access invalid or non-existent
    keys, the automount daemon used excessive CPU resources. As a
    consequence, systems sometimes became unresponsive. The code has been
    improved so that automount checks for invalid keys earlier in the
    process which has eliminated a significant amount of the processing
    overhead. (BZ#847101)
    
    * The auto.master(5) man page did not document the '-t, --timeout'
    option in the FORMAT options section. This update adds this
    information to the man page. (BZ#859890)
    
    This update also adds the following enhancement :
    
    * Previously, it was not possible to configure separate timeout values
    for individual direct map entries in the autofs master map. This
    update adds this functionality. (BZ#690404)
    
    All users of autofs are advised to upgrade to this updated package,
    which contains backported patches to correct these issues and add this
    enhancement."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://rhn.redhat.com/errata/RHBA-2012-0264.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/errata/RHSA-2013:0132"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2012-2697"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected autofs and / or autofs-debuginfo packages."
      );
      script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:N/I:N/A:C");
      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:redhat:enterprise_linux:autofs");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:autofs-debuginfo");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:5");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/01/08");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/01/08");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Red Hat Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list", "Host/cpu");
    
      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) || "Red Hat" >!< release) audit(AUDIT_OS_NOT, "Red Hat");
    os_ver = eregmatch(pattern: "Red Hat Enterprise Linux.*release ([0-9]+(\.[0-9]+)?)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Red Hat");
    os_ver = os_ver[1];
    if (! ereg(pattern:"^5([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Red Hat 5.x", "Red Hat " + 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$" && "s390" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Red Hat", cpu);
    
    yum_updateinfo = get_kb_item("Host/RedHat/yum-updateinfo");
    if (!empty_or_null(yum_updateinfo)) 
    {
      rhsa = "RHSA-2013:0132";
      yum_report = redhat_generate_yum_updateinfo_report(rhsa:rhsa);
      if (!empty_or_null(yum_report))
      {
        security_report_v4(
          port       : 0,
          severity   : SECURITY_WARNING,
          extra      : yum_report 
        );
        exit(0);
      }
      else
      {
        audit_message = "affected by Red Hat security advisory " + rhsa;
        audit(AUDIT_OS_NOT, audit_message);
      }
    }
    else
    {
      flag = 0;
      if (rpm_check(release:"RHEL5", cpu:"i386", reference:"autofs-5.0.1-0.rc2.177.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"s390x", reference:"autofs-5.0.1-0.rc2.177.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"x86_64", reference:"autofs-5.0.1-0.rc2.177.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"i386", reference:"autofs-debuginfo-5.0.1-0.rc2.177.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"s390x", reference:"autofs-debuginfo-5.0.1-0.rc2.177.el5")) flag++;
      if (rpm_check(release:"RHEL5", cpu:"x86_64", reference:"autofs-debuginfo-5.0.1-0.rc2.177.el5")) flag++;
    
      if (flag)
      {
        security_report_v4(
          port       : 0,
          severity   : SECURITY_WARNING,
          extra      : rpm_report_get() + redhat_report_package_caveat()
        );
        exit(0);
      }
      else
      {
        tested = pkg_tests_get();
        if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
        else audit(AUDIT_PACKAGE_NOT_INSTALLED, "autofs / autofs-debuginfo");
      }
    }
    

Redhat

advisories
bugzilla
id831772
titleCVE-2012-2697 autofs: denial of service when using an LDAP-based automount map
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
    • commentautofs is earlier than 1:5.0.1-0.rc2.177.el5
      ovaloval:com.redhat.rhsa:tst:20130132001
    • commentautofs is signed with Red Hat redhatrelease key
      ovaloval:com.redhat.rhsa:tst:20071128002
rhsa
idRHSA-2013:0132
released2013-01-08
severityLow
titleRHSA-2013:0132: autofs security, bug fix, and enhancement update (Low)
rpms
  • autofs-1:5.0.1-0.rc2.177.el5
  • autofs-debuginfo-1:5.0.1-0.rc2.177.el5