PHP 5.3.x < 5.3.7 crypt() MD5 Incorrect Return Value

high Nessus Network Monitor Plugin ID 6017
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Synopsis

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

Description

Versions of PHP 5.3.x prior to 5.3.7 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 version 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: 6017

Family: Web Servers

Published: 8/24/2011

Updated: 3/6/2019

Dependencies: 8682

Nessus ID: 55969

Risk Information

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.2

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

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

CVSS v3

Risk Factor: High

Base Score: 7.3

Temporal Score: 6.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Temporal Vector: CVSS:3.0/E:F/RL:O/RC:C

Vulnerability Information

CPE: cpe:2.3:a:php:php:*:*:*:*:*:*:*:*

Patch Publication Date: 8/23/2011

Vulnerability Publication Date: 8/17/2011

Reference Information

CVE: CVE-2011-3189

BID: 49376