|
PHP crypt() Race Condition Vulnerability
|
|
Secunia Advisory:
|
SA25434
|
|
|
Release Date:
|
2007-06-01
|
|
Popularity:
|
8,951 views
|
|
|
Critical:
|
 Less critical
|
|
Impact:
|
Security Bypass
|
|
Where:
|
From remote
|
|
Solution Status:
|
Partial Fix
|
|
| Software: | PHP 4.4.x PHP 5.2.x
|
|
|
Subscribe:
|
Instant alerts on relevant vulnerabilities
|
|
| CVE reference: | CVE-2007-2844
|
|
Description: Stefan Esser has reported a vulnerability in PHP, which can be exploited by malicious people to bypass certain security restrictions.
The vulnerability is caused due to a race condition when calling the system's "crypt()" function on multi threaded systems. The problem is that two threads validating passwords at the same time are using the same internal memory. This can lead to a successful authentication with an invalid password.
The vulnerability is reported in PHP 5 prior to 5.2.1 on UNIX systems. PHP 4 and PHP 5 on Windows systems may also be affected.
Solution: Do not use the "crypt()" function in a multi threaded environment.
PHP 5 for UNIX systems:
Update to version 5.2.1 or later.
Provided and/or discovered by: Stefan Esser
Original Advisory: http://blog.php-security.org/archives...rypt-Thread-Safety-Vulnerability.html
|
|
|
Track this Secunia Advisory
|
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.
Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.
|
|
|
About this Secunia Advisory
|
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.
Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
|