<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">
<channel>
    <title>Dominic White's .tHE pRODUCT</title>
    <link>http://singe.za.net/blog/</link>
    <description>Mechanical Derangement</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.3.1 - http://www.s9y.org/</generator>
    <managingEditor>webmaster@singe.rucus.net</managingEditor>
<webMaster>webmaster@singe.rucus.net</webMaster>
<ttl>2160</ttl>
<pubDate>Tue, 22 Jul 2008 15:18:46 GMT</pubDate>

    <image>
        <url>http://singe.za.net/pics/links/tHEpRODUCT-blue.gif</url>
        <title>RSS: Dominic White's .tHE pRODUCT - Mechanical Derangement</title>
        <link>http://singe.za.net/blog/</link>
        <width>120</width>
        <height>29</height>
    </image>

<item>
    <title>My Pwnie Nomination was Accepted!</title>
    <link>http://singe.za.net/blog/archives/929-My-Pwnie-Nomination-was-Accepted!.html</link>
            <category>Security</category>
    
    <comments>http://singe.za.net/blog/archives/929-My-Pwnie-Nomination-was-Accepted!.html#comments</comments>
    <wfw:comment>http://singe.za.net/blog/wfwcomment.php?cid=929</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://singe.za.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=929</wfw:commentRss>
    

    <author>nospam@example.com (Dominic White)</author>
    <content:encoded>
    
&lt;p&gt;Yeah! If you were wondering why I wanted to know &lt;a href=&quot;https://singe.za.net/blog/archives/925-Which-Vulnerability-Researcher-Discovered-SQL-injection.html&quot; title=&quot;Which Vulnerability Researcher Discovered SQL injection?&quot;&gt;who discovered SQL injections&lt;/a&gt;, it was to nominate a &amp;quot;&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/pwnie-awards.org/2008/awards.html#mass0wnage&#039;);&quot;  href=&quot;http://pwnie-awards.org/2008/awards.html#mass0wnage&quot; title=&quot;Pwnie Awards&quot;&gt;Pwnie for Mass 0wnage&lt;/a&gt;&amp;quot;. And it was accepted:&lt;/p&gt;
&lt;blockquote&gt;&lt;ul&gt;&lt;li&gt;
        &lt;p class=&quot;work&quot;&gt;SQL injection in more than 500,000 web sites&lt;/p&gt;
        &lt;p class=&quot;author&quot;&gt;Discovered by: Rain Forest Puppy back in &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.phrack.org/issues.html?issue=54&amp;amp;amp;id=8#article&#039;);&quot;  href=&quot;http://www.phrack.org/issues.html?issue=54&amp;amp;id=8#article&quot;&gt;1998&lt;/a&gt;&lt;/p&gt;

        &lt;p&gt;SQL injection attacks are not new, but this year we saw an upsurge
        in the number of &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/blogs.iis.net/bills/archive/2008/04/25/sql-injection-attacks-on-iis-web-servers.aspx&#039;);&quot;  href=&quot;http://blogs.iis.net/bills/archive/2008/04/25/sql-injection-attacks-on-iis-web-servers.aspx&quot;&gt;automated attacks&lt;/a&gt;
        against vulnerable websites. Reportedly more than half a million
        websites were compromised.&lt;/p&gt;&lt;p /&gt;
    &lt;/li&gt;&lt;/ul&gt;&lt;p /&gt;&lt;/blockquote&gt;
&lt;p&gt;Although I see they went all conservative on the numbers (500k, *psccht*). &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.shadowserver.org/wiki/uploads/Calendar/sql-inj-list.txt&#039;);&quot;  href=&quot;http://www.shadowserver.org/wiki/uploads/Calendar/sql-inj-list.txt&quot; title=&quot;ShadowServer&#039;s SQLi List&quot;&gt;ShadowServer&lt;/a&gt; has nearly 500k from the nihaorr1.com injection alone. Anyone with contacts please correct them.&lt;/p&gt;  
    </content:encoded>

    <pubDate>Tue, 22 Jul 2008 17:18:46 +0200</pubDate>
    <guid isPermaLink="false">http://singe.za.net/blog/archives/929-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>Vulnerability Life Cycle</title>
    <link>http://singe.za.net/blog/archives/928-Vulnerability-Life-Cycle.html</link>
            <category>Security</category>
    
    <comments>http://singe.za.net/blog/archives/928-Vulnerability-Life-Cycle.html#comments</comments>
    <wfw:comment>http://singe.za.net/blog/wfwcomment.php?cid=928</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://singe.za.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=928</wfw:commentRss>
    

    <author>nospam@example.com (Dominic White)</author>
    <content:encoded>
    
&lt;p&gt;Schneier once proposed a &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.schneier.com/crypto-gram-0009.html#1&#039;);&quot;  href=&quot;http://www.schneier.com/crypto-gram-0009.html#1&quot; title=&quot;Full Disclosure and the Window of Exposure&quot;&gt;vulnerability life cycle in a Crypto-Gram newsletter&lt;/a&gt;. He was wrong. During the time of writing &lt;a href=&quot;http://singe.za.net/masters/thesis/&quot; title=&quot;Limiting Vulnerability Exposure through effective Patch Management: threat mitigation through vulnerability remediation&quot;&gt;my thesis&lt;/a&gt;, there were several important pieces of research no-one had put together to come up with a &#039;more correct&#039; vulnerability life cycle. Given some recent discussions between &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/forums.symantec.com/syment/blog/article?blog.id=vulnerabilities_exploits&amp;amp;amp;message.id=161#M161&#039;);&quot;  href=&quot;https://forums.symantec.com/syment/blog/article?blog.id=vulnerabilities_exploits&amp;amp;message.id=161#M161&quot; title=&quot;Patch Management – Speed is of the Essence&quot;&gt;Symantec&lt;/a&gt; and &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/securityblog.verizonbusiness.com/2008/07/01/123/&#039;);&quot;  href=&quot;http://securityblog.verizonbusiness.com/2008/07/01/123/&quot; title=&quot;Verizon&#039;s Response&quot;&gt;Verizon&lt;/a&gt;, I thought I would provide this is a more accessible format that a &lt;a title=&quot;Threat Monitoring: Reading Risk the Wrong Way&quot; href=&quot;http://singe.za.net/blog/archives/737-Information-Security-Group-of-Africa,-meeting-9.html&quot;&gt;previous presentation&lt;/a&gt; I did on the subject, so that I could refer to it later.&lt;/p&gt;&lt;p&gt;The benefits of having an understanding of the life cycle, is that it provides a model to &#039;predict&#039; the behaviour of various role players (e.g. bad guys, vendors and administrators) and understand how that behaviour impact on important parts of the risk management equations such as vulnerability, threat and impact. This is an important building block of any threat model.&lt;/p&gt;&lt;p&gt;The detail after the jump.&lt;/p&gt; 
&lt;p&gt;Let&#039;s get into it. Schneier&#039;s (and others) theorised model looks like this:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://singe.za.net/blog/uploads/schneierlifecyclebig.png&quot; class=&quot;serendipity_image_link&quot;&gt;&lt;!-- s9ymdb:92 --&gt;&lt;/a&gt;&lt;a href=&quot;http://singe.za.net/blog/uploads/schneierlifecyclebig.png&quot; class=&quot;serendipity_image_link&quot;&gt;&lt;!-- s9ymdb:95 --&gt;&lt;img height=&quot;333&quot; width=&quot;399&quot; src=&quot;http://singe.za.net/blog/uploads/schneierlifecyclesmall.png&quot; style=&quot;border: 0px none ; padding-left: 5px; padding-right: 5px;&quot; class=&quot;serendipity_image_center&quot; alt=&quot;&quot;  /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;This life-cycle has the following stages:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;The &lt;b&gt;creation &lt;/b&gt;of the vulnerability. This is when the vulnerability is created during the implementation of the vulnerable product.&lt;/li&gt;&lt;li&gt;The &lt;b&gt;discovery &lt;/b&gt;of a vulnerability. The vulnerability in the product is found.  Several people could discover the vulnerability at different times. Little is ever publicly known about this step.&lt;/li&gt;&lt;li&gt;The discovered vulnerability is &lt;b&gt;disclosed&lt;/b&gt;. The disclosure could come from a variety of sources, in a variety of ways. It could be announced by the vendor or an independent researcher, or secreted away in a product’s Change Log.&lt;/li&gt;&lt;li&gt;The vulnerability is &lt;b&gt;corrected&lt;/b&gt;. This is usually done by the vendor releasing a patch or workaround. This should lead to an overall reduction in successful intrusions.&lt;/li&gt;&lt;li&gt;The vulnerability is &lt;b&gt;publicised&lt;/b&gt;. This can happen in a variety of ways; for example news reporting, publishing an advisory, worm activity; but the end effect is that many people know about the vulnerability.&lt;/li&gt;&lt;li&gt;The &lt;b&gt;exploit &lt;/b&gt;is scripted. This can mean that workable exploit code was released, or instructions on how to produce one are released. In either case, the result is that the number of attackers is greatly increased as those with less skill (script kiddies) can now perform the attack.&lt;/li&gt;&lt;li&gt;The vulnerability becomes &lt;b&gt;passé&lt;/b&gt;. Attackers become disinterested in exploiting this vulnerability.  This is not guaranteed to happen with every vulnerability, and some vulnerabilities (and exploits) are shown to have cyclical popularity.&lt;/li&gt;&lt;li&gt;The vulnerability &lt;b&gt;dies&lt;/b&gt;. This happens when the number of possible targets vulnerable to exploitation drops to an insignificant level.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Now, if we take into account a bunch of research, available on page 30 of &lt;a href=&quot;http://singe.za.net/masters/thesis/&quot; title=&quot;Limiting Vulnerability Exposure through effective Patch Management: threat mitigation through vulnerability remediation&quot;&gt;my thesis&lt;/a&gt;, we get the following corrected life-cycle:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://singe.za.net/blog/uploads/whitelifecyclebig.png&quot; class=&quot;serendipity_image_link&quot;&gt;&lt;!-- s9ymdb:96 --&gt;&lt;img height=&quot;342&quot; width=&quot;393&quot; src=&quot;http://singe.za.net/blog/uploads/whitelifecyclesmall.png&quot; style=&quot;border: 0px none ; padding-left: 5px; padding-right: 5px;&quot; class=&quot;serendipity_image_center&quot; alt=&quot;&quot;  /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;The notable differences are:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;The scripting of an exploit leads to a surge in the number of attempted intrusions.&lt;/li&gt;&lt;li&gt;The spike in exploitations will level off and tend towards a constant over time (e.g. SQL slammer intrusions are still floating around the internet at a fairly constant level).&lt;/li&gt;&lt;li&gt;The number of vulnerable machines have a half-life.&lt;/li&gt;&lt;li&gt;Most exploits are scripted before the end of the first half life.&lt;/li&gt;&lt;li&gt;Vulnerabilities rarely die, but some do become passé and attacks stop trying to exploit them. If anything, the exploits re-spike several times. &lt;/li&gt;&lt;/ol&gt; 
    </content:encoded>

    <pubDate>Sat, 19 Jul 2008 11:51:33 +0200</pubDate>
    <guid isPermaLink="false">http://singe.za.net/blog/archives/928-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>Interesting OpenSSH &amp; SELinux Flaw</title>
    <link>http://singe.za.net/blog/archives/927-Interesting-OpenSSH-SELinux-Flaw.html</link>
            <category>Security</category>
    
    <comments>http://singe.za.net/blog/archives/927-Interesting-OpenSSH-SELinux-Flaw.html#comments</comments>
    <wfw:comment>http://singe.za.net/blog/wfwcomment.php?cid=927</wfw:comment>

    <slash:comments>4</slash:comments>
    <wfw:commentRss>http://singe.za.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=927</wfw:commentRss>
    

    <author>nospam@example.com (Dominic White)</author>
    <content:encoded>
    
&lt;p&gt;Some older versions of SELinux and OpenSSH compiled to support it allow you to log in with an arbitrarily chosen SELinux role. You&#039;ll need a valid account, and some fairly undefined conditions, but the attack is:&lt;/p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;ssh --l&amp;lt;username&amp;gt;:/&amp;lt;chosen role&amp;gt; &amp;lt;host&amp;gt;&lt;/font&gt;&lt;p&gt;Haven&#039;t seen a (potential) stuff up like that since the MIT Kerberos telnet daemon flaw (which was significantly worse). I&#039;d like to think that people who&#039;ve gone to the effort of setting up SELinux also patch regularly. Source, &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.milw0rm.com/exploits/6094&#039;);&quot;  title=&quot;OpenSSH Remote -=Authenticated=- SELinux Privilege Elevation&quot; href=&quot;http://www.milw0rm.com/exploits/6094&quot;&gt;milw0rm&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;I am interested in this because it is dreadfully simple, has some weird implications for how SSH and SELinux interact, and there is scant information about this. Maybe a few more eyes can uncover something.&lt;/p&gt;&lt;p&gt;Disclaimer: I haven&#039;t tested this. The author only tested it on a limited subset and it didn&#039;t work on up-to-date distros.&lt;/p&gt;&lt;p&gt;&lt;font size=&quot;1&quot;&gt;Update: Explained my motivations and authority (or lack there of) of the exploit thanks to foobar&#039;s comments.&lt;/font&gt;&lt;/p&gt;  
    </content:encoded>

    <pubDate>Fri, 18 Jul 2008 06:55:27 +0200</pubDate>
    <guid isPermaLink="false">http://singe.za.net/blog/archives/927-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>SCP Transfer Resuming With Rsync</title>
    <link>http://singe.za.net/blog/archives/926-SCP-Transfer-Resuming-With-Rsync.html</link>
            <category>Geek</category>
    
    <comments>http://singe.za.net/blog/archives/926-SCP-Transfer-Resuming-With-Rsync.html#comments</comments>
    <wfw:comment>http://singe.za.net/blog/wfwcomment.php?cid=926</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://singe.za.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=926</wfw:commentRss>
    

    <author>nospam@example.com (Dominic White)</author>
    <content:encoded>
    &lt;p&gt;I never remember how to do this, so for my own personal blog-memory:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;rsync --partial --progress --rsh=&amp;quot;ssh -p &amp;lt;remote ssh port&amp;gt;&amp;quot; &amp;lt;from file&amp;gt; &amp;lt;partially downloaded file&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;The --rsh parameter can contain all of your normal ssh command line-fu such as keys, options, ports etc. (Who runs public ssh on port 22 these days anyway?)&lt;/li&gt;&lt;li&gt;The &amp;lt;from&amp;gt; and &amp;lt;to&amp;gt; follow the normal SCP format of &amp;lt;username&amp;gt;@&amp;lt;hostname&amp;gt;:&amp;lt;filename&amp;gt; or just &amp;lt;filename&amp;gt; for the local copy.&lt;/li&gt;&lt;/ul&gt;
  
    </content:encoded>

    <pubDate>Tue, 15 Jul 2008 13:55:19 +0200</pubDate>
    <guid isPermaLink="false">http://singe.za.net/blog/archives/926-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>Which Vulnerability Researcher Discovered SQL injection?</title>
    <link>http://singe.za.net/blog/archives/925-Which-Vulnerability-Researcher-Discovered-SQL-injection.html</link>
            <category>Security</category>
    
    <comments>http://singe.za.net/blog/archives/925-Which-Vulnerability-Researcher-Discovered-SQL-injection.html#comments</comments>
    <wfw:comment>http://singe.za.net/blog/wfwcomment.php?cid=925</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://singe.za.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=925</wfw:commentRss>
    

    <author>nospam@example.com (Dominic White)</author>
    <content:encoded>
    
&lt;p&gt;Rain Forest Puppy (rfp) in a merry Christmas of an article entitled &amp;quot;&lt;i&gt;&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.phrack.org/issues.html?id=8&amp;amp;amp;issue=54&#039;);&quot;  title=&quot;NT Web Technology Vulnerabilities&quot; href=&quot;http://www.phrack.org/issues.html?id=8&amp;amp;issue=54&quot;&gt;NT Web Technology Vulnerabilities&lt;/a&gt;&lt;/i&gt;&amp;quot;, published in Phrack Magazine, Volume 8, Issue 54 on December 25th, 1998. He didn&#039;t actually call it SQL injection yet, that honour either goes to SANS or &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.sqlsecurity.com/FAQs/SQLInjectionFAQ/tabid/56/Default.aspx&#039;);&quot;  title=&quot;Chip Andrews SQL injection FAQ March 2001&quot; href=&quot;http://www.sqlsecurity.com/FAQs/SQLInjectionFAQ/tabid/56/Default.aspx&quot;&gt;Chip Andrews&lt;/a&gt; in 2001. Source, &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.ngssoftware.com/research/papers/sqlinference.pdf&#039;);&quot;  href=&quot;http://www.ngssoftware.com/research/papers/sqlinference.pdf&quot; title=&quot;Data-mining with SQL Injection and Inference&quot;&gt;Litchfield&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Here&#039;s the beginning of his summary, from the section entitled &amp;quot;&lt;i&gt;ODBC and MS SQL server 6.5&lt;/i&gt;&amp;quot;:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;- WHAT&#039;S THE PROBLEM?  MS SQL server allows batch commands.&lt;/p&gt;&lt;p&gt;- WHAT&#039;S THAT MEAN?  I can do something like:&lt;br /&gt;    SELECT * FROM table WHERE x=1 SELECT * FROM table WHERE y=5&lt;br /&gt;Exactly like that, and it&#039;ll work.  It will return two record sets, with each set containing the results of the individual SELECT.&lt;/p&gt;&lt;p&gt;- WHAT&#039;S THAT REALLY MEAN?  People can possibly piggyback SQL commands into your statements.  Let&#039;s say you have:&lt;br /&gt;	    SELECT * FROM table WHERE x=%%criteria from webpage user%%&lt;br /&gt;Now, what if %%criteria from webpage user%% was equal to:&lt;br /&gt;	    SELECT * FROM sysobjects&lt;br /&gt;It would translate to:&lt;br /&gt;    SELECT * FROM table WHERE x=1 SELECT * FROM sysobjects&lt;/p&gt;&lt;/blockquote&gt;  
    </content:encoded>

    <pubDate>Tue, 15 Jul 2008 08:56:05 +0200</pubDate>
    <guid isPermaLink="false">http://singe.za.net/blog/archives/925-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>Viva Las Vegas, BlackHat &amp; Defcon USA 2008</title>
    <link>http://singe.za.net/blog/archives/924-Viva-Las-Vegas,-BlackHat-Defcon-USA-2008.html</link>
            <category>Security</category>
    
    <comments>http://singe.za.net/blog/archives/924-Viva-Las-Vegas,-BlackHat-Defcon-USA-2008.html#comments</comments>
    <wfw:comment>http://singe.za.net/blog/wfwcomment.php?cid=924</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://singe.za.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=924</wfw:commentRss>
    

    <author>nospam@example.com (Dominic White)</author>
    <content:encoded>
    &lt;p&gt;It&#039;s official, I&#039;m going to &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.blackhat.com/html/bh-usa-08/bh-us-08-main.html&#039;);&quot;  href=&quot;http://www.blackhat.com/html/bh-usa-08/bh-us-08-main.html&quot; title=&quot;Black Hat USA 2008 Briefings and Training&quot;&gt;Black Hat&lt;/a&gt; and &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.defcon.org/&#039;);&quot;  href=&quot;https://www.defcon.org/&quot; title=&quot;DEFCON 16: August 8-10, 2008&quot;&gt;Defcon&lt;/a&gt; this year. I&#039;m very excited. A *huge* thank you to the &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.sensepost.com/&#039;);&quot;  href=&quot;http://www.sensepost.com/&quot; title=&quot;SensePost&quot;&gt;SensePost&lt;/a&gt; guys who are sorting me out only proper. Make sure you &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.blackhat.com/html/bh-usa-08/train-bh-usa-08-sp-hbn.html&#039;);&quot;  href=&quot;http://www.blackhat.com/html/bh-usa-08/train-bh-usa-08-sp-hbn.html&quot; title=&quot;Hacking by Numbers: Web 2.0&quot;&gt;go&lt;/a&gt;, &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.blackhat.com/html/bh-usa-08/train-bh-usa-08-sp-c-training.html&#039;);&quot;  href=&quot;http://www.blackhat.com/html/bh-usa-08/train-bh-usa-08-sp-c-training.html&quot; title=&quot;Hacking by Numbers: Combat Training&quot;&gt;to&lt;/a&gt;, &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.blackhat.com/html/bh-usa-08/train-bh-usa-08-sp-b.html&#039;);&quot;  href=&quot;http://www.blackhat.com/html/bh-usa-08/train-bh-usa-08-sp-b.html&quot; title=&quot;Hacking by Numbers: Bootcamp&quot;&gt;their&lt;/a&gt;, &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.blackhat.com/html/bh-usa-08/train-bh-usa-08-sp-cadet.html&#039;);&quot;  href=&quot;http://www.blackhat.com/html/bh-usa-08/train-bh-usa-08-sp-cadet.html&quot; title=&quot;Hacking by Numbers: Cadet&quot;&gt;training&lt;/a&gt;. We&#039;ve also pulled together a fairly decent Deloitte contingent.&lt;/p&gt;&lt;p&gt;I&#039;ll be there from the 29th of July to the 11th of August if all goes off according to plan. Give me a shout if you want to meet up, or if you have invitations to &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.youtube.com/watch?v=pikcQxO1e0g&#039;);&quot;  title=&quot;Stewie from Family Guy&quot; href=&quot;http://www.youtube.com/watch?v=pikcQxO1e0g&quot;&gt;sexy parties&lt;/a&gt;.&lt;/p&gt;  
    </content:encoded>

    <pubDate>Mon, 14 Jul 2008 20:26:10 +0200</pubDate>
    <guid isPermaLink="false">http://singe.za.net/blog/archives/924-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>Make Better Coffee</title>
    <link>http://singe.za.net/blog/archives/922-Make-Better-Coffee.html</link>
            <category>Play</category>
    
    <comments>http://singe.za.net/blog/archives/922-Make-Better-Coffee.html#comments</comments>
    <wfw:comment>http://singe.za.net/blog/wfwcomment.php?cid=922</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://singe.za.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=922</wfw:commentRss>
    

    <author>nospam@example.com (Dominic White)</author>
    <content:encoded>
    &lt;p&gt;If you&#039;ve decided you want to make better coffee, here are my tips for the changes that will yield the biggest results. These aren&#039;t comprehensive, just some quick tips for quickly making better coffee.&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Don&#039;t use instant, use proper &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/en.wikipedia.org/wiki/Coffea_arabica&#039;);&quot;  title=&quot;Robusta has more caffeine but less flavour&quot; href=&quot;http://en.wikipedia.org/wiki/Coffea_arabica&quot;&gt;Arabica&lt;/a&gt; grounds.&lt;/li&gt;&lt;li&gt;&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/en.wikipedia.org/wiki/Espresso&#039;);&quot;  title=&quot;It has approximately 1/4 the caffeine as filter coffee.&quot; href=&quot;http://en.wikipedia.org/wiki/Espresso&quot;&gt;Espresso&lt;/a&gt; is the best, then &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/en.wikipedia.org/wiki/French_press&#039;);&quot;  title=&quot;Wikipedia French Press&quot; href=&quot;http://en.wikipedia.org/wiki/French_press&quot;&gt;French press&lt;/a&gt;, then percolator. A &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/en.wikipedia.org/wiki/Moka_Express&#039;);&quot;  title=&quot;Wikipedia Moka Express&quot; href=&quot;http://en.wikipedia.org/wiki/Moka_Express&quot;&gt;Moka Express&lt;/a&gt; or &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/en.wikipedia.org/wiki/Moka_Express#Brikka&#039;);&quot;  title=&quot;The Brikka gives you Crema&quot; href=&quot;http://en.wikipedia.org/wiki/Moka_Express#Brikka&quot;&gt;Brikka&lt;/a&gt; are quick ways to get into espresso.&lt;/li&gt;&lt;li&gt;Use hot milk. This makes a big difference in taste, 30-40s in the microwave should do it. A French Press can be used with hot milk to make decent froth for cappuccino too.&lt;/li&gt;&lt;li&gt;Grind your own beans. A grinder is cheap, and freshly grinding your own beans just before you make a cup makes a subtle increase in flavour. Remember to store your beans in an airtight container in a cool dry place (not the fridge).&lt;/li&gt;&lt;/ol&gt;
  
    </content:encoded>

    <pubDate>Mon, 14 Jul 2008 19:17:42 +0200</pubDate>
    <guid isPermaLink="false">http://singe.za.net/blog/archives/922-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>Blog Updates</title>
    <link>http://singe.za.net/blog/archives/923-Blog-Updates.html</link>
            <category>Play</category>
    
    <comments>http://singe.za.net/blog/archives/923-Blog-Updates.html#comments</comments>
    <wfw:comment>http://singe.za.net/blog/wfwcomment.php?cid=923</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://singe.za.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=923</wfw:commentRss>
    

    <author>nospam@example.com (Dominic White)</author>
    <content:encoded>
    After 4 years I have finally decided to change my theme. It is very Mac OSX oriented, but I just like it so much. I&#039;ve also removed a Gig of spam block logs from the DB, so it should be a bit snappier. Finally, I figured out why Google hates me, I somehow didn&#039;t run a DB upgrade script on the last blog upgrade, and a ton of links weren&#039;t working. They are now.
  
    </content:encoded>

    <pubDate>Mon, 14 Jul 2008 18:29:00 +0200</pubDate>
    <guid isPermaLink="false">http://singe.za.net/blog/archives/923-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>Dan broke the internet again!</title>
    <link>http://singe.za.net/blog/archives/921-Dan-broke-the-internet-again!.html</link>
            <category>Security</category>
    
    <comments>http://singe.za.net/blog/archives/921-Dan-broke-the-internet-again!.html#comments</comments>
    <wfw:comment>http://singe.za.net/blog/wfwcomment.php?cid=921</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://singe.za.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=921</wfw:commentRss>
    

    <author>nospam@example.com (Dominic White)</author>
    <content:encoded>
    &lt;p&gt;This will be fun to watch. Dan Kaminsky has sort-of published  not-so-sekret ways to break DNS. Patches have been released to make things more random. &amp;quot;Full&amp;quot; disclosure at BlackHat.&lt;/p&gt;&lt;p&gt;From &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.isc.org/index.pl&#039;);&quot;  href=&quot;http://www.isc.org/index.pl&quot;&gt;ISC&lt;/a&gt;:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;quot;The method used makes it harder to spoof answers to a
resolver by expanding the range of UDP ports from which queries are
sent, thereby increasing the variability of parameters in outgoing
queries.&amp;quot;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;I laughed with mirth and glee at the &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.emergentchaos.com/archives/2008/07/massive_coordianted_vendo.html&#039;);&quot;  title=&quot;Massive Coordinated Vendor Patch For DNS&quot; href=&quot;http://www.emergentchaos.com/archives/2008/07/massive_coordianted_vendo.html&quot;&gt;Emergent Chaos comment&lt;/a&gt;:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;quot;DJBdns is in fact not affected as DJB had already implemented port randomness even though he didn&#039;t know it was an issue.&amp;quot;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;This means *all* DNS (except DJBdns) is vulnerable, many vendor patches to follow. Although, DNSSEC is the *right* answer.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0122&#039;);&quot;  href=&quot;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0122&quot;&gt;CVE&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.kb.cert.org/vuls/id/800113&#039;);&quot;  href=&quot;http://www.kb.cert.org/vuls/id/800113&quot;&gt;CERT VU&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.microsoft.com/technet/security/bulletin/ms08-037.mspx&#039;);&quot;  href=&quot;http://www.microsoft.com/technet/security/bulletin/ms08-037.mspx&quot;&gt;Microsoft&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;  
    </content:encoded>

    <pubDate>Tue, 08 Jul 2008 21:34:57 +0200</pubDate>
    <guid isPermaLink="false">http://singe.za.net/blog/archives/921-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>SA Crime Stats 2008</title>
    <link>http://singe.za.net/blog/archives/920-SA-Crime-Stats-2008.html</link>
            <category>Security</category>
    
    <comments>http://singe.za.net/blog/archives/920-SA-Crime-Stats-2008.html#comments</comments>
    <wfw:comment>http://singe.za.net/blog/wfwcomment.php?cid=920</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://singe.za.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=920</wfw:commentRss>
    

    <author>nospam@example.com (Dominic White)</author>
    <content:encoded>
    
&lt;p&gt;The &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.saps.gov.za/&#039;);&quot;  href=&quot;http://www.saps.gov.za/&quot; title=&quot;SAPS&quot;&gt;South African Police Services&lt;/a&gt; have released the &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.saps.gov.za/statistics/reports/crimestats/2008/crime_stats.htm&#039;);&quot;  href=&quot;http://www.saps.gov.za/statistics/reports/crimestats/2008/crime_stats.htm&quot; title=&quot;Crime Situation in South Africa (Released June 2008)&quot;&gt;crime stats for the last financial year&lt;/a&gt;. I still need to wrap my head around the numbers, as many of the categories don&#039;t seem discreet, or intuitive. However, I think the &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.saps.gov.za/statistics/reports/crimestats/2008/docs/Executive%20summary_2007.2008%20financial%20year_JUNE%202008.pdf&#039;);&quot;  href=&quot;http://www.saps.gov.za/statistics/reports/crimestats/2008/docs/Executive%20summary_2007.2008%20financial%20year_JUNE%202008.pdf&quot; title=&quot;Executive Summary&quot;&gt;executive summary&lt;/a&gt; contains some good insight into the &#039;threat landscape&#039;. It also backs up several of my &#039;gut feel&#039; assertions about crime in SA. However, as &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/russell.rucus.net/&#039;);&quot;  href=&quot;http://russell.rucus.net/&quot; title=&quot;Russell Cloran&quot;&gt;Russell&lt;/a&gt; points, there may be an independence issue, as the report is &amp;quot;written by the guys whose job is on the line&amp;quot;, and I haven&#039;t found any information on how the stats were independently verified. I&#039;ve culled some sections from the executive summary and given them my own headings, formatting and order. Whatever your take on crime in SA, these stats are a good read, and certainly more likely to be accurate, even with bias, than the &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/en.wikipedia.org/wiki/Crime_in_South_Africa&#039;);&quot;  href=&quot;http://en.wikipedia.org/wiki/Crime_in_South_Africa&quot; title=&quot;That revolution in 1994 was calm, seriously&quot;&gt;eight year old drivel on Wikipedia&lt;/a&gt;.&lt;/p&gt; 
&lt;h3&gt;Most crime in &#039;Megatownships&#039; by drunks&lt;/h3&gt;

&lt;p&gt;Detailed docket, geographical
and timeline analyses of the contact crimes confirm that at least &lt;b&gt;two thirds
of all contact crime&lt;/b&gt; &lt;i&gt;[e.g. mugging, rape, murder]&lt;/i&gt; cases are strongly linked to specific social behaviour
patterns which inter alia involve &lt;b&gt;alcohol and other substance abuse&lt;/b&gt; and
are &lt;b&gt;mainly associated with informal settlements in megatownships&lt;/b&gt;.&lt;/p&gt;

&lt;p&gt;Almost two thirds (66,0%) of all aggravated robberies are street/public
robberies. These &lt;b&gt;occur mainly in CBD areas and the black megatownships&lt;/b&gt;
(e.g. Khayelitsha, KwaMashu, Umlazi and Nyanga) where ordinary people are
robbed of their money, cellular telephones or other valuables at gun or
knifepoint. &lt;b&gt;The large majority of these incidents are therefore not high
profile cases involving well-known people and are rarely reported in the media.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;[I emigrated because all the poor people were getting mugged sounds less justified.]&lt;/i&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;

&lt;h3&gt;If you&#039;re rich, don&#039;t live here&lt;/h3&gt;

&lt;p&gt;The carjackings and house robberies most frequently occur in the more
affluent suburbs of &lt;b&gt;Gauteng &lt;/b&gt;such as:&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;Sandton&lt;/li&gt;&lt;li&gt;Honeydew&lt;/li&gt;&lt;li&gt;Douglasdale&lt;/li&gt;&lt;li&gt;Brooklyn&lt;/li&gt;&lt;li&gt;Garsfontein&lt;/li&gt;&lt;/ul&gt;

&lt;h3&gt;Anatomy of affluent crime&lt;/h3&gt;

&lt;p&gt;&lt;b&gt;Extreme violence&lt;/b&gt; resulting in severe injuries or fatalities is &lt;b&gt;only employed in a very small proportion&lt;/b&gt; of these carjacking and house robbery cases. However, extreme violence
does occasionally occur because the crimes are usually committed at places
where it is less likely for bystanders or eyewitnesses to intervene; firearms
are more likely to be involved; the robbers want specific items (frequently the
key to a safe or a car); and the perpetrators may be disposed to use threats or
violence to obtain their aim. The victims may also react in ways that could
trigger violence.&lt;/p&gt;

&lt;h3&gt;The rest of the world&lt;o:p /&gt;&lt;/h3&gt;

&lt;p&gt;South Africa compares quite favourably with the
rest of the &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.interpol.int/Public/ICPO/Members/default.asp&#039;);&quot;  title=&quot;INTERPOL&#039;s list of member countries&quot; href=&quot;http://www.interpol.int/Public/ICPO/Members/default.asp&quot;&gt;INTERPOL member countries&lt;/a&gt; with regard to the incidence of
property-related and all the other remaining categories of serious crime. Most
of the contact-related, property-related and other serious crimes indeed
experienced decreases.&lt;/p&gt;&lt;p&gt;&lt;i&gt;[It would be nice to know how we compare against INTERPOL member countries for non-property related and other serious crime.]&lt;/i&gt;&lt;/p&gt;

&lt;h3&gt;Stats are better than “the media”&lt;/h3&gt;

&lt;p&gt;Because the crimes frequently occur in more well-to-do areas, the chances of
somebody well-known being targeted and even killed are much higher. Such
incidents feature on the front pages and in the headlines of the media and
reverberate around the world. Such focused and selective reporting on less than
5,0% of South Africa&#039;s
contact crime, read together with the contact crime statistics, consequently
creates an international image of South Africa as an extremely
violent society.&lt;/p&gt;

&lt;h3&gt;Remember, correlation does not equate cause&lt;/h3&gt;

&lt;p&gt;Increases in the number of crimes heavily dependent on police action for
detection are actually considered desirable. The 25,4% increase in the ratio of
driving under the influence of alcohol or drugs is probably a result of much
more stringent law enforcement by both Metro Police services and the SAPS
during 2007/2008.&lt;/p&gt;

 
    </content:encoded>

    <pubDate>Mon, 30 Jun 2008 13:57:32 +0200</pubDate>
    <guid isPermaLink="false">http://singe.za.net/blog/archives/920-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>Microsoft (and HP)++ for SQL Injection Response</title>
    <link>http://singe.za.net/blog/archives/919-Microsoft-and-HP++-for-SQL-Injection-Response.html</link>
            <category>Security</category>
    
    <comments>http://singe.za.net/blog/archives/919-Microsoft-and-HP++-for-SQL-Injection-Response.html#comments</comments>
    <wfw:comment>http://singe.za.net/blog/wfwcomment.php?cid=919</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://singe.za.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=919</wfw:commentRss>
    

    <author>nospam@example.com (Dominic White)</author>
    <content:encoded>
    &lt;p&gt;Microsoft has released a &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.microsoft.com/technet/security/advisory/954462.mspx&#039;);&quot;  href=&quot;http://www.microsoft.com/technet/security/advisory/954462.mspx&quot; title=&quot;Rise in SQL Injection Attacks Exploiting Unverified User Data Input&quot;&gt;security advisory&lt;/a&gt; detailing three ways to respond to the SQL injection attacks. This advisory doesn&#039;t covery a patch, just three tools:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.communities.hp.com/securitysoftware/blogs/spilabs/archive/2008/06/23/finding-sql-injection-with-scrawlr.aspx&#039;);&quot;  href=&quot;http://www.communities.hp.com/securitysoftware/blogs/spilabs/archive/2008/06/23/finding-sql-injection-with-scrawlr.aspx&quot; title=&quot;Finding SQL Injection with Scrawlr&quot;&gt;HP Scrawlr&lt;/a&gt; is a light weight version of HP&#039;s WebInspect that will look for SQL injection flaws. I love that they used the Bobby Tables XKCD comic.&lt;/li&gt;&lt;li&gt;A new version of &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/learn.iis.net/page.aspx/473/using-urlscan&#039;);&quot;  href=&quot;http://learn.iis.net/page.aspx/473/using-urlscan&quot; title=&quot;Using UrlScan&quot;&gt;UrlScan&lt;/a&gt; (&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.iis.net/go/1697&#039;);&quot;  href=&quot;http://www.iis.net/go/1697&quot; title=&quot;Download x86 version&quot;&gt;3.0 beta&lt;/a&gt;) the IIS version of mod_security.&lt;/li&gt;&lt;li&gt;A &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/support.microsoft.com/kb/954476&#039;);&quot;  href=&quot;http://support.microsoft.com/kb/954476&quot; title=&quot;The Microsoft Source Code Analyzer for SQL Injection tool is available to find SQL injection vulnerabilities in ASP code&quot;&gt;source code analyser&lt;/a&gt; which will identify SQL injection vulns, although it currently only works for ASP and not ASP.NET.&lt;/li&gt;&lt;/ol&gt;That&#039;s pretty awesome, although, as always, these should be used to aid clue, not replace it.&lt;br /&gt;
  
    </content:encoded>

    <pubDate>Wed, 25 Jun 2008 06:28:19 +0200</pubDate>
    <guid isPermaLink="false">http://singe.za.net/blog/archives/919-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>GeekDinner Johannesburg</title>
    <link>http://singe.za.net/blog/archives/918-GeekDinner-Johannesburg.html</link>
            <category>Geek</category>
    
    <comments>http://singe.za.net/blog/archives/918-GeekDinner-Johannesburg.html#comments</comments>
    <wfw:comment>http://singe.za.net/blog/wfwcomment.php?cid=918</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://singe.za.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=918</wfw:commentRss>
    

    <author>nospam@example.com (Dominic White)</author>
    <content:encoded>
    
We had our &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/wiki.geekdinner.org.za/wiki/Johannesburg_June_2008&#039;);&quot;  title=&quot;Johannesburg GeekDinner&quot; href=&quot;http://wiki.geekdinner.org.za/wiki/Johannesburg_June_2008&quot;&gt;second Johannesburg GeekDinner&lt;/a&gt; yesterday. We&#039;re keeping it small until we build a dedicated team/community, so it was more of a GeekLunch. Unfortunately, I missed &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/cynic.rucus.net/&#039;);&quot;  title=&quot;Yusuf Motara&quot; href=&quot;http://cynic.rucus.net/&quot;&gt;Yusuf&lt;/a&gt;&#039;s talk, on why CSS is rubbish, due to a mistimed afternoon nap, but &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/mithrandi.vox.com/&#039;);&quot;  title=&quot;Tristan Seligmann&quot; href=&quot;http://mithrandi.vox.com/&quot;&gt;Tristan&lt;/a&gt;&#039;s on per-user app DBs for scalability was certainly an interesting challenge to the status quo, and his knowledge certainly carried him through &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/mithrandi.vox.com/library/post/geekdinner-johannesburg-june-2008.html&#039;);&quot;  href=&quot;http://mithrandi.vox.com/library/post/geekdinner-johannesburg-june-2008.html&quot; title=&quot;Tristan&#039;s Writeup&quot;&gt;his last minute volunteering&lt;/a&gt;. I did some live demoing of 0wning a browser with &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/xss-proxy.sourceforge.net/&#039;);&quot;  title=&quot;XSS Proxy&quot; href=&quot;http://xss-proxy.sourceforge.net/&quot;&gt;XSS Proxy&lt;/a&gt;. We got some serious geek all over the place, which was great, and I think this will grow into something good. Shehnaaz&#039;s hand made (from scratch) pizza&#039;s were amazing, and she was a gracious host along with Yusuf. The &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/wiki.geekdinner.org.za/wiki/Johannesburg_July_2008&#039;);&quot;  title=&quot;GeekDinner Johannesburg July&quot; href=&quot;http://wiki.geekdinner.org.za/wiki/Johannesburg_July_2008&quot;&gt;next one&lt;/a&gt; has been planned, but we&#039;re keeping it invite only until we have it more stable, thanks to &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/nvent.co.za/&#039;);&quot;  title=&quot;They Do Not Sell Aircon&quot; href=&quot;http://nvent.co.za/&quot;&gt;nVent&lt;/a&gt; for volunteering.  
    </content:encoded>

    <pubDate>Sun, 22 Jun 2008 20:04:33 +0200</pubDate>
    <guid isPermaLink="false">http://singe.za.net/blog/archives/918-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>Major SA websites hacked by China - nobody cares about the Web</title>
    <link>http://singe.za.net/blog/archives/917-Major-SA-websites-hacked-by-China-nobody-cares-about-the-Web.html</link>
            <category>Security</category>
    
    <comments>http://singe.za.net/blog/archives/917-Major-SA-websites-hacked-by-China-nobody-cares-about-the-Web.html#comments</comments>
    <wfw:comment>http://singe.za.net/blog/wfwcomment.php?cid=917</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://singe.za.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=917</wfw:commentRss>
    

    <author>nospam@example.com (Dominic White)</author>
    <content:encoded>
    
&lt;p&gt;Over the last few weeks, we have seen a set of incredibly
uncomplicated and simple attacks effectively compromise several hundred
South African web pages, and several million internationally. Many of
the South African sites compromised were important; including major
media organisations, several government institutions, large mining
houses and even one information security company, who still have not
removed the pie from their face. The intention of the attacks was to
use the compromised web pages to infect visitors with a variety of
malware, but most commonly, a trojan which attempts to steal as many
passwords as it can, including specific references to some internet
banking sites. &lt;/p&gt;
&lt;p&gt;The response to the incident from both consumers and the affected
companies seems to indicate that when it comes to the web in South
Africa, nobody cares. &lt;/p&gt;
 
&lt;p&gt;&lt;strong&gt;The Attack&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Let’s get the details out of the way so that we can wander over to the hand waving. The attacks involved a technique knows as &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/en.wikipedia.org/wiki/SQL_injection&#039;);&quot;  href=&quot;http://en.wikipedia.org/wiki/SQL_injection&quot; title=&quot;Wikipedia SQL Injection&quot;&gt;SQL injection&lt;/a&gt;.
For those of you that usually skip over tech details, fast-forward the
next two paragraphs. SQL injection involves taking advantage of the way
in which SQL statements are executed on the database by the web
application, a more detailed breakdown is available after the article.
A SQL injection usually means that an attacker can take near full
control of the database, the machine hosting it and any applications
using the database as a backend. &lt;/p&gt;
&lt;p&gt;In this instance, the bad guys were using Google to search for
vulnerable web sites, then injecting Microsoft SQL specific statements
to insert a remote JavaScript include to the end of every table. This
has a good chance of getting that JavaScript inserted into any web
pages that are pulling their content from a database (i.e. most of
them). When a user visits an infected page, the JavaScript would then
try and break into it by using a variety of attacks against outdated
versions of iTunes, AIM, RealPlayer, Acrobat Reader, Shockwave Flash
among others. Once successful, some form of malicious software is
installed to the user’s computer, most commonly a password stealer.
Once an injection has occurred, the attacker can vary what it does to
users. So, if your anti-virus program updates to detect the evilware,
the bad guy can just change it and is more likely to be able to rapidly
modify his app than the anti-virus guys are able to discover, analyse
and block it. Although, we did not see too much of the latter stuff. &lt;/p&gt;
&lt;p&gt;To summarise the attack: &lt;br /&gt;
Search Google -&amp;gt; SQL Injection on Web Site -&amp;gt; User Visits Website
-&amp;gt; User’s Computer is Infected -&amp;gt; Bad Guys Steal User’s Passwords
-&amp;gt; Bad Guys Steal User’s Money&lt;/p&gt;
&lt;p&gt;In the security world this attack falls squarely into the category
of ‘lame’. What I mean is, they did nothing complex for which there
aren’t good, easy to implement solutions. Searching Google for
potentially vulnerable sites is in this case not even targeting the low
hanging fruit, closer to the old rotten fruit slowly dying around the
base of the tree. Using SQL which only works against MS SQL, when SQL
as a language is generic enough to craft something that works against
Oracle, PostGres, Sybase and MySQL. Using the injection point to squirt
in some JavaScript and ‘wasting’ the full power of SQL injection.
Exploiting vulnerabilities in applications for which updates have
already been released to fix them and a decent anti-virus program
should pick up. Stealing something as simple as a password instead of
doing something incredible like injecting an advanced rootkit that
makes your Second Life character look like Michael Jackson. Finally,
using single domains with no fast-flux survivability like those
infuriating bot-herder, is all just boring. Then again, criminals do
not need to be innovative when it is this easy. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The Outcome&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;These attacks have been wildly successful. Without using any of the
advanced techniques we have seen botnet developers put together over
the last year, or any decent ‘worm-like’ activity, they managed to hit
3.5 million web pages. In addition, they are not done yet. It seems
tools are being distributed to do this stuff for you, and they only
cost a few Yuan. It is more likely that we’ve seen so many successful
attacks because the costs of running them are so low, and there are a
few hundred people doing it. Whenever we see attacks that are
successful and easy to do, they tend to continue for the next couple of
months or years until they stop being successful. In short, expect more
of these, and expect them to get more advanced. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The Response&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The response has not been very varied from the South African online
practitioners. Most of the time, when I contacted the developers, they
knew about the problem and were working on it. This consisted of
removing that instance of the infected web page, which was shortly
re-infected. Worse still, often only the ‘known’ infected web pages
were cleaned, so an organisation may have had 10 pages infected, but
only cleaned 7 because they had not see the others. &lt;/p&gt;
&lt;p&gt;However, the ‘real’ impact of something like this is not at a
technical level, this has the potential to affect the business. There’s
a real risk to the business’ reputation; most want to be known as safe,
honest, well controlled companies; hosting viruses on behalf of Chinese
bad guys does not reconcile well with that. There is a legal and
compliance risk, whether it is industry mandated compliance such as
Sarbanes Oxley and the Payment Card Industry’s Data Security Standard
or legislative requirements such as the up-coming Protection of
Personal Information Act, the risks of non-compliance in these cases,
or worse, legal action arising from it, can be quite dire. Finally,
there is a financial risk, especially from web sites that rely on their
online presence. Some of the affected media organisations, where having
Google mention that ‘this site may harm your computer’, could have
their ad revenue seriously dented along with their readership. However,
right now, this just sounds like fear mongering, as we have not seen
any of this happen. Maybe it still will, but it doesn’t seem that many
of the affected company’s IT management have got wind of this, or we
wouldn’t have seen the fix-the-symptom patch-ups we have, and I am
fairly certain there are no CFOs losing sleep over this. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The hand waving&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The conclusion I draw from all of this is that, at least in the
large corporate space, no one important in South Africa really cares
about the Web. The companies are not too worried that this will amount
to any sort of real risk to them, and users are mostly too clueless
about security to realise, let alone protest, the fact that their
favourite radio station’s website is trying to steal their passwords.
Worse still, the new importance-making-push into Web 2.0 is going to
exacerbate this security problem, as a new wave of more complex and
poorly secured tech washes over the IT industry. In the meantime, watch
this space and if you are lucky enough to have not been infected
because you were not using Microsoft’s SQL server (make no mistake, it
was luck), start getting your devs trained up in writing secure code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Appendix&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;SQL injection involves taking advantage of the way in which SQL
statements are executed on the database by the web application. If, for
example, you have an input field asking me for my name, and slap my
input into a piece of SQL such as:&lt;/p&gt;
&lt;pre&gt;INSERT INTO names VALUES (&#039;Dominic&#039;); &lt;/pre&gt;
&lt;p&gt;
Then, if I enter my name as: Dominic’); DROP TABLE names;– , the resulting SQL statements becomes: &lt;/p&gt;
&lt;pre&gt;INSERT INTO names VALUES (&#039;Dominic&#039;); DROP TABLE names; --&#039;); &lt;/pre&gt;
&lt;p&gt;
The name will be inserted, but the database will also delete the entire
table. This is a fairly tame example, and in reality, a SQL injection
usually means that an attacker can take near full control of the
database and the machine hosting it. &lt;/p&gt;
&lt;p&gt;The ‘right’ way to defend against it is to use parameterised and
pre-compiled SQL statements so that anything you input cannot ‘break
out’ and run awry. It always pays to be safe, and so making sure the
application account has minimum database privileges, the database has
been securely configured and you have firewalled properly goes a long
way to either stopping an attacker in their tracks or making it easier
to spot them. Please note that ‘input validation’ is not the right way
to stop this, and those expensive Intrusion Prevention Systems and Web
Application Firewalls will not be able to either.&lt;/p&gt;&lt;p&gt;This was originally posted for &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.techleader.co.za/&#039;);&quot;  title=&quot;Tech Leader&quot; href=&quot;http://www.techleader.co.za/&quot;&gt;TechLeader&lt;/a&gt; at the &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.techleader.co.za/dominicwhite/2008/06/04/major-sa-websites-hacked-by-china-nobody-cares-about-your-web-20/&#039;);&quot;  title=&quot;Major SA websites hacked by China - nobody cares about your Web 2.0&quot; href=&quot;http://www.techleader.co.za/dominicwhite/2008/06/04/major-sa-websites-hacked-by-china-nobody-cares-about-your-web-20/&quot;&gt;following URL&lt;/a&gt;.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Fri, 06 Jun 2008 00:39:32 +0200</pubDate>
    <guid isPermaLink="false">http://singe.za.net/blog/archives/917-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>Blogging on TechLeader</title>
    <link>http://singe.za.net/blog/archives/916-Blogging-on-TechLeader.html</link>
            <category>Geek</category>
    
    <comments>http://singe.za.net/blog/archives/916-Blogging-on-TechLeader.html#comments</comments>
    <wfw:comment>http://singe.za.net/blog/wfwcomment.php?cid=916</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://singe.za.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=916</wfw:commentRss>
    

    <author>nospam@example.com (Dominic White)</author>
    <content:encoded>
    The guys over at the Mail &amp;amp; Guardian invited me to write for their TechLeader group blog, it is available &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.techleader.co.za/dominicwhite/&#039;);&quot;  href=&quot;http://www.techleader.co.za/dominicwhite/&quot; title=&quot;Dominic White on Tech Leader&quot;&gt;here&lt;/a&gt;. I will be reposting content here after it goes live there. The audience is more technical and less security and the writing will attempt to reflect that.
  
    </content:encoded>

    <pubDate>Fri, 06 Jun 2008 00:35:00 +0200</pubDate>
    <guid isPermaLink="false">http://singe.za.net/blog/archives/916-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
</item>
<item>
    <title>SABC Blacklisted by Google</title>
    <link>http://singe.za.net/blog/archives/915-SABC-Blacklisted-by-Google.html</link>
            <category>Security</category>
    
    <comments>http://singe.za.net/blog/archives/915-SABC-Blacklisted-by-Google.html#comments</comments>
    <wfw:comment>http://singe.za.net/blog/wfwcomment.php?cid=915</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://singe.za.net/blog/rss.php?version=2.0&amp;type=comments&amp;cid=915</wfw:commentRss>
    

    <author>nospam@example.com (Dominic White)</author>
    <content:encoded>
    
&lt;p&gt;I&#039;ve been ranting about the SQL injections for a while now. While infecting your visitors with malicious software semi-silently generally doesn&#039;t put the pressure on the right people (i.e. the externality lies on the infected user not the infecting business), having your organisation blacklisted by Google shifts that externality. Here are the screenshots of Google warning me that the South African Broadcasting Company (SABC) may harm my computer. Check it yourself by googling &#039;&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.google.co.za/search?q=sabc&#039;);&quot;  href=&quot;http://www.google.co.za/search?q=sabc&quot; title=&quot;Google for SABC&quot;&gt;sabc&lt;/a&gt;&#039;. At the time of writing, the SABC had fixed the page.&lt;/p&gt; 
&lt;p&gt;&lt;a class=&quot;serendipity_image_link&quot; href=&quot;http://singe.za.net/blog/uploads/sabs_infected.png&quot;&gt;&lt;!-- s9ymdb:74 --&gt;&lt;img height=&quot;82&quot; width=&quot;110&quot; class=&quot;serendipity_image_center&quot; style=&quot;border: 0px none ; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://singe.za.net/blog/uploads/sabs_infected.serendipityThumb.png&quot; alt=&quot;&quot;  /&gt;&lt;/a&gt;&lt;a class=&quot;serendipity_image_link&quot; href=&quot;http://singe.za.net/blog/uploads/sabs_infected2.png&quot;&gt;&lt;!-- s9ymdb:75 --&gt;&lt;img height=&quot;101&quot; width=&quot;110&quot; class=&quot;serendipity_image_center&quot; style=&quot;border: 0px none ; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://singe.za.net/blog/uploads/sabs_infected2.serendipityThumb.png&quot; alt=&quot;&quot;  /&gt;&lt;/a&gt;&lt;a class=&quot;serendipity_image_link&quot; href=&quot;http://singe.za.net/blog/uploads/sabs_infected3.png&quot;&gt;&lt;!-- s9ymdb:76 --&gt;&lt;img height=&quot;82&quot; width=&quot;110&quot; class=&quot;serendipity_image_center&quot; style=&quot;border: 0px none ; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://singe.za.net/blog/uploads/sabs_infected3.serendipityThumb.png&quot; alt=&quot;&quot;  /&gt;&lt;/a&gt;&lt;a class=&quot;serendipity_image_link&quot; href=&quot;http://singe.za.net/blog/uploads/sabs_infected4.png&quot;&gt;&lt;!-- s9ymdb:77 --&gt;&lt;img height=&quot;98&quot; width=&quot;110&quot; class=&quot;serendipity_image_center&quot; style=&quot;border: 0px none ; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://singe.za.net/blog/uploads/sabs_infected4.serendipityThumb.png&quot; alt=&quot;&quot;  /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Strangly enough, of the almost 100 other infected SA domains, the only other two South African domains blacklisted were:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;gowerpower.co.za&lt;/li&gt;&lt;li&gt;4hair.co.za and fourhair.co.za&lt;/li&gt;&lt;li&gt;saart.net&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;While we&#039;re at it, I&#039;ve found the following *new* domains injected into SA sites:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;nihaoel3.com - 21 700 (International), 2 (Local)&lt;/li&gt;&lt;li&gt;qiqigm.com - 80 500, 3&lt;/li&gt;&lt;li&gt;woai117.cn - 5, 1&lt;/li&gt;&lt;/ol&gt;Finally, as a last, unrelated, poke in the eye, it seems the &#039;&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.ihrn.gov.za/&#039;);&quot;  href=&quot;http://www.ihrn.gov.za/&quot;&gt;International Housing Research Network&lt;/a&gt;&#039; a .gov.za site has had it&#039;s forums defaced (they&#039;ve been contacted):&lt;p&gt;&lt;a class=&quot;serendipity_image_link&quot; href=&quot;http://singe.za.net/blog/uploads/ihrn.gov.za.png&quot;&gt;&lt;!-- s9ymdb:78 --&gt;&lt;img height=&quot;95&quot; width=&quot;110&quot; class=&quot;serendipity_image_center&quot; style=&quot;border: 0px none ; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://singe.za.net/blog/uploads/ihrn.gov.za.serendipityThumb.png&quot; alt=&quot;&quot;  /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;
&lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 02 Jun 2008 23:48:02 +0200</pubDate>
    <guid isPermaLink="false">http://singe.za.net/blog/archives/915-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
</item>

</channel>
</rss>