Secunia Logo
Netsikker nu! 2008
 
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.
  
Latest Advisories

Today
New advisories: 8
New vulnerabilities: 27
Updated advisories: 11

Highly // 106 views
Opera Multiple Vulnerabilities
Moderately // 86 views
Red Hat update for condor
Moderately // 85 views
Condor Multiple Vulnerabilities
Moderately // 104 views
Gentoo update for wordnet
Moderately // 122 views
Red Hat update for kernel

7th Oct, 2008
New advisories: 19
New vulnerabilities: 68
Updated advisories: 61

Moderately // 476 views
Debian update for php5
Moderately // 372 views
Atarone CMS Multiple Vulnerabilities

Solutions | More...  


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.

Most Popular - 3 Hours

1. Adobe Flash Player "Clickjacking" Security Bypass Vulnerability // 126 views
2. Red Hat update for kernel // 99 views
3. Gentoo update for wordnet // 89 views
4. Red Hat update for condor // 74 views
5. Condor Multiple Vulnerabilities // 71 views
6. Hero DVD Player M3U Processing Buffer Overflow Vulnerability // 69 views
7. Debian update for php5 // 55 views
8. Zeroboard Multiple Vulnerabilities // 48 views
9. Opera Multiple Vulnerabilities // 45 views
10. Zeroboard Two Vulnerabilities // 40 views