<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SQL Injection Defense</title><link>http://asp.net</link><pubDate>Fri, 22 Oct 2010 06:10:22 GMT</pubDate><generator>umbraco</generator><description>Comments for SQL Injection Defense</description><language>en</language><atom:link href="http://asp.net/rss/comments/33884" rel="self" type="application/rss+xml" /><item><title>Comment Posted by Hornwood509</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Fri, 30 Oct 2009 11:22:31 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007862</guid><description><![CDATA[ <p>Thanks Joe!</p><p>Knew Injection attacks were supposed to be easy, but THIS easy?!?!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Hornwood509.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mhpc911</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Sun, 01 Nov 2009 13:18:01 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007863</guid><description><![CDATA[ <p>Thank you Joe.  I appreciate the information very much.  Keep up the good work.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/mhpc911.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by arlen_bs</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Mon, 02 Nov 2009 03:51:50 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007864</guid><description><![CDATA[ <p>thxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</p><p>it&#39;s gr8888888888888888888888888888888888888888888888888888</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/arlen_bs.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by haithemara</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Wed, 04 Nov 2009 21:16:35 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007865</guid><description><![CDATA[ <p>good video Joe.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/haithemara.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by grettir</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Wed, 04 Nov 2009 22:35:12 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007866</guid><description><![CDATA[ <p>Thanks Joe, good video.</p><p></p><p>Parametrization of the sql queries is a popular way to reduce threat of sql injections. Sometimes RegEx functions are used along with it to fortify the defence.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/grettir.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by cruncher06</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Thu, 05 Nov 2009 20:00:28 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007867</guid><description><![CDATA[ <p>Excellent information Joe; I have wanted more information in how to protect my site against security threats. Looking forward to the sample code as well as more security videos.</p><p></p><p>Thanks.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/cruncher06.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by geoffHome</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Mon, 09 Nov 2009 05:15:35 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007868</guid><description><![CDATA[ <p>Excellent video.  So glad I&#39;m moving to LINQ!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/geoffHome.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ramaraju_r</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Mon, 09 Nov 2009 18:59:18 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007869</guid><description><![CDATA[ <p>Thanks!! it&#39;s very helpful. where can I get the source code?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/ramaraju_r.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by villamouri</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Thu, 12 Nov 2009 10:27:51 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007870</guid><description><![CDATA[ <p>Good tips, thanks.</p><p>However,it is my understanding that putting all input box text through </p><p>string.replace(&quot;&#39;&quot;,&quot;&#39;&#39;&quot;)  will stop every type of sql attack on MS Sql server. This stops all attempts to terminate the quotes and input any extra commands.</p><p>If this is not the case, can anyone give me an example where it would not work? I would like to know if there are any examples, as this method is what I have used for years.</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/villamouri.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by prashant_victory@hotmail.com</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Sat, 12 Dec 2009 12:53:48 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007871</guid><description><![CDATA[ <p>where I can get code of this video (in c#) ???</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/prashant_victory@hotmail.com.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by gromikov</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Mon, 15 Mar 2010 13:54:13 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007872</guid><description><![CDATA[ <p>Excellent guide. Already moving to LINQ!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/gromikov.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jpete17</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Mon, 15 Mar 2010 20:32:53 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007873</guid><description><![CDATA[ <p>source code?  Great video</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/jpete17.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by hab0373</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Mon, 29 Mar 2010 16:03:07 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007874</guid><description><![CDATA[ <p>With LINQ there is no SQL Injection Vulnerability?, So I dont have to write stored procedures?</p><p></p><p>Can You Confirm this??</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/hab0373.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by iamshotgun</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Sat, 03 Apr 2010 21:04:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007875</guid><description><![CDATA[ <p>...always use parameters or pack it with stored procedures...</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/iamshotgun.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by iamshotgun</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Sat, 03 Apr 2010 21:06:42 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007876</guid><description><![CDATA[ <p>...i didnt know this page refreshes after SUBMIT iwas halfway through the video and boooom video starts in beginning...arrrgghh...</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/iamshotgun.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jrbarnett</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Sun, 11 Apr 2010 16:06:33 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007877</guid><description><![CDATA[ <p>For a future edition - best practise dictates your application stores any user login credentials (including but not limited to passwords, memorable information/password recovery tools) in an encrypted form. The easiest way is to use the HASHBYTES sql server function in 2005/2008 when running insert or update operations against it, and compare against the same algorithm; this way if an attacker is able to select the password field from a table they don&#39;t get the ability to login to your app as an end user.</p><p>Rule of thumb: if your app has a &quot;Tell me what my password is&quot; function, then it needs to be rewritten as a &quot;Reset forgotten password&quot; - in a well written app, even the system administrator/DBA should not have access to clear text credentials.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/jrbarnett.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by nirman.doshi</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Wed, 02 Jun 2010 05:50:36 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000008966</guid><description><![CDATA[ <p>Complete explanation of SQL Injection.. and quite elaborated examples. By looking at this ppl would come to about all different potential SQL injection attacks, and the ways to protect applications against them. Thanks for sharing.. </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/nirman.doshi.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tugberk_ugurlu_</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Mon, 14 Jun 2010 06:52:13 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009094</guid><description><![CDATA[ <p>Stored Procedure are perfect against those injections !</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/tugberk_ugurlu_.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by pat2099</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Fri, 09 Jul 2010 18:37:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009392</guid><description><![CDATA[ <p>Joe,</p><p>Great job! Where is the Source Code?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/pat2099.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by maximus392</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Tue, 13 Jul 2010 07:57:32 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009427</guid><description><![CDATA[ <p>great video.. Very informative stuff..</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/maximus392.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by DaveCS</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Thu, 29 Jul 2010 12:24:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009674</guid><description><![CDATA[ <p>Great video. I have know about this for many years but must note to newer users that some &#39;instant asp website&#39; type software available for purchase uses the very dangerous string building SQL statments.</p><p></p><p>There was one company that overlooked the SQL injection issue and all of the classic asp and asp.net automated database input code was open to vulnerabilities for many years until the application was finally patched.  Microsoft IDE products are safe if you use these guidelines but I would be vary wary of auto-code generators. The SQL statements generated by these tools should be scrutinized with vigor.</p><p></p><p>I am not going to name any of these products but quick google search of &quot;asp.net code generator&quot; will provide a lengthy list.  Please inspect and verify that your SQL statements are safe if you decide to use one of these products. </p><p></p><p> I myself have been caught off guard with one of these products a few years ago by not being diligent in regard to outputted code.  </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/DaveCS.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by FabinhoBR</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Mon, 02 Aug 2010 15:30:27 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009722</guid><description><![CDATA[ <p>hey joe,</p><p></p><p>nice video. thanks a lot!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/FabinhoBR.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by practicalguy</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Mon, 23 Aug 2010 18:30:12 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009952</guid><description><![CDATA[ <p>villamouri : On November 12, 2009 10:27 AM said:  </p><p>Good tips, thanks.</p><p></p><p>However,it is my understanding that putting all input box text through </p><p></p><p>string.replace(&quot;&#39;&quot;,&quot;&#39;&#39;&quot;) will stop every type of sql attack on MS Sql server. This stops all attempts to terminate the quotes and input any extra commands.</p><p></p><p>If this is not the case, can anyone give me an example where it would not work? I would like to know if there are any examples, as this method is what I have used for years.</p><p></p><p>----------</p><p>Yes, I have also used this method for years. If you are using Microsoft products for the front end also remove the escape character like this:</p><p>string.replace(&quot;\&quot;,&quot;&quot;)</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/practicalguy.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by capedcoder</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Wed, 22 Sep 2010 09:25:53 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010332</guid><description><![CDATA[ <p>practicalguy:</p><p></p><p>I concur.  I&#39;ve been using the &quot;replace&quot; method since my first SQL development in the 90s.  I&#39;d like to say it is because I&#39;m a security guru, but it&#39;s not.  My first application required lookup by name and there are many names (O&#39;Brien for example) that would error in my initial testing.  When resolving that problem, the potential for this type of attack was readily apparent.  I have always coded to text values and always used the replace function.... name matter the type of input.  I also have each input restricted as to character length and, in some cases, numeric or alpha.</p><p></p><p>CC</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/capedcoder.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by D J</title><link>http://asp.net/web-forms/videos/authentication/sql-injection-defense</link><pubDate>Fri, 22 Oct 2010 06:10:22 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010710</guid><description><![CDATA[ <p>Hey joe,</p><p></p><p>Nice one its good enough.</p><p></p><p>hey Capedcoder,</p><p></p><p>Nice reply for replace problem.</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/D%20J.jpg?forceidenticon=false&amp;dt=635072878800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>