PHP 5.3.7 crypt() MD5 Incorrect Return Value

High Nessus Plugin ID 55969

New! Vulnerability Priority Rating (VPR)

Tenable calculates a dynamic VPR for every vulnerability. VPR combines vulnerability information with threat intelligence and machine learning algorithms to predict which vulnerabilities are most likely to be exploited in attacks. Read more about what VPR is and how it's different from CVSS.

VPR Score: 5.2

Synopsis

The remote web server uses a version of PHP that is affected by a security bypass vulnerability.

Description

According to its banner, PHP 5.3.7 is installed on the remote host. This version contains a bug in the crypt() function when generating salted MD5 hashes. The function only returns the salt rather than the salt and hash. Any authentication mechanism that uses crypt() could authorize all authentication attempts due to this bug.

Solution

Upgrade to PHP 5.3.8 or later.

See Also

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

http://www.php.net/archive/2011.php#id2011-08-23-1

Plugin Details

Severity: High

ID: 55969

File Name: php_5_3_8.nasl

Version: 1.9

Type: remote

Family: CGI abuses

Published: 2011/08/24

Updated: 2018/07/24

Dependencies: 48243

Risk Information

Risk Factor: High

VPR Score: 5.2

CVSS v2.0

Base Score: 7.5

Temporal Score: 5.5

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

Temporal Vector: CVSS2#E:U/RL:OF/RC:C

Vulnerability Information

CPE: cpe:/a:php:php

Required KB Items: www/PHP

Exploit Available: false

Exploit Ease: No exploit is required

Patch Publication Date: 2011/08/23

Vulnerability Publication Date: 2011/08/17

Reference Information

CVE: CVE-2011-3189

BID: 49376

Secunia: 45678