|
PHP "unserialize()" and "str_replace()" Vulnerabilities
|
|
Secunia Advisory:
|
SA24630
|
|
|
Release Date:
|
2007-03-23
|
|
Last Update:
|
2007-05-04
|
|
Popularity:
|
10,972 views
|
|
|
Critical:
|
 Less critical
|
|
Impact:
|
Unknown Exposure of sensitive information
|
|
Where:
|
From remote
|
|
Solution Status:
|
Partial Fix
|
|
| Software: | PHP 5.2.x
|
|
|
Subscribe:
|
Instant alerts on relevant vulnerabilities
|
|
| CVE reference: | CVE-2007-1649 CVE-2007-1885 CVE-2007-1886
|
|
Description: Stefan Esser has reported some vulnerabilities in PHP. One has unknown impact, while the other can be exploited by malicious people to disclose potentially sensitive information.
1) An error exists within the "unserialize()" function when unserialising specially escaped S: data types. This can be exploited to e.g. disclose certain parts of the heap memory.
2) An off-by-one error exists in the "str_replace()" function when replacing one character with another character.
The vulnerabilities are reported in version 5.2.1.
Solution: Update to version 5.2.2 to fix vulnerability #1. Do not use the "str_replace()" function on untrusted data.
Provided and/or discovered by: Stefan Esser
Changelog: 2007-04-02: Added CVE reference. Added vulnerability #2. Updated "Title".
2007-04-12: Added CVE reference.
2007-05-04: Updated "Solution" section to reflect fixes in a new version.
Original Advisory: PHP:
http://www.php.net/releases/5_2_2.php
MOPB:
1) http://www.php-security.org/MOPB/MOPB-29-2007.html
2) http://www.php-security.org/MOPB/MOPB-39-2007.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.
|