PHP < 4.2.x mail Function CRLF Injection

high Nessus Plugin ID 11050

Synopsis

Arbitrary code may be run on the remote host.

Description

The remote host is running a version of PHP earlier than 4.2.2.

The new POST handling system in PHP 4.2.0 and 4.2.1 has a bug which allows an attacker to disable the remote server or to compromise it.

Solution

Upgrade to PHP 4.2.2 or downgrade to 4.1.2.

Plugin Details

Severity: High

ID: 11050

File Name: php_4_2_x_malformed_POST.nasl

Version: 1.38

Type: remote

Family: CGI abuses

Published: 7/22/2002

Updated: 5/28/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.4

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: cpe:/a:php:php

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Vulnerability Publication Date: 9/9/2003

Reference Information

CVE: CVE-2002-0986

BID: 5681

SuSE: SUSE-SA:2002:036