Vulnerabilities > CVE-2011-0996 - Improper Input Validation vulnerability in ROY Marples Dhcpcd
Attack vector
NETWORK Attack complexity
MEDIUM Privileges required
NONE Confidentiality impact
PARTIAL Integrity impact
PARTIAL Availability impact
PARTIAL 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 | 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 family SuSE Local Security Checks NASL id SUSE_11_2_DHCPCD-110411.NASL description 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 last seen 2020-06-01 modified 2020-06-02 plugin id 53707 published 2011-05-05 reporter This script is Copyright (C) 2011-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/53707 title openSUSE 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 family SuSE Local Security Checks NASL id SUSE9_12696.NASL description 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 seen 2020-06-01 modified 2020-06-02 plugin id 53312 published 2011-04-07 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/53312 title SuSE9 Security Update : dhcpcd (YOU Patch Number 12696) NASL family SuSE Local Security Checks NASL id SUSE9_12697.NASL description 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 seen 2020-06-01 modified 2020-06-02 plugin id 53636 published 2011-05-04 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/53636 title SuSE9 Security Update : dhcp6 (YOU Patch Number 12697) NASL family SuSE Local Security Checks NASL id SUSE9_12698.NASL description 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 seen 2020-06-01 modified 2020-06-02 plugin id 53354 published 2011-04-11 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/53354 title SuSE9 Security Update : dhcp (YOU Patch Number 12698) NASL family Slackware Local Security Checks NASL id SLACKWARE_SSA_2011-210-02.NASL description New dhcpcd packages are available for Slackware 13.0, 13.1, 13.37, and -current to fix security issues. last seen 2020-06-01 modified 2020-06-02 plugin id 55736 published 2011-08-01 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/55736 title Slackware 13.0 / 13.1 / 13.37 / current : dhcpcd (SSA:2011-210-02) NASL family SuSE Local Security Checks NASL id SUSE_11_DHCPCD-110415.NASL description 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 seen 2020-06-01 modified 2020-06-02 plugin id 53501 published 2011-04-20 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/53501 title SuSE 11.1 Security Update : dhcpcd (SAT Patch Number 4389) NASL family SuSE Local Security Checks NASL id SUSE_DHCPCD-7453.NASL description 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 seen 2020-06-01 modified 2020-06-02 plugin id 57184 published 2011-12-13 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/57184 title SuSE 10 Security Update : dhcpcd (ZYPP Patch Number 7453) NASL family SuSE Local Security Checks NASL id SUSE_11_4_DHCPCD-110411.NASL description 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 seen 2020-06-01 modified 2020-06-02 plugin id 75816 published 2014-06-13 reporter This script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/75816 title openSUSE Security Update : dhcpcd (openSUSE-SU-2011:0352-1) NASL family SuSE Local Security Checks NASL id SUSE_DHCPCD-7452.NASL description 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 seen 2020-06-01 modified 2020-06-02 plugin id 53359 published 2011-04-11 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/53359 title SuSE 10 Security Update : dhcpcd (ZYPP Patch Number 7452) NASL family SuSE Local Security Checks NASL id SUSE_11_4_DHCPCD-110419.NASL description 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 seen 2020-06-01 modified 2020-06-02 plugin id 75817 published 2014-06-13 reporter This script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/75817 title openSUSE Security Update : dhcpcd (openSUSE-SU-2011:0385-1) NASL family SuSE Local Security Checks NASL id SUSE_11_DHCPCD-110407.NASL description 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 seen 2020-06-01 modified 2020-06-02 plugin id 53357 published 2011-04-11 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/53357 title SuSE 11.1 Security Update : dhcpcd (SAT Patch Number 4316) NASL family SuSE Local Security Checks NASL id SUSE_DHCPCD-7432.NASL description 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 seen 2020-06-01 modified 2020-06-02 plugin id 53317 published 2011-04-07 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/53317 title SuSE 10 Security Update : dhcpcd (ZYPP Patch Number 7432) NASL family SuSE Local Security Checks NASL id SUSE_11_2_DHCPCD-110419.NASL description 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 last seen 2020-06-01 modified 2020-06-02 plugin id 53708 published 2011-05-05 reporter This script is Copyright (C) 2011-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/53708 title openSUSE Security Update : dhcpcd (openSUSE-SU-2011:0385-1) NASL family SuSE Local Security Checks NASL id SUSE9_12699.NASL description 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 seen 2020-06-01 modified 2020-06-02 plugin id 53355 published 2011-04-11 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/53355 title SuSE9 Security Update : dhcpcd (YOU Patch Number 12699) NASL family SuSE Local Security Checks NASL id SUSE_11_3_DHCPCD-110419.NASL description 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 seen 2020-06-01 modified 2020-06-02 plugin id 75469 published 2014-06-13 reporter This script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/75469 title openSUSE Security Update : dhcpcd (openSUSE-SU-2011:0385-1) NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-201301-04.NASL description The 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 seen 2020-06-01 modified 2020-06-02 plugin id 63438 published 2013-01-09 reporter This script is Copyright (C) 2013-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/63438 title GLSA-201301-04 : dhcpcd: Arbitrary code execution NASL family SuSE Local Security Checks NASL id SUSE_DHCPCD-7433.NASL description 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 seen 2020-06-01 modified 2020-06-02 plugin id 57183 published 2011-12-13 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/57183 title SuSE 10 Security Update : dhcpcd (ZYPP Patch Number 7433)
References
- http://roy.marples.name/archives/dhcpcd-discuss/2011/0326.html
- http://roy.marples.name/projects/dhcpcd/changeset/c317b39786ac6c3a939dc711db7c78cf099859fd
- http://roy.marples.name/projects/dhcpcd/timeline
- http://secunia.com/advisories/44070
- http://security.gentoo.org/glsa/glsa-201301-04.xml
- http://www.securityfocus.com/bid/47272
- https://bugzilla.novell.com/show_bug.cgi?id=675052
- https://exchange.xforce.ibmcloud.com/vulnerabilities/66641