Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Bugtraq
[Top] [All Lists]

PHP <= 5.2.5 Safe Mode Bypass

Subject: PHP <= 5.2.5 Safe Mode Bypass
Date: Mon, 24 Dec 2007 15:20:44 +0330
########################## WwW.BugReport.ir #########################################
#
# AmnPardaz Security Research & Penetration Testing Group
#
# Title: PHP <= 5.2.5 Safe Mode Bypass
# Vendor: http://www.php.net
# Vulnerable Function: tempnam()
# Vulnerable Version: tested on 5.2.5 , 5.2.4 (prior versions also may be affected)
# Platform : any
# Exploitation: Local
# Exploit: Available
# Fix Available: No!
###################################################################################


####################
- Description:
####################

"PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML."

####################
- Vulnerability:
####################

+--> Safe Mode Bypass
string tempnam ( string dir, string prefix )
Creates a file with a unique filename in the specified directory.
Quick review from the source shows that there is open_basedir check but not
Safe mode!
/main/php_open_temporary_file.c
See the related exploit for more details

####################
- POC
####################
http://www.bugreport.ir/?/22/exploit
Original advisory: http://www.bugreport.ir/?/22

####################
- Credit :
####################
AmnPardaz Security Research & Penetration Testing Group
Contact: admin[4t}bugreport{d0t]ir
WwW.BugReport.ir
WwW.AmnPardaz.com




<Prev in Thread] Current Thread [Next in Thread>