Vulnerabilities > CVE-2009-4025 - OS Command Injection vulnerability in Pear 0.11/0.20/0.21

047910
CVSS 10.0 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
low complexity
pear
CWE-78
critical
nessus

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
Pear
4

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 familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-200911-06.NASL
    descriptionThe 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 seen2020-06-01
    modified2020-06-02
    plugin id42916
    published2009-11-30
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/42916
    titleGLSA-200911-06 : PEAR Net_Traceroute: Command injection
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2009-11551.NASL
    descriptionUpstream 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 seen2020-06-01
    modified2020-06-02
    plugin id42905
    published2009-11-30
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/42905
    titleFedora 12 : php-pear-Net-Traceroute-0.21.2-1.fc12 (2009-11551)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2009-11617.NASL
    descriptionUpstream 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 seen2020-06-01
    modified2020-06-02
    plugin id42907
    published2009-11-30
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/42907
    titleFedora 11 : php-pear-Net-Traceroute-0.21.2-1.fc11 (2009-11617)
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_56BA8728F98711DEB28D00215C6A37BB.NASL
    descriptionPEAR 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 seen2020-06-01
    modified2020-06-02
    plugin id43626
    published2010-01-05
    reporterThis script is Copyright (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/43626
    titleFreeBSD : PEAR -- Net_Ping and Net_Traceroute remote arbitrary command injection (56ba8728-f987-11de-b28d-00215c6a37bb)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2009-12083.NASL
    descriptionUpstream 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 seen2020-06-01
    modified2020-06-02
    plugin id42908
    published2009-11-30
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/42908
    titleFedora 10 : php-pear-Net-Traceroute-0.21.2-1.fc10 (2009-12083)