PHP 5.4.x < 5.4.31 CLI Server 'header' DoS

low Nessus Plugin ID 76791

Synopsis

The remote web server uses a version of PHP that is affected by a denial of service vulnerability.

Description

According to its banner, the version of PHP 5.4.x in use on the remote web server is a version prior to 5.4.31. It is, therefore, affected by a denial of service vulnerability that affects the built-in command line development server.

The function 'sapi_cli_server_send_headers' in the file 'sapi/cli/php_cli_server.c' contains an error that does not properly handle an empty 'header' parameter and could allow denial of service attacks.

Note that this issue affects only the built-in command line development server.

Further note that Nessus has not attempted to exploit this issue, but has instead relied only on the application's self-reported version number.

Solution

Upgrade to PHP version 5.4.31 or later.

See Also

http://www.php.net/ChangeLog-5.php#5.4.31

https://bugs.php.net/bug.php?id=66830

Plugin Details

Severity: Low

ID: 76791

File Name: php_5_4_31.nasl

Version: 1.4

Type: remote

Family: CGI abuses

Published: 7/25/2014

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

CVSS v2

Risk Factor: Low

Base Score: 2.6

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

Vulnerability Information

CPE: cpe:/a:php:php

Required KB Items: www/PHP

Patch Publication Date: 7/24/2014

Vulnerability Publication Date: 3/5/2014