Vulnerabilities > CVE-2009-4025 - OS Command Injection vulnerability in Pear 0.11/0.20/0.21
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
Argument injection vulnerability in the traceroute function in Traceroute.php in the Net_Traceroute package before 0.21.2 for PEAR allows remote attackers to execute arbitrary shell commands via the host parameter. NOTE: some of these details are obtained from third party information.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 4 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- 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.
- Command Delimiters An attack of this type exploits a programs' vulnerabilities that allows an attacker's commands to be concatenated onto a legitimate command with the intent of targeting other resources such as the file system or database. The system that uses a filter or a blacklist input validation, as opposed to whitelist validation is vulnerable to an attacker who predicts delimiters (or combinations of delimiters) not present in the filter or blacklist. As with other injection attacks, the attacker uses the command delimiter payload as an entry point to tunnel through the application and activate additional attacks through SQL queries, shell commands, network scanning, and so on.
- Exploiting Multiple Input Interpretation Layers An attacker supplies the target software with input data that contains sequences of special characters designed to bypass input validation logic. This exploit relies on the target making multiples passes over the input data and processing a "layer" of special characters with each pass. In this manner, the attacker can disguise input that would otherwise be rejected as invalid by concealing it with layers of special/escape characters that are stripped off by subsequent processing steps. The goal is to first discover cases where the input validation layer executes before one or more parsing layers. That is, user input may go through the following logic in an application: In such cases, the attacker will need to provide input that will pass through the input validator, but after passing through parser2, will be converted into something that the input validator was supposed to stop.
- Argument Injection An attacker changes the behavior or state of a targeted application through injecting data or command syntax through the targets use of non-validated and non-filtered arguments of exposed services or methods.
- OS Command Injection In this type of an attack, an adversary injects operating system commands into existing application functions. An application that uses untrusted input to build command strings is vulnerable. An adversary can leverage OS command injection in an application to elevate privileges, execute arbitrary commands and compromise the underlying operating system.
Nessus
NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-200911-06.NASL description The remote host is affected by the vulnerability described in GLSA-200911-06 (PEAR Net_Traceroute: Command injection) Pasquale Imperato reported that the $host parameter to the traceroute() function in Traceroute.php is not properly sanitized before being passed to exec(). Impact : A remote attacker could exploit this vulnerability when user input is passed directly to PEAR Net_Traceroute in a PHP script, possibly resulting in the remote execution of arbitrary shell commands with the privileges of the user running the affected PHP script. Workaround : Ensure that all data that is passed to the traceroute() function is properly shell escaped (for instance using the escapeshellcmd() function). last seen 2020-06-01 modified 2020-06-02 plugin id 42916 published 2009-11-30 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/42916 title GLSA-200911-06 : PEAR Net_Traceroute: Command injection NASL family Fedora Local Security Checks NASL id FEDORA_2009-11551.NASL description Upstream changelog: QA Release: * Prevent command injection [kguest] (CVE-2009-4025) 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 seen 2020-06-01 modified 2020-06-02 plugin id 42905 published 2009-11-30 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/42905 title Fedora 12 : php-pear-Net-Traceroute-0.21.2-1.fc12 (2009-11551) NASL family Fedora Local Security Checks NASL id FEDORA_2009-11617.NASL description Upstream changelog: QA Release: * Prevent command injection [kguest] (CVE-2009-4025) 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 seen 2020-06-01 modified 2020-06-02 plugin id 42907 published 2009-11-30 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/42907 title Fedora 11 : php-pear-Net-Traceroute-0.21.2-1.fc11 (2009-11617) NASL family FreeBSD Local Security Checks NASL id FREEBSD_PKG_56BA8728F98711DEB28D00215C6A37BB.NASL description PEAR Security Advisory reports : Multiple remote arbitrary command injections have been found in the Net_Ping and Net_Traceroute. When input from forms are used directly, the attacker could pass variables that would allow him to execute remote arbitrary command injections. last seen 2020-06-01 modified 2020-06-02 plugin id 43626 published 2010-01-05 reporter This script is Copyright (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/43626 title FreeBSD : PEAR -- Net_Ping and Net_Traceroute remote arbitrary command injection (56ba8728-f987-11de-b28d-00215c6a37bb) NASL family Fedora Local Security Checks NASL id FEDORA_2009-12083.NASL description Upstream changelog: QA Release: * Prevent command injection [kguest] (CVE-2009-4025) 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 seen 2020-06-01 modified 2020-06-02 plugin id 42908 published 2009-11-30 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/42908 title Fedora 10 : php-pear-Net-Traceroute-0.21.2-1.fc10 (2009-12083)
References
- http://blog.pear.php.net/2009/11/14/net_traceroute-and-net_ping-security-advisory/
- http://blog.pear.php.net/2009/11/14/net_traceroute-and-net_ping-security-advisory/
- http://osvdb.org/60515
- http://osvdb.org/60515
- http://pear.php.net/advisory20091114-01.txt
- http://pear.php.net/advisory20091114-01.txt
- http://pear.php.net/package/Net_Traceroute/download/0.21.2
- http://pear.php.net/package/Net_Traceroute/download/0.21.2
- http://secunia.com/advisories/37497
- http://secunia.com/advisories/37497
- http://secunia.com/advisories/37503
- http://secunia.com/advisories/37503
- http://security.gentoo.org/glsa/glsa-200911-06.xml
- http://security.gentoo.org/glsa/glsa-200911-06.xml
- http://www.openwall.com/lists/oss-security/2009/11/23/8
- http://www.openwall.com/lists/oss-security/2009/11/23/8
- http://www.securityfocus.com/bid/37094
- http://www.securityfocus.com/bid/37094
- http://www.vupen.com/english/advisories/2009/3321
- http://www.vupen.com/english/advisories/2009/3321
- https://exchange.xforce.ibmcloud.com/vulnerabilities/54391
- https://exchange.xforce.ibmcloud.com/vulnerabilities/54391
- https://www.redhat.com/archives/fedora-package-announce/2009-November/msg00998.html
- https://www.redhat.com/archives/fedora-package-announce/2009-November/msg00998.html
- https://www.redhat.com/archives/fedora-package-announce/2009-November/msg01007.html
- https://www.redhat.com/archives/fedora-package-announce/2009-November/msg01007.html
- https://www.redhat.com/archives/fedora-package-announce/2009-November/msg01110.html
- https://www.redhat.com/archives/fedora-package-announce/2009-November/msg01110.html