You are here: Re: hack this code :) « PHP Programming Language « IT news, forums, messages
Re: hack this code :)

Posted by NoWhereMan on 09/03/06 12:15

on Sun, 3 Sep 2006 14:03:23 +0200, Janwillem Borleffs wrote:

> NoWhereMan wrote:
>> would you please help me find any security flaw in this code (if any)?
>> thank you so much
>>
>> http://paste.uni.cc/9829
>>
>
> I assume you have properly set your base dir restriction directive in your
> php.ini file to handle cases where $_REQUEST['f'] would be defined as
> '../someprivatedir/dbconnect.php'?
>
> JW

actually I can't as I don't own the webserver (and as the script is
suppsoed to be distributed), and that's why I've put these lines:

if (strpos($name, '..')!==false || strpos($name,'/')!==false)
die('Invalid file name!');

--
NoWhereMan
-- NoWhereBlog: www.nowhereland.it
-- deviantArt: http://nowhereland.deviantart.com
-- Giochi a BiteFight? http://bitefight.nowhereland.it/
-- Vagisil migliora la tua vita intima: www.vagisil.com/teencenter.shtml

 

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

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