Discussion: SQL Injection
Afficher un message
Vieux 05/02/2008, 12h11   #2
Erwin Moller
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: SQL Injection

FDM+ wrote:
> Hi folks,


Hi,

> my website seems to be the preferred target for Sql Injection.
> http://mywebsite/index.php/Cariche-s...Fgosa%2Fyiw%2F
>
> Is there a way to configure apache to redirect elsewhere this kind of
> traffic? I mean redirecting the url while the visitor type an url like this
> one (or above one):
>
> http://mywebsite.tld/path/HTTP://SOMETHING-LIKETHIS
>
> thus checking the double http:// and redirect this traffic to another site.
>


Yes, you can use a module for url rewriting (mod_rewrite):
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

But that is fixing your problem in the wrong way.

But I must urge you to fix your application.
If SQL injection is possible, fix the scripts.
SQL injection vunerability means your receiving scripts are written by
an amateur, since it is easily countered.
If you are using a third party package (joomla?), get the latest
version. Maybe they fixed it.

Regards,
Erwin Moller

> Thank you
> F
>

  Réponse avec citation
 
Page generated in 0,05115 seconds with 9 queries