Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The proper way to avoid SQL Injection attacks is NOT to simply disallow certain problematic characters, but rather to use parameterized SQL. In short, parameterized SQL prevents the database from executing raw user input as part of the SQL command this prevents user input like "drop table" from being executed. Just escaping characters does not stop all forms of SQL injection attacks and excluding certain words such as "Drop" does not work in all cases; there can be certain fields where "Drop" is a perfectly valid part of the data entry. </p> <p>You can find some good articles on the subject of paramaterized SQL here:</p> <p><a href="https://blog.codinghorror.com/give-me-parameterized-sql-or-give-me-death/" rel="nofollow noreferrer">https://blog.codinghorror.com/give-me-parameterized-sql-or-give-me-death/</a></p> <p><a href="http://www.codeproject.com/KB/database/ParameterizingAdHocSQL.aspx" rel="nofollow noreferrer">http://www.codeproject.com/KB/database/ParameterizingAdHocSQL.aspx</a></p> <p>Now that you mentioned that you are working with ASP.net I can give you some links that deal specifically with SQL Injection in ASP.</p> <p><a href="https://dzone.com/articles/aspnet-preventing-sql-injectio" rel="nofollow noreferrer">https://dzone.com/articles/aspnet-preventing-sql-injectio</a> <a href="http://www.codeproject.com/KB/aspnet/SQL_Injection_.aspx?msg=3209511" rel="nofollow noreferrer">http://www.codeproject.com/KB/aspnet/SQL_Injection_.aspx?msg=3209511</a></p> <p>Here is a more general article on making your ASP more secure: <a href="http://www.codeproject.com/KB/web-security/Securing_ASP_NET_Apps.aspx" rel="nofollow noreferrer">http://www.codeproject.com/KB/web-security/Securing_ASP_NET_Apps.aspx</a></p> <p>And, of course the MSDN article on SQL injection: <a href="http://msdn.microsoft.com/en-us/library/ms998271.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms998271.aspx</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload