<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>justinclarke.com</title>
      <link>http://www.justinclarke.com/</link>
      <description>Justin Clarke&apos;s musings about security. Email me at: justin (at) justinclarke (dot) com</description>
      <language>en</language>
      <copyright>Copyright 2009</copyright>
      <lastBuildDate>Tue, 27 Oct 2009 22:32:21 +0000</lastBuildDate>
      <generator>http://www.sixapart.com/movabletype/</generator>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs> 

            <item>
         <title>Another Couple of Great Reviews of SQL Injection Attacks and Defense</title>
         <description><![CDATA[<p>
A couple of good reviews of SQL Injection Attacks and Defense have been posted to Amazon recently (both 5 stars). Firstly we have a review from <a href="http://carnal0wnage.blogspot.com/">Chris Gates</a> which gives a good <a href="http://www.amazon.com/review/R1AK1QSRZXF2GW/ref=cm_cr_rdp_perm">balanced review</a> of the book and points out some things he'd have liked to see. I agree with all of the points, and if we ever get a chance to do a second edition, we can add those on the todo list.
</p>
<p>
Second and most recent was a review from <a href="http://taosecurity.blogspot.com/">Richard Bejtlich</a> who was also <a href="http://www.amazon.com/review/R5PKYQ3U3UG8V/ref=cm_cr_rdp_perm">very positive about the book</a> and mentioned it may be in the running for his "best book of 2009"!.
</p>]]></description>
         <link>http://www.justinclarke.com/archives/2009/10/another_couple.html</link>
         <guid>http://www.justinclarke.com/archives/2009/10/another_couple.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Book Stuff</category>
        
        
         <pubDate>Tue, 27 Oct 2009 22:32:21 +0000</pubDate>
      </item>
            <item>
         <title>Review of SQL Injection Attacks and Defense on Help Net Security</title>
         <description><![CDATA[<p>
Just noticed a very complimentary review of <a href="http://www.amazon.com/exec/obidos/ASIN/1597494240/justinclarkec-20">SQL Injection Attack and Defense</a> at <a href="http://www.net-security.org/review.php?id=215">Help Net Security</a> this morning. Will have to remember to pass a link to this onto the author team :-)
</p>

<p>
On a related note, I met Mirko from Help Net Security at BruCon in Brussels, but didn't manage to get an interview sorted out. There is a link to a previous email interview we did from the book review above... 
</p>]]></description>
         <link>http://www.justinclarke.com/archives/2009/09/review_of_sql_i.html</link>
         <guid>http://www.justinclarke.com/archives/2009/09/review_of_sql_i.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Book Stuff</category>
        
        
         <pubDate>Wed, 23 Sep 2009 10:25:23 +0000</pubDate>
      </item>
            <item>
         <title>SQL Injection used in Heartland, 7-Eleven and Hannaford Breaches</title>
         <description><![CDATA[<p><em>This is a repost from the original on the <a href="http://www.gdssecurity.com/l/b/2009/08/19/sql-injection-used-in-heartland-7-eleven-and-hannaford-breaches/">GDS Security Blog</a></em></p>
<p>Having recently seen our book <a href="http://www.elsevierdirect.com/product.jsp?isbn=9781597494243">SQL Injection Attacks and Defense</a> come out, it is very timely indeed to see in the news of the recent <a href="http://voices.washingtonpost.com/securityfix/heartlandIndictment.pdf">indictment of Albert Gonzalez</a> that SQL Injection played a key part in the Heartland Payment Systems, 7-Eleven, and Hannaford Brothers breaches, as well as for two other unnamed victim companies.</p>
<p>
So how can SQL Injection, which is an application level problem, be used as a vector for attacking an organization? In a number of ways.  SQL Injection gives an attacker the ability to interact with the database, and therefore if something is possible on the database server it may well be possible through SQL Injection. Modern database systems such as Oracle, SQL Server and others provide a rich variety of functionality for their users - all too often though, some of this functionality can be abused by malicious individuals.
</p><p>
Making some assumptions, its likely that something like the following occurred:
</p>
<ol>
<li>It was possible to interact with the underlying operating system in some way using SQL Injection. This could have been through the ability to execute operating system commands (such as through the well known <em>xp cmdshell</em> stored procedure on Microsoft SQL Server), or through the ability to stage content to the database server (or filesystem) and then have it compiled to executable content.</li>
<li>With the ability to execute content at the operating system layer, access was consolidated by providing some form of alternative control channel or remote access to the database server.</li>
<li>With consolidated access to the database server, the attacker uses the database server as a foothold to go further into the organization.</li>
</ol>
<p>
These types of hybrid attacks where one type of attack is dovetailed or launched over another are becoming increasingly common. Another SQL Injection hybrid attack of recent note was the <a href="http://www.computerworld.com.au/article/202731/mass_hack_infects_tens_thousands_sites">SQL Injection mass attacks</a> that started in early 2008. These used SQL Injection in another way - to inject links to JavaScript malware into thousands of unsuspecting vulnerable sites. It just goes to prove that even if a vulnerability is over 10 years old, it still has some new tricks to be seen.
</p>]]></description>
         <link>http://www.justinclarke.com/archives/2009/09/sql_injection_u.html</link>
         <guid>http://www.justinclarke.com/archives/2009/09/sql_injection_u.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Book Stuff</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">sql injection</category>
        
         <pubDate>Tue, 01 Sep 2009 21:17:32 +0000</pubDate>
      </item>
            <item>
         <title>SQL Injection Attacks and Defense</title>
         <description><![CDATA[<p>
I now realise that I last posted on the topic of a forthcoming book in October last year. Well, the book has now gone to production and should be hitting the shelves in May of 2009. For those of you who haven't been denial-of-serviced with my LinkedIn status updates on the progress of the book, its called <a href="http://www.amazon.com/Injection-Attacks-Defense-Justin-Clarke/dp/1597494240/ref=sr_1_1?ie=UTF8&s=books&qid=1235513245&sr=8-1">"SQL Injection Attacks and Defense"</a>, from Syngress. 
</p>
<p>
I'm very happy with the great team of folks I managed to pull together for the book. The author list is as follows (in alphabetical order):
</p>
 <ul>
<li>Justin Clarke - i.e. me</li>
<li>Dave Hartley - author of <a href="http://www.northern-monkee.co.uk/projects/bobcat/bobcat.html">Bobcat</a></li>
<li>Joe Hemler - colleague and fellow contributing author to <a href="http://oreilly.com/catalog/9780596007942/">Network Security Tools</a></li>
<li>Alexander Kornbrust - CEO of <a href="http://www.red-database-security.com/">Red Database Security</a> and Oracle security guru with hundreds of Oracle bugs to his name</li>
<li>Rodrigo Marcos - author of <a href="http://www.theartoffuzzing.com/">TAOF</a></li>
<li>Haroon Meer - Technical Director at <a href="http://www.sensepost.com">Sensepost</a>, and well known speaker and researcher</li>
<li>Gary Oleary-Steele - author of <a href="http://www.packetstormsecurity.org/UNIX/scanners/automagic.zip">Automagic SQL Injector</a></li>
<li>Alberto Revelli - author of <a href="http://sqlninja.sourceforge.net/">sqlninja</a></li>
<li>Marco Slaviero - primary author of <a href="http://www.sensepost.com/research/squeeza/">Squeeza</a></li>
<li>Dafydd Stuttard - AKA Portswigger, author of <a href="http://portswigger.net/">Burp Suite</a> and the <a href="http://portswigger.net/wahh/">Web Application Hackers Handbook</a></li>
</ul>
<p>
Hopefully we'll be able to see the proofs in the next couple of weeks, and see what the production folks have done with the 520-odd pages of code-heavy goodness we sent them :-)
</p>


]]></description>
         <link>http://www.justinclarke.com/archives/2009/02/sql_injection_a.html</link>
         <guid>http://www.justinclarke.com/archives/2009/02/sql_injection_a.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Book Stuff</category>
        
        
         <pubDate>Tue, 24 Feb 2009 22:15:54 +0000</pubDate>
      </item>
            <item>
         <title>Upcoming speaking bookings</title>
         <description><![CDATA[<p>Quick note - I'm currently confirmed for the following speaking engagements. If anyone is attending any of these and wants to catch up, drop me an email.</p>
<ul>
<li><a href="http://www.nlondon.bcs.org/">British Computer Society, London, 22 October 2008</a></li>
<li><a href="http://www.isacauae.org/isafe2008/isafe2008.aspx">iSAFE conference, Dubai, 29-30 October 2008</a></li>
<li><a href="http://www.owasp.org/index.php/London">OWASP London Chapter, London, 4 December 2008</a></li>
<li><a href="http://www.isaca-london.org/">ISACA London Chapter, London, June 2009</a></li>
</ul>]]></description>
         <link>http://www.justinclarke.com/archives/2008/10/upcoming_speaki.html</link>
         <guid>http://www.justinclarke.com/archives/2008/10/upcoming_speaki.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Speaking</category>
        
        
         <pubDate>Sun, 19 Oct 2008 00:30:29 +0000</pubDate>
      </item>
            <item>
         <title>Another forthcoming book</title>
         <description><![CDATA[<p>
Quick announcement - looks like I'll have another forthcoming book coming out early next year - I have the contract from Syngress sitting on my dressing table right now.
</p>

<p>
More details to come (like what the book is on, who's involved in the project etc) will be forthcoming early next month as I have to get the full book outline completed first.  What I will tell you all is it's a single topic book, is going to be very technical, and I have some great contributing authors lined up for it :-)
</p>]]></description>
         <link>http://www.justinclarke.com/archives/2008/10/another_forthco.html</link>
         <guid>http://www.justinclarke.com/archives/2008/10/another_forthco.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Book Stuff</category>
        
        
         <pubDate>Sun, 19 Oct 2008 00:25:21 +0000</pubDate>
      </item>
            <item>
         <title>Blackhat followup</title>
         <description><![CDATA[<p>Random followup - I found a photo of myself taken while I was onstage in Vegas (this is from the Armorize blog I think?).  I find it amusing I can almost read my t-shirt - "I am Jack's Overwritten Stack Pointer...".  That one is from Defcon 9 or 10 I think :-)</p>
<p><img src="/images/IMG_2214_filtered_cropped_WB_730.png" width="365" height="321" alt="Justin on Stage" /></p>]]></description>
         <link>http://www.justinclarke.com/archives/2008/10/blackhat_follow.html</link>
         <guid>http://www.justinclarke.com/archives/2008/10/blackhat_follow.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Speaking</category>
        
        
         <pubDate>Sun, 19 Oct 2008 00:16:22 +0000</pubDate>
      </item>
            <item>
         <title><![CDATA[The E&amp;Y Alumni Blackhat?]]></title>
         <description><![CDATA[<p>As some of you may be aware, I used to work for the Ernst &amp; Young Advanced Security Center in New York (and in Houston before that). Having a quick look at the speakers list for Blackhat in Las Vegas as they are confirmed it amused me that so many of the old E&amp;Y ASC crew are represented in the speakers list:</p>
<ul>
<li><a href="http://www.blackhat.com/html/bh-usa-08/bh-usa-08-speakers.html#Dhanjani">Nitesh Dhanjani</a> (although I don't think you could call Nitesh an alumni anymore... <a href="http://www.dhanjani.com/">here is a link to his blog</a></li>
<li><a href="http://www.blackhat.com/html/bh-usa-08/bh-usa-08-speakers.html#Holyfield">Brian Holyfield</a>, who is also at Gotham Digital Science</li>
<li><a href="http://www.blackhat.com/html/bh-usa-08/bh-usa-08-speakers.html#McFeters">Nate McFeters</a> - you can <a href="http://blogs.zdnet.com/security/">find his blog here</a></li>
<li><a href="http://www.blackhat.com/html/bh-usa-08/bh-usa-08-speakers.html#Rios">Billy Rios</a> - his blog is <a href="http://xs-sniper.com/blog/">here</a></li>
<li><a href="http://www.blackhat.com/html/bh-usa-08/bh-usa-08-speakers.html#Stadmeyer">Kevin Stadmeyer</a></li>
<li>And of course, <a href="http://www.blackhat.com/html/bh-usa-08/bh-usa-08-speakers.html#Clarke">me</a></li>
</ul>]]></description>
         <link>http://www.justinclarke.com/archives/2008/05/the_ey_alumni_b.html</link>
         <guid>http://www.justinclarke.com/archives/2008/05/the_ey_alumni_b.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Speaking</category>
        
        
         <pubDate>Wed, 21 May 2008 16:55:03 +0000</pubDate>
      </item>
            <item>
         <title>Still alive and kicking...</title>
         <description><![CDATA[<p>I got an email this morning (and a comment on an IM conversation a week ago) that has continued to remind me that I've been neglecting this blog. So I thought I'd pen a quick update to let everyone know whats going on and coming up.</p>

<p>
First of all, I got my turbo talk to Blackhat USA in Las Vegas accepted, so I'll be speaking there again for the first time since 2004. The paper is called <a href="http://www.blackhat.com/html/bh-usa-08/bh-usa-08-speakers.html#Clarke">"SQL Injection Worms for Fun and Profit"</a>, and appears to be even more timely than I expected when submitting it considering what is still <a href="http://isc.sans.org/diary.html?storyid=4294">an</a> <a href="http://securitylabs.websense.com/content/Alerts/3070.aspx">ongoing</a> <a href="http://www.shadowserver.org/wiki/pmwiki.php?n=Calendar.20080424">problem</a>. I'll be in Vegas for both Blackhat and Defcon if anyone wants to plan a catch up. 
</p>
<p>
On other news, I've made little progress on rewriting SQLBrute in .NET due to a lack of time. I am, however, going to release SQLBrute 1.1 in Python in the not too distant future - I'm adding Sybase support, and cleaning up a few of the routines. Also, check out the port of Microsoft's AntiXSS library to Java - you can check it out on the <a href="http://www.gdssecurity.com/l/t.php">GDS Tools page</a>.</p>

<p>
Thats all for now - more news and happenings soon!
</p>]]></description>
         <link>http://www.justinclarke.com/archives/2008/05/still_alive_and.html</link>
         <guid>http://www.justinclarke.com/archives/2008/05/still_alive_and.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Speaking</category>
        
        
         <pubDate>Fri, 16 May 2008 19:53:36 +0000</pubDate>
      </item>
            <item>
         <title>Beating phishers at their own game</title>
         <description><![CDATA[<p>
A couple of old colleagues of mine, Billy Rios and Nitesh Dhanjani (who I wrote "Network Security Tools" with) have been up to some interesting research into the wide spread and pervasive phishing problem.
</p>

<p>
Check out <a href="http://www.dhanjani.com/archives/2008/01/bad_sushi_beating_the_phishers.html">Nitesh's site</a>, or <a href="http://xs-sniper.com/blog/2008/01/28/bad-sushi-beating-phishers-at-their-own-game/">Billy's site</a>, check out the <a href="http://www.net-security.org/article.php?id=1110">interview they did with Help Net Security</a>, and see them talk about it at <a href="http://www.blackhat.com/html/bh-dc-08/bh-dc-08-speakers.html#Dhanjani">Black Hat Federal 2008</a> in DC on the 20th of February.
</p>]]></description>
         <link>http://www.justinclarke.com/archives/2008/02/beating_phisher.html</link>
         <guid>http://www.justinclarke.com/archives/2008/02/beating_phisher.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">General</category>
        
        
         <pubDate>Mon, 04 Feb 2008 21:38:46 +0000</pubDate>
      </item>
            <item>
         <title>SQLBrute has a new home</title>
         <description><![CDATA[<p>
A quick note - I am moving the downloads of SQLBrute (and in time, all of my tools) to the <a href="http://www.gdssecurity.com/l/t.php">Gotham Digital Science tools</a> page, so that we centralise downloads of all of our tools.
</p>

<p>
Although there isn't a lot there at the moment, we're going to be putting up a lot of tools we've been working on as time permits.
</p>]]></description>
         <link>http://www.justinclarke.com/archives/2007/11/sqlbrute_has_a.html</link>
         <guid>http://www.justinclarke.com/archives/2007/11/sqlbrute_has_a.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">My Tool Updates</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">gotham</category>
        
         <pubDate>Mon, 12 Nov 2007 12:26:48 +0000</pubDate>
      </item>
            <item>
         <title>Gotham Digital Science blog launch, site redesign</title>
         <description><![CDATA[<p>
We have finally finished revamping the <a href="http://www.gdssecurity.com">Gotham Digital Science</a> website. New stuff includes the <a href="http://www.gdssecurity.com/l/b/">GDS Blog</a> (as well as related RSS/Atom feeds), as well as a <a href="http://www.gdssecurity.com/l/t.php">GDS tool download</a> page.
</p>

<p>
Check out the blog for interesting technical content, including lessons learned and tips from our source code review/application vulnerability remediation work, as well as for some of the tools we'll be releasing in the coming weeks.
</p>]]></description>
         <link>http://www.justinclarke.com/archives/2007/11/gotham_digital.html</link>
         <guid>http://www.justinclarke.com/archives/2007/11/gotham_digital.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Interesting Sites</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">gotham</category>
        
         <pubDate>Sun, 11 Nov 2007 12:18:31 +0000</pubDate>
      </item>
            <item>
         <title>German anti-hacker law bites hard</title>
         <description><![CDATA[<p>
The <a href="http://www.securityfocus.com/columnists/448">recent change to German law</a> to implement the <em>EU Framework Decision on Attacks against Information Systems</em> (enacted in Paragraph 202c of the German Penal Code) has caused many security researchers based in Germany to look to move elsewhere, or to remove previously available research findings.
</p>

<p>
The change in the law, which went into effect on August 10, criminalises the production, distribution, possession, and sale of tools that can be used to commit cybercrimes. Unfortunately, a strict interpretation of the changes would make possession of tools that could be used maliciously (such as nmap or Nessus for instance) illegal. While in reality, legal opinions are that the courts would differentiate between a cracker and a security researcher based on their intent, noone (unsurprisingly) seems to want to be the first test case.
</p>

<p>
The content for a number of projects have all but disappeared, such as the recent <a href="http://blog.php-security.org/archives/91-MOPB-Exploits-taken-down.html">Month of PHP bugs</a>, and the well known <a href="http://www.thc.org/">THC (The Hackers Choice)</a> group, as well as smaller projects such as <a href="http://www.silentservices.de/btCrawler.html">BtCrawler</a>. Others are saying farewell to Germany and reestablishing themselves elsewhere such as the <a href="http://kismac.de/">KisMac</a> wifi scanner for OSX and the <a href="http://www.phenoelit.de/202/202.html">Phenoelit</a> group.
</p>

<p>
All in all a hard strike against a country which has produced much valuable security research and expertise.
</p>]]></description>
         <link>http://www.justinclarke.com/archives/2007/08/german_antihack.html</link>
         <guid>http://www.justinclarke.com/archives/2007/08/german_antihack.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">General</category>
        
        
         <pubDate>Tue, 21 Aug 2007 11:47:00 +0000</pubDate>
      </item>
            <item>
         <title>Running Nessus 3 on Windows XP</title>
         <description><![CDATA[<p>I recently had reason to spend a while working with Nessus on Windows XP (Service Pack 2). Usually, I use a Nessus Server running on Linux, either running locally if I am onsite, or one installed on our company infrastructure for scanning from the Internet. In fact, you read the documentation don't you?, Tenable specifically recommends in the <a href="http://www.nessus.org/documentation/nessus_3.0_installation_guide.pdf">Nessus Installation Guide</a> that you _not_ run Nessus on XP, and instead use a Windows Server product, such as Windows Server 2003.</p>

<p>The reason for this is that in Windows XP Service Pack 2, Microsoft introduced a number of <a href="http://www.microsoft.com/technet/prodtechnol/winxppro/maintain/sp2netwk.mspx">Network Protection Technologies</a> for mitigating the spread of malware. One of these limits the number of simultaneous incomplete outbound TCP connection attempts to 10, with additional attempts being queued and potentially dropped. This impacts the reliability of at least port scanning, and possibly other security checks.</p>

<p>Unfortunately the scenario I was working with required me to be running Nessus through a VPN client (never ideal), in reality requiring me to be on XP. Tenable does, however, have some recommendations for running Nessus as reliably as possible on XP:</p>
<ul><li>Max number of hosts: 10</li>
<li>Max number of security checks: 4</li>
<li>Max number of packets per second for port scan: 50</li>
</ul>

<p>The maximum hosts/security checks setting is standard in all of the Nessus clients I've used, however the packets per second setting seems to only be available within the client shipped with the Windows Nessus server. If you, like me, are using the new NessusClient 3.0 beta for Windows, you need to make the following change to the Nessus server's configuration to ensure that 50 is the default value:</p>
<ul><li>Go to the "config" directory in your Nessus server installation. By default this is C:\Program Files\Tenable\Nessus\config</li>
<li>Open config.default.xml for editing - just use Notepad if you don't have an XML editor</li>
<li>Find the SYN Scan:Max number of packets per second for port scan node, and edit the value (the CDATA bit) from 500 to 50</li></ul>

<p>This value should now be the default for all new scans.
</p>
<p>This worked well for me, however needless to say that running a Nessus scan in VMWare (slowdown factor one), over a VPN link (slowdown factor two), over a transatlantic Internet connection (slowdown factor three), the scan took quite a while to complete...</p>]]></description>
         <link>http://www.justinclarke.com/archives/2007/08/running_nessus.html</link>
         <guid>http://www.justinclarke.com/archives/2007/08/running_nessus.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Misc Tricks and Tips</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">nessus</category>
        
         <pubDate>Mon, 06 Aug 2007 13:10:07 +0000</pubDate>
      </item>
            <item>
         <title>Using proxy servers with SQLBrute</title>
         <description><![CDATA[<p>
Daniel Cuthbert <a href="http://www.justinclarke.com/archives/2007/05/sqlbrute_makes.html#comment-6633">commented</a> about adding proxy server support to <a href="http://www.gdssecurity.com/l/t.php" >SQLBrute</a>. Well, a nice (and perhaps a little obscure) feature of urllib2 (which SQLBrute uses to send HTTP requests) is that you get HTTP proxy support out of the box. All you need to do is set your environment to point to the server, either by setting the <strong>http_proxy</strong> environment variable to point to your proxy, or (on Windows) by setting Internet Explorer to point to your proxy.
</p>

<p>If setting the environment variable, on the Windows command line you can do this:</p>
<pre>set http_proxy=myproxy:8080</pre>

<p>Which should point it to your proxy. The same works for Unix/Linux with whatever export or set command is relevant for your shell.</p>

<p>The proxy support in urllib2 doesn't support authentication so if you have a proxy with authentication you might want to chain SQLBrute through your favourite local proxy (i.e. Burp, Paros etc) and have that handle the authentication for you. Enjoy!</p>]]></description>
         <link>http://www.justinclarke.com/archives/2007/07/using_proxy_ser.html</link>
         <guid>http://www.justinclarke.com/archives/2007/07/using_proxy_ser.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">Misc Tricks and Tips</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">sqlbrute</category>
        
         <pubDate>Tue, 31 Jul 2007 19:21:21 +0000</pubDate>
      </item>
      
   </channel>
</rss>
