Vulnerabilities > CVE-2011-0996 - Improper Input Validation vulnerability in ROY Marples Dhcpcd

047910
CVSS 6.8 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
roy-marples
CWE-20
nessus

Summary

dhcpcd before 5.2.12 allows remote attackers to execute arbitrary commands via shell metacharacters in a hostname obtained from a DHCP message.

Vulnerable Configurations

Part Description Count
Application
Roy_Marples
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 familySuSE Local Security Checks
    NASL idSUSE_11_2_DHCPCD-110411.NASL
    descriptionThis update fixes the following security issue : A rogue DHCP server could instruct clients to use a host name that contains shell meta characters. Since many scripts in the system do not expect unusal characters in the system
    last seen2020-06-01
    modified2020-06-02
    plugin id53707
    published2011-05-05
    reporterThis script is Copyright (C) 2011-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/53707
    titleopenSUSE Security Update : dhcpcd (openSUSE-SU-2011:0342-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 dhcpcd-4346.
    #
    # The text description of this plugin is (C) SUSE LLC.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(53707);
      script_version("1.5");
      script_cvs_date("Date: 2019/10/25 13:36:40");
    
      script_cve_id("CVE-2011-0996");
    
      script_name(english:"openSUSE Security Update : dhcpcd (openSUSE-SU-2011:0342-1)");
      script_summary(english:"Check for the dhcpcd-4346 patch");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote openSUSE host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "This update fixes the following security issue :
    
    A rogue DHCP server could instruct clients to use a host name that
    contains shell meta characters. Since many scripts in the system do
    not expect unusal characters in the system's host name the DHCP client
    needs to sanitize the host name offered by the server (CVE-2011-0996).
    
    This update also fixes the following non-security issues :
    
      - 564441: e1000 and dhcpd hickup
    
      - 565030: dhcpcd not using router component of dhcp server
        option 33 (Static Route)
    
      - 574938: Sysem Update Fails to deploy to Primary serve.
    
      - 577402: dhcpcp with Patch bnc#565030 has netlink error
        with /32 netmask
    
      - 601704: dhcpcd: ignores link carrier and does not
        retransmit
    
      - 654649: dhcpcd ignores -G (--nogateway) option and sets
        default route
    
      - 657402: dhcpcd sends RENEWAL as ethernet broadcast
        instead of unicast
    
      - 668194: dhcp client not working properly in Xen domU due
        to partial checksum offload"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=564441"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=565030"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=574938"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=577402"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=601704"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=654649"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=657402"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=668194"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=675052"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://lists.opensuse.org/opensuse-updates/2011-04/msg00043.html"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected dhcpcd package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/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:dhcpcd");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:11.2");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2011/04/11");
      script_set_attribute(attribute:"plugin_publication_date", value:"2011/05/05");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2011-2019 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 !~ "^(SUSE11\.2)$") audit(AUDIT_OS_RELEASE_NOT, "openSUSE", "11.2", 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:"SUSE11.2", reference:"dhcpcd-3.2.3-47.64.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, "dhcpcd");
    }
    
  • NASL familySuSE Local Security Checks
    NASL idSUSE9_12696.NASL
    descriptionA rogue DHCP server could instruct clients to use a host name that contains shell meta characters. Since many scripts in the system do not expect unusal characters in the system
    last seen2020-06-01
    modified2020-06-02
    plugin id53312
    published2011-04-07
    reporterThis script is Copyright (C) 2011-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/53312
    titleSuSE9 Security Update : dhcpcd (YOU Patch Number 12696)
  • NASL familySuSE Local Security Checks
    NASL idSUSE9_12697.NASL
    descriptionA rogue DHCP server could instruct clients to use a host name that contains shell meta characters. Since many scripts in the system do not expect unusal characters in the system
    last seen2020-06-01
    modified2020-06-02
    plugin id53636
    published2011-05-04
    reporterThis script is Copyright (C) 2011-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/53636
    titleSuSE9 Security Update : dhcp6 (YOU Patch Number 12697)
  • NASL familySuSE Local Security Checks
    NASL idSUSE9_12698.NASL
    descriptionA rogue DHCP server could instruct clients to use a host name that contains shell meta characters. Since many scripts in the system do not expect unusal characters in the system
    last seen2020-06-01
    modified2020-06-02
    plugin id53354
    published2011-04-11
    reporterThis script is Copyright (C) 2011-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/53354
    titleSuSE9 Security Update : dhcp (YOU Patch Number 12698)
  • NASL familySlackware Local Security Checks
    NASL idSLACKWARE_SSA_2011-210-02.NASL
    descriptionNew dhcpcd packages are available for Slackware 13.0, 13.1, 13.37, and -current to fix security issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id55736
    published2011-08-01
    reporterThis script is Copyright (C) 2011-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/55736
    titleSlackware 13.0 / 13.1 / 13.37 / current : dhcpcd (SSA:2011-210-02)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_DHCPCD-110415.NASL
    descriptionA rogue DHCP server could instruct clients to use a host name that contains shell meta characters. Since many scripts in the system do not expect unusal characters in the system
    last seen2020-06-01
    modified2020-06-02
    plugin id53501
    published2011-04-20
    reporterThis script is Copyright (C) 2011-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/53501
    titleSuSE 11.1 Security Update : dhcpcd (SAT Patch Number 4389)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_DHCPCD-7453.NASL
    descriptionA rogue DHCP server could instruct clients to use a host name that contains shell meta characters. Since many scripts in the system do not expect unusal characters in the system
    last seen2020-06-01
    modified2020-06-02
    plugin id57184
    published2011-12-13
    reporterThis script is Copyright (C) 2011-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/57184
    titleSuSE 10 Security Update : dhcpcd (ZYPP Patch Number 7453)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_4_DHCPCD-110411.NASL
    descriptionA rogue dhcp server could instruct clients to use a host name that contains shell meta characters. Since many scripts in the system do not expect unusal characters in the system
    last seen2020-06-01
    modified2020-06-02
    plugin id75816
    published2014-06-13
    reporterThis script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/75816
    titleopenSUSE Security Update : dhcpcd (openSUSE-SU-2011:0352-1)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_DHCPCD-7452.NASL
    descriptionA rogue DHCP server could instruct clients to use a host name that contains shell meta characters. Since many scripts in the system do not expect unusal characters in the system
    last seen2020-06-01
    modified2020-06-02
    plugin id53359
    published2011-04-11
    reporterThis script is Copyright (C) 2011-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/53359
    titleSuSE 10 Security Update : dhcpcd (ZYPP Patch Number 7452)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_4_DHCPCD-110419.NASL
    descriptionA rogue dhcp server could instruct clients to use a host name that contains shell meta characters. Since many scripts in the system do not expect unusal characters in the system
    last seen2020-06-01
    modified2020-06-02
    plugin id75817
    published2014-06-13
    reporterThis script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/75817
    titleopenSUSE Security Update : dhcpcd (openSUSE-SU-2011:0385-1)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_DHCPCD-110407.NASL
    descriptionA rogue DHCP server could instruct clients to use a host name that contains shell meta characters. Since many scripts in the system do not expect unusal characters in the system
    last seen2020-06-01
    modified2020-06-02
    plugin id53357
    published2011-04-11
    reporterThis script is Copyright (C) 2011-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/53357
    titleSuSE 11.1 Security Update : dhcpcd (SAT Patch Number 4316)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_DHCPCD-7432.NASL
    descriptionA rogue DHCP server could instruct clients to use a host name that contains shell meta characters. Since many scripts in the system do not expect unusal characters in the system
    last seen2020-06-01
    modified2020-06-02
    plugin id53317
    published2011-04-07
    reporterThis script is Copyright (C) 2011-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/53317
    titleSuSE 10 Security Update : dhcpcd (ZYPP Patch Number 7432)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_2_DHCPCD-110419.NASL
    descriptionThis update fixes the following security issue : A rogue DHCP server could instruct clients to use a host name that contains shell meta characters. Since many scripts in the system do not expect unusal characters in the system
    last seen2020-06-01
    modified2020-06-02
    plugin id53708
    published2011-05-05
    reporterThis script is Copyright (C) 2011-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/53708
    titleopenSUSE Security Update : dhcpcd (openSUSE-SU-2011:0385-1)
  • NASL familySuSE Local Security Checks
    NASL idSUSE9_12699.NASL
    descriptionA rogue DHCP server could instruct clients to use a host name that contains shell meta characters. Since many scripts in the system do not expect unusal characters in the system
    last seen2020-06-01
    modified2020-06-02
    plugin id53355
    published2011-04-11
    reporterThis script is Copyright (C) 2011-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/53355
    titleSuSE9 Security Update : dhcpcd (YOU Patch Number 12699)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_3_DHCPCD-110419.NASL
    descriptionA rogue dhcp server could instruct clients to use a host name that contains shell meta characters. Since many scripts in the system do not expect unusal characters in the system
    last seen2020-06-01
    modified2020-06-02
    plugin id75469
    published2014-06-13
    reporterThis script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/75469
    titleopenSUSE Security Update : dhcpcd (openSUSE-SU-2011:0385-1)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201301-04.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-201301-04 (dhcpcd: Arbitrary code execution) A vulnerability has been discovered in dhcpcd. Please review the CVE identifier referenced below for details. Impact : The vulnerability might allow an attacker to execute arbitrary code on the DHCP client. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id63438
    published2013-01-09
    reporterThis script is Copyright (C) 2013-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/63438
    titleGLSA-201301-04 : dhcpcd: Arbitrary code execution
  • NASL familySuSE Local Security Checks
    NASL idSUSE_DHCPCD-7433.NASL
    descriptionA rogue DHCP server could instruct clients to use a host name that contains shell meta characters. Since many scripts in the system do not expect unusal characters in the system
    last seen2020-06-01
    modified2020-06-02
    plugin id57183
    published2011-12-13
    reporterThis script is Copyright (C) 2011-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/57183
    titleSuSE 10 Security Update : dhcpcd (ZYPP Patch Number 7433)