You are here: Re: PHP script help « PHP Programming Language « IT news, forums, messages
Re: PHP script help

Posted by SA SA on 01/15/07 20:24

I will give it a try. Basically, we have a link for each sport that
passes the variable to sports.php based on the sport the sports.php
displays news releases.

suresh

http://www.domain.org/sports.php?sport=m_football
http://www.domain.org/sports.php?sport=m_softball
http://www.domain.org/sports.php?sport=m_soccr









P Pulkkinen wrote:
> > I do not know anything about PHP but thrown into this mix. I was told
> > by my ISP that there is vulnerability in following code to allow
> > spammer load an offsite php script for mailing. The defective code is:
>
> > if (isset($HTTP_GET_VARS['sport']))
> > {
> > $sport = $HTTP_GET_VARS['sport'];
> > require ($sport.".php");
> > }
>
> $allowable_sports= array("football", "rugby", "tennis");
>
> if (isset($HTTP_GET_VARS['sport']) && in_array($HTTP_GET_VARS['sport'],
> $allowable_sports) )
> { require ($sport.".php"); }
> else
> { require ("no_sport_just_sofa.php"); }

 

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

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