Forum Moderators: open
Normally the URL would be http://www.example.com/advertiserbytown.asp?ID=123 or http://www.example.com/somestateresults.asp?area=somewhere&ID=123. The URL I found was http://www.example.com/advertiserbytown.asp?ID=123&h=189&w=250&sz=18&hl=en&start=3
I can't find the site that has that extended link.
My question is: does this constitute SQL injection, and should I be concerned?
Not really. It seems that these are coming from somewhere else, not sure from where, though. It doesn't appear to be malicious, though.
In your code, your page expects a numeric value for ID, as in ...?ID=123. Be sure to code your page so it checks to make sure the incoming value of ID IS numeric. If it's not numeric, do nothing, or send an error page, but do not use the invalid value to construct a database query.