Re: Is this code better than my earlier code, security wise
Recently, Bob Barrows [MVP] <reb01501@NOyah oo.SPAMcomposte d:
I've followed this thread with interest, and even looked into the
references that you cited.
Having been involved with database design for the last 3+ decades, I think
that much of what is said is just a important for "closed" systems that
have no opportunity to be hacked.
What I'm new to is integrating database functions with ASP, so my security
concerns are mostly in the area of unwanted access to server-side code by
client-side apps or actions.
Neil
Recently, Bob Barrows [MVP] <reb01501@NOyah oo.SPAMcomposte d:
Neil Gould wrote:
Absolutely. I believe I have recommended this several times in this
thread.
>
However, this should only be part of your defensive strategy. The most
airtight defense to sql injection is to never give it a chance to
occur. Since sql injection depends on the use of dynamic sql, then
logically, sql injection attempts can never work if you never use
dynamic sql. Of course, the alternative it to use parameters.
>
Read my other posts in this thread.
>
>Wouldn't it be good practice to parse & qualify form submissions
>before executing any SQL statements? That way, even legitimate entry
>errors could be trapped and dealt with appropriately.
>>
>before executing any SQL statements? That way, even legitimate entry
>errors could be trapped and dealt with appropriately.
>>
thread.
>
However, this should only be part of your defensive strategy. The most
airtight defense to sql injection is to never give it a chance to
occur. Since sql injection depends on the use of dynamic sql, then
logically, sql injection attempts can never work if you never use
dynamic sql. Of course, the alternative it to use parameters.
>
Read my other posts in this thread.
>
references that you cited.
Having been involved with database design for the last 3+ decades, I think
that much of what is said is just a important for "closed" systems that
have no opportunity to be hacked.
What I'm new to is integrating database functions with ASP, so my security
concerns are mostly in the area of unwanted access to server-side code by
client-side apps or actions.
Neil
Comment