1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ rule DodgyPhp
92
92
$ iis_com = /IIS: \/\/ localhost \/ w3svc /
93
93
$ include = /include \s * \( \s * [ ^ \. ] + \. (png | jpg | gif | bmp )/ // Clever includes
94
94
$ ini_get = /ini_ (get | set | restore )\s * \( \s * [ '" ] (safe_mode | open_basedir | disable_ (function | classe )s | safe_mode_exec_dir | safe_mode_include_dir | register_globals | allow_url_include )/ nocase
95
- $ pr = /(preg_replace (_callback )? | mb_ereg_replace | preg_filter )\s * \( . + (\/ | \\ x2f )(e | \\ x65 )[ '" ] / nocase // http://php.net/manual/en/function.preg-replace.php
95
+ $ pr = /(preg_replace (_callback )? | mb_ereg_replace | preg_filter )\s * \( [ ^ ) ] * (\/ | \\ x2f )(e | \\ x65 )[ '" ] / nocase // http://php.net/manual/en/function.preg-replace.php
96
96
$ register_function = /register_ [ a - z ] + _function \s * \( \s * [ '" ] \s * (eval | assert | passthru | exec | include | system | shell_exec | ` )/ // https://github.com/nbs-system/php-malware-finder/issues/41
97
97
$ safemode_bypass = /\x00\/\.\.\/ | LD_PRELOAD /
98
98
$ shellshock = /\(\) \s * { \s * [ a - z: ] \s * ; \s * } \s * ; /
0 commit comments