You are here: Re: Have I created a security risk? « PHP Language « IT news, forums, messages
Re: Have I created a security risk?

Posted by Anze on 01/21/08 14:41

> link:http://www.nedkellypub.it/concerti/dati/olukev/orawo/Now I can't see
> how this benefits them, am I missing something? Have I created some
> possible way to hackers to achieve something? Is the displayed code just a
> cover for some actual php going on behind the scenes?

You are helping them to hide where the visitor came from.

My guess: at the moment someone is just testing to see if you are alert -
later on, if you do nothing, the real traffic will start to come. For
instance, your site could be used to hide the referer when doing black hat
affiliate marketing. Since the redirect comes from your page and not from
theirs nobody can track them without contacting you.

I wouldn't provide them with the service - as always, check the input and
only allow valid values. In your case this should do the trick:
header("Location: http://www.mydomain.com".
preg_replace('/[^a-z0-9_-.]/i','',$_GET['page']));

(not tested, just wrote it - you get the idea)

Best,

Anze

 

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

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