You are here: Re: [PHP] prevent user from getting scripts outside the web folder « PHP « IT news, forums, messages
Re: [PHP] prevent user from getting scripts outside the web folder

Posted by Jochem Maas on 10/14/05 00:17

Graham Anderson wrote:
> How does a hacker get access to your scripts located outside the web
> folder?
> I asked a friend to hack my php script within the web folder...
>

er. why don't you *#@%*&#(%*&!@#^%(_*^#()% % er ask him.

>
> all of my crucial function were called by:
> require_once("/home/siren/includes/fonovisa.inc");
> the 'encrypt' functions are MCRYPT_RIJNDAEL_256
>
> He was able to get access to the 'fonovisa.inc' php script [outside
> the web folder] and all the stuff inside
> Based on my current knowledge, my security breaches are probably big
> enough to drive a truck through :(
>
>
> how can I prevent this ?

santize your input - make sure your webserver is secure.
don't give php files a .inc extension if you don't know what your doing.

your probably doing the equivelant of (although some what less obviously):

<?

echo get_file_contents( $_GET['anyfileyoulike'] );

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация