Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
In researching the title question for DBI applications, I came across this page: SQL Injection Attacks by Example.
Scroll down to Mitigation : Use bound parameters (the PREPARE statement) , where the example in Perl uses placeholders in a prepare statment, like this: and says: ...at no point do the contents of this variable have anything to do with SQL statement parsing. Quotes, semicolons, backslashes, SQL comment notation - none of this has any impact, because it's "just data". There simply is nothing to subvert, so the application is be largely immune to SQL injection attacks. ...enormous security benefits. This is probably the single most important step one can take to secure a web application. If so, I'm thinking this should just be standard practice for any and all DB transactions that pass user input to an sql statement. So the question to this post is whether the Monastery agrees with the assertions of ths website. Forget that fear of gravity, Get a little savagery in your life. In reply to Securing DB transactions with user form input by punch_card_don
|
|