Added "detection" of open_basedir and php:// protocol:
authorRoland Häder <roland@mxchange.org>
Tue, 30 Aug 2016 07:04:17 +0000 (09:04 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 30 Aug 2016 07:04:17 +0000 (09:04 +0200)
- common way to inject php.ini settings which overrides them and then try to
  inject external code (remote inclusion)
- don't do such things as http://host.example/script.php?bla=php://input

Signed-off-by: Roland Häder <roland@mxchange.org>
libs/lib_detector.php

index e4d27c4fec68efccb88163b9a5dedf031852adff..b7b50e050ffc5e995c61fb7eda0f0ac78e4a35c3 100644 (file)
@@ -93,6 +93,7 @@ function initCrackerTrackerArrays () {
 
                // php.ini settings
                'allow_url_fopen', 'allow_url_include', 'auto_prepend_file', 'disable_functions', 'safe_mode',
+               'open_basedir',
 
                // PHP commands/scripts
                'fopen', 'fwrite', 'phpinfo()', '\<?', '?\>', 'base64_decode', 'file_put_contents',
@@ -106,7 +107,7 @@ function initCrackerTrackerArrays () {
                '_phplib', '__callbackparam',
 
                // Generic remote inclusion
-               '=http://', '=https://',
+               '=http://', '=https://', '=php://',
                'path=', 'sql=',
                '=%7BQUOT%7D', '=%5C', '=%22http','=%22ftp','=%22file','=%27http','=%27ftp',
                '=%27file',