P
Paul M
Hi
Anyone know of any tutorials on solving URL parameter sql injection
Thanks
Paul M
Anyone know of any tutorials on solving URL parameter sql injection
Thanks
Paul M
Stefan B Rusynko said:I gave you the code snippet you need in my response
- you need to fill in the commented parts in the IF statement
The part below goes at top of page
<%
If Not IsNumeric(Response.QueryString("ID")) Then
' this will return TRUE if the value of ID is Not numeric
' response redirect someplace else as ID in not a valid number
' you need to add the redirect code here
Else
' your DBRW or DIW code is probably here
%>
--
| Thanks Stefan
| Not trying to be a nuisance because you have been great and I am truly
| appreciative, but do you know where I can find some code that can do
this. I
| presume it would go at the top of the page?
| Best wishes
| Paul M
| | > That tutorial uses a numeric URL parameter (?ID=NN)
| > - and for what it does (a picklist of non critical info, and not of
any
| > credentials), if you validate it as number (on the page
| > receiving it) you can essentially block everything else from being
passed
| > as a URL parameter
| >
| > <%
| > If Not IsNumeric(Response.QueryString("ID")) Then
| > ' BAD
| > ' response redirect someplace else as ID in not a valid number
| > Else
| > ' GOOD
| > ' could also check the valid range of ID w/ an IF < or > here if
required
| > ' process the value passed and then the page if it matches the DB
record
| > End If
| > %>
| >
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > | > | Thanks
| > | I am using the tutorial at
| > | http://www.spiderwebwoman.com/tutorials/picklist.htm
| > | to generate a project details page, although I can change the number
in
| > the
| > | URL and recieve another recordset this is not a problem when I
input
| > | anything other than a number I get a database error. Is it possible
| > check if
| > | this system is protected against update and delete sql injections
| > | Thanks
| > | Paul M
| > | | > | > With Access
| > | > Best way is don't use URL parameters
| > | > Second best is only use numeric URL parameters (preferably only 1)
| > | > - and then server side validate the parameter is numeric and in
the
| > | > numeric range expected
| > | >
| > | > --
| > | >
| > | > _____________________________________________
| > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > "Warning - Using the F1 Key will not break anything!" (-;
| > | > To find the best Newsgroup for FrontPage support see:
| > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > _____________________________________________
| > | >
| > | >
| > | > | > | > | Hi
| > | > | Anyone know of any tutorials on solving URL parameter sql
injection
| > | > | Thanks
| > | > | Paul M
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|