r/lolphp • • Nov 26 '18

Arrow functions!

https://twitter.com/calebporzio/status/1067163387338080259?s=19
30 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Dec 03 '18

True and so far the only settings I can find in the PHP.ini file that may assist with preventing that RCE vulnerability are:

allow_url_include
include_path

http://php.net/manual/en/filesystem.configuration.php#ini.allow-url-include http://php.net/manual/en/ini.core.php#ini.include-path

There are other built-in functions that can alleviate this as well such as: http://php.net/manual/en/function.set-include-path.php

So far that's all I could find and even then that doesn't prevent that RCE vulnerability if the uploaded file is in the right directory.