ID CVE-2002-0985
Summary Argument injection vulnerability in the mail function for PHP 4.x to 4.2.2 may allow attackers to bypass safe mode restrictions and modify command line arguments to the MTA (e.g. sendmail) in the 5th argument to mail(), altering MTA behavior and possibly executing commands.
References
Vulnerable Configurations
  • cpe:2.3:a:php:php:4.0:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0:-:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0:-:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0:beta1:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0:beta1:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0:beta2:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0:beta2:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0:beta3:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0:beta3:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0:beta4:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0:beta4:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0:beta_4_patch1:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0:beta_4_patch1:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0:rc1:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0:rc1:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0:rc2:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0:rc2:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.0:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.0:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.1:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.1:-:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.1:-:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.1:patch1:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.1:patch1:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.1:patch2:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.1:patch2:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.1:rc:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.1:rc:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.1:rc2:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.1:rc2:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.2:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.2:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.2:rc1:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.2:rc1:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.3:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.3:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.3:patch1:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.3:patch1:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.3:rc1:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.3:rc1:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.3:rc2:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.3:rc2:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.4:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.4:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.4:-:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.4:-:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.4:rc1:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.4:rc1:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.4:rc2:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.4:rc2:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.4:rc3:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.4:rc3:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.4:rc4:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.4:rc4:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.4:rc5:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.4:rc5:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.4:rc6:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.4:rc6:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.5:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.5:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.5:-:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.5:-:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.5:rc1:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.5:rc1:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.5:rc2:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.5:rc2:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.5:rc3:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.5:rc3:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.5:rc4:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.5:rc4:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.5:rc5:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.5:rc5:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.5:rc6:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.5:rc6:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.5:rc7:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.5:rc7:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.5:rc8:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.5:rc8:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.6:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.6:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.6:-:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.6:-:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.6:rc1:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.6:rc1:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.6:rc2:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.6:rc2:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.6:rc3:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.6:rc3:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.6:rc4:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.6:rc4:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.7:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.7:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.7:-:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.7:-:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.7:rc1:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.7:rc1:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.7:rc2:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.7:rc2:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.0.7:rc3:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.0.7:rc3:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.1.0:-:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.1.0:-:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.1.0:rc1:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.1.0:rc1:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.1.0:rc2:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.1.0:rc2:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.1.0:rc3:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.1.0:rc3:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.1.0:rc4:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.1.0:rc4:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.1.0:rc5:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.1.0:rc5:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.1.1:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.1.1:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.1.2:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.1.2:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.1.3:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.1.3:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.2:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.2:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.2.0:-:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.2.0:-:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.2.0:rc1:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.2.0:rc1:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.2.0:rc2:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.2.0:rc2:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.2.0:rc3:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.2.0:rc3:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.2.0:rc4:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.2.0:rc4:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.2.1:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.2.1:-:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.2.1:-:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.2.1:rc1:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.2.1:rc1:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.2.1:rc2:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.2.1:rc2:*:*:*:*:*:*
  • cpe:2.3:a:php:php:4.2.2:*:*:*:*:*:*:*
    cpe:2.3:a:php:php:4.2.2:*:*:*:*:*:*:*
  • cpe:2.3:a:openpkg:openpkg:1.1:*:*:*:*:*:*:*
    cpe:2.3:a:openpkg:openpkg:1.1:*:*:*:*:*:*:*
  • cpe:2.3:a:openpkg:openpkg:1.2:*:*:*:*:*:*:*
    cpe:2.3:a:openpkg:openpkg:1.2:*:*:*:*:*:*:*
CVSS
Base: 7.5 (as of 13-02-2024 - 18:00)
Impact:
Exploitability:
CWE CWE-88
CAPEC
  • 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.
  • Parameter Injection
    An adversary manipulates the content of request parameters for the purpose of undermining the security of the target. Some parameter encodings use text characters as separators. For example, parameters in a HTTP GET message are encoded as name-value pairs separated by an ampersand (&). If an attacker can supply text strings that are used to fill in these parameters, then they can inject special characters used in the encoding scheme to add or modify parameters. For example, if user input is fed directly into an HTTP GET request and the user provides the value "myInput&new_param=myValue", then the input parameter is set to myInput, but a new parameter (new_param) is also added with a value of myValue. This can significantly change the meaning of the query that is processed by the server. Any encoding scheme where parameters are identified and separated by text characters is potentially vulnerable to this attack - the HTTP GET encoding used above is just one example.
  • Using Meta-characters in E-mail Headers to Inject Malicious Payloads
    This type of attack involves an attacker leveraging meta-characters in email headers to inject improper behavior into email programs. Email software has become increasingly sophisticated and feature-rich. In addition, email applications are ubiquitous and connected directly to the Web making them ideal targets to launch and propagate attacks. As the user demand for new functionality in email applications grows, they become more like browsers with complex rendering and plug in routines. As more email functionality is included and abstracted from the user, this creates opportunities for attackers. Virtually all email applications do not list email header information by default, however the email header contains valuable attacker vectors for the attacker to exploit particularly if the behavior of the email client application is known. Meta-characters are hidden from the user, but can contain scripts, enumerations, probes, and other attacks against the user's system.
  • HTTP Parameter Pollution (HPP)
    An attacker overrides or adds HTTP GET/POST parameters by injecting query string delimiters. Via HPP it may be possible to override existing hardcoded HTTP parameters, modify the application behaviors, access and, potentially exploit, uncontrollable variables, and bypass input validation checkpoints and WAF rules.
  • Flash Parameter Injection
    An adversary takes advantage of improper data validation to inject malicious global parameters into a Flash file embedded within an HTML document. Flash files can leverage user-submitted data to configure the Flash document and access the embedding HTML document. These 'FlashVars' are most often passed to the Flash file via URL arguments or from the Object or Embed tag within the embedding HTML document. If these FlashVars are not properly sanitized, an adversary may be able to embed malicious content (such as scripts) into the HTML document. The injected parameters can also provide the adversary control over other objects within the Flash file as well as full control over the parent document's DOM model. As such, this is a form of HTTP parameter injection, but the abilities granted to the Flash document (such as access to a page's document model, including associated cookies) make this attack more flexible. Flash Parameter Injection attacks can also preface further attacks such as various forms of Cross-Site Scripting (XSS) attacks in addition to Session Hijacking attacks.
Access
VectorComplexityAuthentication
NETWORK LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
cvss-vector via4 AV:N/AC:L/Au:N/C:P/I:P/A:P
redhat via4
advisories
  • rhsa
    id RHSA-2002:213
  • rhsa
    id RHSA-2002:214
  • rhsa
    id RHSA-2002:243
  • rhsa
    id RHSA-2002:244
  • rhsa
    id RHSA-2002:248
  • rhsa
    id RHSA-2003:159
refmap via4
bugtraq
  • 20020823 PHP: Bypass safe_mode and inject ASCII control chars with mail()
  • 20030707 [OpenPKG-SA-2003.032] OpenPKG Security Advisory (php)
caldera CSSA-2003-008.0
conectiva CLA-2002:545
debian DSA-168
mandrake MDKSA-2003:082
osvdb 2111
suse SuSE-SA:2002:036
xf php-mail-safemode-bypass(9966)
Last major update 13-02-2024 - 18:00
Published 24-09-2002 - 04:00
Last modified 13-02-2024 - 18:00
Back to Top