Link Details

Link 31611 thumbnail
User 225135 avatar

By skoop
via thespanner.co.uk
Published: Jul 24 2007 / 07:18

I’ve been developing a system for a while now and it’s currently in the testing stage, I noticed that a SQL injection vulnerability had crept in. I was quite surprised because my filtering methods are generally quite good and I’ve not seen any SQL errors in the logs for quite some time. Luckly the site wasn’t live so I had plenty of time to see what was going on.
  • 10
  • 2
  • 1312
  • 376

Comments

Add your comment
User 227434 avatar

jsmith8858 replied ago:

0 votes Vote down Vote up Reply

Escaping data is never the answer against SQL injection. Parameterized commands and/or stored procedures are. End of story.

User 182143 avatar

mezmo replied ago:

0 votes Vote down Vote up Reply

I agree wholeheartedly with the statement that parameterized queries should always be used. But as has been suggested to me in several security seminars I've been to in the last couple of years, there are still ways of futzing with the inputs that could compromise your data even with the use of parameterized queries, so even using them it would still be considered a best practice to escape and sanity check your data as well.

User 202053 avatar

jamesstaylor replied ago:

0 votes Vote down Vote up Reply

Amen!

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (10)



Voters Against This Link (2)