SecurityReason.com - Our Reason is

Security

Register | Forget Password | Login
SecurityReason
WLB
Services
RSS
Corporate
Note

If you have found a vulnerability, please send to our SecurityAlert Database :
secalert()securityreason()com

Also if you have new ( 0-day ) exploit, please send to our ExploitAlert Archive :
exploit()securityreason()com

Home arrow SecurityAlert Database

Arrow  Topic :

PHP session.save_path open_basedir Bypass Vulnerability


Arrow  SecurityAlert : 2507
Arrow  CVE : GENERIC-MAP-NOMATCH
Arrow  SecurityRisk : Medium  Security Risk Medium  (About)
Arrow  Remote Exploit : No
Arrow  Local Exploit : Yes
Arrow  Exploit Available : Yes
Arrow  Credit : Stefan Esser
Arrow  Published : 01.04.2007

Arrow  Affected Software : Affected are PHP 4 < 4.4.5 and PHP 5 < 5.2.1



Arrow  Advisory Content :  

When an empty session save path is supplied the files session storage
modules falls back to the path specified by the TMPDIR environment
variable. Unfortunately this magic fallback happens after the open_basedir
check and can therefore be used to bypass it.

Detailed information

The summary and the POC say it all.
Proof of concept, exploit or instructions to reproduce

To check this problem try the following code, when open_basedir is set.

<?php
ini_set("session.save_path", "/sessions/user2/");
putenv("TMPDIR=/sessions/user2/");
ini_set("session.save_path", "");
@session_start();
?>

The first ini_set() will error out, because the path is in violation with
the open_basedir. The second ini_set() will succeed and the session file
will be created in the path specified by TMPDIR.
Notes

We recommend to never ever rely on open_basedir. We consider the
open_basedir restrictions just a nice way to decrease the impact of include
vulnerabilities.

The MOPB should have made clear by now, that the moment an attacker is able
to run PHP code, PHP has more than enough flaws for him to bypass all
restrictions enforced by the PHP interpreter.





Arrow  Feedback :

If you have additional information or notice any errors regarding this security advisory, please use contact form or email us at info()securityreason()com.
Alert

libc/fnmatch(3) DoS

Security Risk Medium- 2011-05-13

Allow attacker to denial of service apache 2.2.17 server

Apache RSS Apache Alert

» Apache HTTP Server Denial
   of Service Vulnerability

» Multiple Vendors
   libc/fnmatch(3) DoS (incl
   apache poc)

» Apache Continuum
   cross-site scripting
   vulnerability

» Apache Tomcat DoS
   Vulnerability

PHP RSS PHP Alert

» PHP Hashtables Denial of
   Service

» PHP 5.3.6 multiple null
   pointer dereference

» PHP 5.3.6 ZipArchive
   invalid use glob(3)

» libzip 0.9.3
   _zip_name_locate NULL
   Pointer Dereference (incl
   PHP 5.3.5)

ADT

Protect your family and valuables with Home Security Systems

Copyright © SecurityReason.com. All Rights Reserved.