Secunia - Stay Secure
Gartner
Home Corporate Website Jobs Updated Mailing Lists RSS Blog  Online Shop Advertise
Software Inspectors
  Scan Online
  Personal (PSI)
  Network (NSI 2.0)

Solutions For
  Security Professionals
  Security Vendors

Free Solutions For
  Open Communities
  Journalists & Media

Secunia Advisories
  Search
  Historic Advisories
  Listed By Product
  Listed By Vendor
  Statistics / Graphs
  Secunia Research
  Report Vulnerability
  About Advisories

Virus Information
  Chronological List
  Last 10 Virus Alerts
  About Virus Information

Secunia Customers
  Customer Area


PHP crypt() Race Condition Vulnerability Advisory Available in Danish  Advisory Available in German 

Secunia Advisory: SA25434  
Release Date: 2007-06-01

Critical:
Less critical
Impact: Security Bypass
Where: From remote
Solution Status: Partial Fix

Software:PHP 4.4.x
PHP 5.2.x

CVE reference:CVE-2007-2844 (Secunia mirror)



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



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.

37 Related Secunia Security Advisories, displaying 10

1. PHP Multiple Vulnerabilities
2. PHP Multiple Vulnerabilities
3. PHP Multiple Vulnerabilities
4. PHP COM Objects Security Bypass
5. PHP Multiple Vulnerabilities
6. PHP "glob()" Code Execution Vulnerability
7. PHP Multiple Extensions Buffer Overflow Vulnerabilities
8. PHP Integer Overflow Vulnerability and Security Bypass
9. PHP "gdPngReadData()" Truncated PNG Data Denial of Service
10. PHP SOAP Extension HTTP Authentication Weak Nonce

Show all related advisories


Send Feedback to Secunia

If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.








Secunia PSI
Scan | Patch | Track
Free Download

Secunia Poll

Do you think it's important to read Setup/User Guides for applications for use within your network?


See Results   


Most Popular Advisories

1.
Mozilla Firefox Multiple Vulnerabilities
2.
Opera for Windows Unspecified Code Execution
3.
VLC Media Player WAV Processing Integer Overflow
4.
Mozilla Thunderbird Multiple Vulnerabilities
5.
Opera Canvas Functions Information Disclosure
6.
PCRE pcre_compile.c Buffer Overflow Vulnerability
7.
Novell eDirectory ds.dlm Module Buffer Overflow
8.
XchangeBoard "boardID" SQL Injection Vulnerability
9.
Fedora update for glib2
10.
UnixWare ReliantHA Privilege Escalation Vulnerabilities





Vulnerability Management - Terms & Conditions - Copyright 2002-2008 Secunia - Compliance - Contact Secunia