PHP 5.3.x < 5.3.21 cuRL X.509 Certificate Domain Name Matching MiTM Weakness

medium Log Correlation Engine Plugin ID 801093

Synopsis

The remote web server uses a version of PHP that is affected by a man-in-the-middle attack

Description

PHP versions 5.3.x earlier than 5.3.21 are affected by a weakness in the cURL extension that call allow SSL spoofing and man-in-the-middle attacks.

When attempting to validate a certificate, the cURL library (libcurl) fails to verify that a server hostname matches a domain name in an X.509 certificate's 'Subject Common Name' (CN) or 'SubjectAltName'.

Note that this plugin does not attempt to verify whether the PHP install has been built with the cURL extention but instead relies only on PHP's self-reported version number.

Solution

Upgrade to PHP version 5.3.21 or later.

See Also

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

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

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

Plugin Details

Severity: Medium

ID: 801093

Family: Web Servers

Published: 1/22/2013

Nessus ID: 63621

Vulnerability Information

Patch Publication Date: 1/17/2013

Vulnerability Publication Date: 1/17/2013