Bug #73708 [NEW]: php .user.ini conf file design issue resulting in bypass

From: Date: Sat, 10 Dec 2016 11:50:34 +0000
Subject: Bug #73708 [NEW]: php .user.ini conf file design issue resulting in bypass
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205890@lists.php.net to get a copy of this message
From:             tr3jer at gmail dot com
Operating system: centos
PHP version:      Irrelevant
Package:          *Configuration Issues
Bug Type:         Bug
Bug description:php .user.ini conf file design issue resulting in bypass

Description:
------------
hello! php security team.I find one .user.ini vulnerabilityinfluences
all have .user.ini php versionstest verision = php5.4.user.ini Can be
configured open_basedir,so...here i use open_basedir as
exampleimage1:http://7xiw31.com1.z0.glb.clouddn.com/QQ20161210-1@2x.pngSo
that attackers can not cross this directory and read system
fileimage2:http://7xiw31.com1.z0.glb.clouddn.com/QQ20161210-0@2x.pngI
think .user.ini just The current directory takes effect,so...again
write one .user.ini And the original Do not conflict?

Test script:
---------------
We just have upload file
Permissions:image3:http://7xiw31.com1.z0.glb.clouddn.com/QQ20161210-4@2x.pngcreate
new directory and write new
.user.ini:open_basedir=/image4:http://7xiw31.com1.z0.glb.clouddn.com/QQ20161210-1@2x.pngyep!don't
need restart,just wait a few minutes,can bypass .user.ini
limit:image5:http://7xiw31.com1.z0.glb.clouddn.com/QQ20161210-3@2x.png


-- 
Edit bug report at https://bugs.php.net/bug.php?id=73708&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=73708&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=73708&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=73708&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=73708&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=73708&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=73708&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=73708&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=73708&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=73708&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=73708&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=73708&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=73708&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=73708&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73708&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=73708&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=73708&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=73708&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73708&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=73708&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=73708&r=mysqlcfg



Thread (5 messages)

« previous php.bugs (#205890) next »