Bug #73708 [NEW]: php .user.ini conf file design issue resulting in bypass
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)
- tr3jer at gmail dot com