PHP Version 5 Hash Collision Form Parameter Parsing Remote DoS - Nessus

Medium   Plugin ID: 57557

This page contains detailed information about the PHP Version 5 Hash Collision Form Parameter Parsing Remote DoS Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 57557
Name: PHP Version 5 Hash Collision Form Parameter Parsing Remote DoS
Filename: php_5_hash_collision_dos.nbin
Vulnerability Published: 2011-12-28
This Plugin Published: 2012-01-16
Last Modification Time: 2022-04-11
Plugin Version: 1.77
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: php_version.nasl, webmirror.nasl
Required KB Items [?]: Settings/ParanoidReport, www/PHP
Excluded KB Items: Settings/disable_cgi_scanning

Vulnerability Information


Severity: Medium
Vulnerability Published: 2011-12-28
Patch Published: 2012-01-11
CVE [?]: CVE-2011-4885
CPE [?]: cpe:/a:php:php
Exploited by Malware: True

Synopsis

The version of PHP running on the remote host is affected by a denial of service vulnerability.

Description

The remote web server uses a version of PHP that is affected by a hash collision denial of service. A flaw exists in the way PHP generates hash tables for user-supplied values. By sending a small number of specially crafted POST requests to a web server that uses PHP, an attacker can take advantage of this flaw to cause a denial of service condition.

Note that this plugin only tests PHP version 5, and it only runs if 'Report paranoia' is set to 'Paranoid' and the 'Perform thorough tests' setting is enabled.

Solution

Upgrade to PHP 5.3.9 or later.

Public Exploits


Target Network Port(s): 80
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the PHP Version 5 Hash Collision Form Parameter Parsing Remote DoS vulnerability:

  1. Metasploit: auxiliary/dos/http/hashcollision_dos
    [Hashtable Collisions]
  2. Exploit-DB: exploits/php/dos/18296.txt
    [EDB-18296: PHP 5.3.8 - Hashtables Denial of Service]
  3. Exploit-DB: exploits/php/dos/18305.py
    [EDB-18305: PHP Hash Table Collision - Denial of Service (PoC)]
  4. GitHub: https://github.com/offensive-security/exploitdb-bin-sploits/blob/master/bin-sploits/18296.txt
    [EDB-18296]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:N/I:N/A:P/E:F/RL:OF/RC:C
CVSS Base Score:5.0 (Medium)
Impact Subscore:2.9
Exploitability Subscore:10.0
CVSS Temporal Score:4.1 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:4.1 (Medium)

Go back to menu.

Plugin Source


The php_5_hash_collision_dos.nbin Nessus plugin is distributed in a propriatory binary format and its source code is protected. This script is Copyright (C) 2012-2022 and is owned by Tenable, Inc. or an Affiliate thereof.

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/php_5_hash_collision_dos.nbin
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\php_5_hash_collision_dos.nbin
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/php_5_hash_collision_dos.nbin

Go back to menu.

How to Run


Here is how to run the PHP Version 5 Hash Collision Form Parameter Parsing Remote DoS as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select CGI abuses plugin family.
  6. On the right side table select PHP Version 5 Hash Collision Form Parameter Parsing Remote DoS plugin ID 57557.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl php_5_hash_collision_dos.nbin -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a php_5_hash_collision_dos.nbin -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - php_5_hash_collision_dos.nbin -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state php_5_hash_collision_dos.nbin -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: CERT | Computer Emergency Response Team: See also: Similar and related Nessus plugins:
  • 69644 - Amazon Linux AMI : php (ALAS-2012-37)
  • 57488 - CentOS 5 / 6 : php / php53 (CESA-2012:0019)
  • 57642 - CentOS 5 : php (CESA-2012:0033)
  • 67087 - CentOS 4 : php (CESA-2012:0071)
  • 57753 - Debian DSA-2399-2 : php5 - several vulnerabilities
  • 78134 - F5 Networks BIG-IP : Multiple PHP vulnerabilities (K13519)
  • 78135 - F5 Networks BIG-IP : PHP vulnerability (K13588)
  • 57703 - Fedora 15 : maniadrive-1.2-32.fc15.1 / php-5.3.9-1.fc15 / php-eaccelerator-0.9.6.1-9.fc15.1 (2012-0420)
  • 57609 - Fedora 16 : maniadrive-1.2-32.fc16.1 / php-5.3.9-1.fc16 / php-eaccelerator-0.9.6.1-9.fc16.1 (2012-0504)
  • 57869 - Fedora 16 : maniadrive-1.2-32.fc16.2 / php-5.3.10-1.fc16 / php-eaccelerator-0.9.6.1-9.fc16.2 (2012-1262)
  • 57954 - Fedora 15 : maniadrive-1.2-32.fc15.2 / php-5.3.10-1.fc15 / php-eaccelerator-0.9.6.1-9.fc15.2 (2012-1301)
  • 57489 - FreeBSD : php -- multiple vulnerabilities (d3921810-3c80-11e1-97e8-00215c6a37bb)
  • 62236 - GLSA-201209-03 : PHP: Multiple vulnerabilities
  • 59851 - HP System Management Homepage < 7.1.1 Multiple Vulnerabilities
  • 59066 - Mac OS X 10.7.x < 10.7.4 Multiple Vulnerabilities (BEAST)
  • 57427 - Mandriva Linux Security Advisory : php (MDVSA-2011:197)
  • 74580 - openSUSE Security Update : php5 (openSUSE-SU-2012:0426-1)
  • 68431 - Oracle Linux 5 / 6 : php / php53 (ELSA-2012-0019)
  • 68432 - Oracle Linux 5 : php (ELSA-2012-0033)
  • 68442 - Oracle Linux 4 : php (ELSA-2012-0071)
  • 57537 - PHP < 5.3.9 Multiple Vulnerabilities
  • 57494 - RHEL 5 / 6 : php53 and php (RHSA-2012:0019)
  • 57594 - RHEL 5 : php (RHSA-2012:0033)
  • 57748 - RHEL 4 : php (RHSA-2012:0071)
  • 61219 - Scientific Linux Security Update : php53 and php on SL5.x, SL6.x i386/x86_64 (20120111)
  • 61220 - Scientific Linux Security Update : php on SL5.x i386/x86_64 (20120118)
  • 61227 - Scientific Linux Security Update : php on SL4.x i386/x86_64 (20120130)
  • 58740 - SuSE 11.1 Security Update : PHP5 (SAT Patch Number 5964)
  • 58480 - SuSE 10 Security Update : PHP5 (ZYPP Patch Number 8009)
  • 57888 - Ubuntu 8.04 LTS / 10.04 LTS / 10.10 / 11.04 / 11.10 : php5 vulnerabilities (USN-1358-1)
  • 57932 - Ubuntu 8.04 LTS / 10.04 LTS / 10.10 / 11.04 / 11.10 : php5 regression (USN-1358-2)
  • 68570 - Oracle Linux 6 : php (ELSA-2012-1046)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file php_5_hash_collision_dos.nbin version 1.77. For more plugins, visit the Nessus Plugin Library.

Go back to menu.