Jump to content

filter sql injection


andz

Recommended Posts

i've got a ready-made script that's uses many POST and GET to process request.

 

I discovered an SQL injection using url. it successully executed this code and return the mysql version which is 4.1.22

 

here's the code: http://example.com/process.php?id=123456 union all select 1, @@version/*

 

is there a way to filter the POST and GET to prevent this attack?

 

 

Link to comment
https://forums.phpfreaks.com/topic/159555-filter-sql-injection/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.