<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title><![CDATA[[SecurityRatty] tag: sql]]></title>
    <link>http://securityratty.com/tag/sql</link>
    <description></description>
    <pubDate>Fri, 09 May 2008 08:42:32 +0000</pubDate>
    <generator>iRatty Engine</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <item>
      <title><![CDATA[Bots + Web Vulnerabilites - An Approaching Storm]]></title>
      <link>http://securityratty.com/article/893040859e1ca22aec3d362ff7acf6ef</link>
      <guid>http://securityratty.com/article/893040859e1ca22aec3d362ff7acf6ef</guid>
      <description><![CDATA[I called this one the day after the first wave of mass SQL Injection attacks came out. I told Jeremiah that we would see botnets doing this attack shortly as it was much more efficient. A few weeks...]]></description>
      <content:encoded><![CDATA[<p>I called this one the day after the first wave of mass SQL Injection attacks came out. I told Jeremiah that we would see botnets doing this attack shortly as it was much more efficient.   A few weeks later and boom, <a href="http://www.darkreading.com/document.asp?doc_id=153921&amp;WT.svl=news1_2" target="_blank">Botnets performing mass SQL Injection</a>.</p>
<p>The interesting things about these attacks so far is what they are actually doing. They are not attempting to steal data out of these databases directly, they are populating the pages with links that attempt to do drive by malware installs by exploiting browser vulnerabilities. It was pretty successful but SQL Injection is a  vulnerability  that is on the decline (and will decline even more after this attack). I begin thinking about vulnerabilities that would do the same thing but have a much broader reach.</p>
<p>Our good friends <a href='http://www.grumpysecurityguy.com/wp-content/plugins/wp-affiliate-pro.php?id=9' onmouseover="top.window.status='http://www.cgisecurity.com/articles/xss-faq.shtml'; return true" onmouseout="top.window.status=''; return true" target="_blank">XSS</a> and CSRF.</p>
<p>So here is the attack.</p>
<ol>
<li>Find a few permanent XSS vulnerabilities in some high traffic sites.</li>
<li>Find some CRSF vulns in popular blog and forum software.</li>
<li>Craft your payload.</li>
<li>Profit!</li>
</ol>
<p>So the bot software basically sits back and waits until the computer it is on visits a vulnerable site and then places it payload in the vulnerable spot. It could of course do this without you visiting a site with a little more coding to check if you are permanently logged in.</p>
<p>Considering the number of sites with XSS and CSRF this attack would dwarf the current SQL Injection attack happening today.</p>
<p class="addtoany_share_save">
    <a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?sitename=Grumpy%20Security%20Guy&amp;siteurl=http%3A%2F%2Fwww.grumpysecurityguy.com%2F&amp;linkname=Bots%20%2B%20Web%20Vulnerabilites%20-%20An%20Approaching%20Storm&amp;linkurl=http%3A%2F%2Fwww.grumpysecurityguy.com%2Fbots-web-vulnerabilites-approaching-storm%2F"><img src="http://www.grumpysecurityguy.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" border="0" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">a2a_linkname="Bots + Web Vulnerabilites - An Approaching Storm";a2a_linkurl="http://www.grumpysecurityguy.com/bots-web-vulnerabilites-approaching-storm/";</script>
    <script type="text/javascript" src="http://www.addtoany.com/menu/page.js"></script>

	</p><div class="aizattos_related_posts"><span class="aizattos_related_posts_header" >Related Posts</span><ul><li><span class="aizattos_related_posts_title">No related posts</span></li></ul></div><p>Post from: <a href="http://www.grumpysecurityguy.com">Grumpy Security Guy</a></p>
<p><a href="http://www.grumpysecurityguy.com/bots-web-vulnerabilites-approaching-storm/">Bots + Web Vulnerabilites - An Approaching Storm</a></p>

<p><a href="http://feeds.feedburner.com/~a/GrumpySecurityGuy?a=VesRTp"><img src="http://feeds.feedburner.com/~a/GrumpySecurityGuy?i=VesRTp" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/GrumpySecurityGuy?a=FSTwvH"><img src="http://feeds.feedburner.com/~f/GrumpySecurityGuy?i=FSTwvH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/GrumpySecurityGuy?a=gDDFYH"><img src="http://feeds.feedburner.com/~f/GrumpySecurityGuy?i=gDDFYH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/GrumpySecurityGuy?a=AtF4vh"><img src="http://feeds.feedburner.com/~f/GrumpySecurityGuy?i=AtF4vh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/GrumpySecurityGuy?a=UDqNHh"><img src="http://feeds.feedburner.com/~f/GrumpySecurityGuy?i=UDqNHh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/GrumpySecurityGuy?a=VgVW5H"><img src="http://feeds.feedburner.com/~f/GrumpySecurityGuy?i=VgVW5H" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/GrumpySecurityGuy?a=MF2nAH"><img src="http://feeds.feedburner.com/~f/GrumpySecurityGuy?i=MF2nAH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/GrumpySecurityGuy?a=XDDBTH"><img src="http://feeds.feedburner.com/~f/GrumpySecurityGuy?i=XDDBTH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/GrumpySecurityGuy?a=oZzIrh"><img src="http://feeds.feedburner.com/~f/GrumpySecurityGuy?i=oZzIrh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/GrumpySecurityGuy?a=A3zeMh"><img src="http://feeds.feedburner.com/~f/GrumpySecurityGuy?i=A3zeMh" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/GrumpySecurityGuy/~4/291217130" height="1" width="1"/>]]></content:encoded>
      <pubDate>Thu, 15 May 2008 17:55:13 +0000</pubDate>
      <category domain="http://securityratty.com/tag/vulnerabilities">vulnerabilities</category>
      <category domain="http://securityratty.com/tag/permanent xss vulnerabilities">permanent xss vulnerabilities</category>
      <category domain="http://securityratty.com/tag/xss">xss</category>
      <category domain="http://securityratty.com/tag/sql injection">sql injection</category>
      <category domain="http://securityratty.com/tag/attack shortly">attack shortly</category>
      <category domain="http://securityratty.com/tag/attack">attack</category>
      <category domain="http://securityratty.com/tag/mass sql injection">mass sql injection</category>
      <category domain="http://securityratty.com/tag/web vulnerabilites">web vulnerabilites</category>
      <category domain="http://securityratty.com/tag/browser vulnerabilities">browser vulnerabilities</category>
      <source url="http://feeds.feedburner.com/~r/GrumpySecurityGuy/~3/291217130/">Bots + Web Vulnerabilites - An Approaching Storm</source>
    </item>
    <item>
      <title><![CDATA[Giving SQL Injection the Respect it Deserves]]></title>
      <link>http://securityratty.com/article/57d875bb80f61dde372def8fc9b27b27</link>
      <guid>http://securityratty.com/article/57d875bb80f61dde372def8fc9b27b27</guid>
      <description><![CDATA[Hello, Michael here
You may have read recently about a large number of Web servers that were compromised through a SQL injection attack. The malicious SQL payload is very well designed, somewhat...]]></description>
      <content:encoded><![CDATA[&nbsp; 
<P>Hello, Michael here...</P>
<P>You may have <A href="http://blogs.iis.net/bills/archive/2008/04/25/sql-injection-attacks-on-iis-web-servers.aspx">read</A> recently about a <A href="http://blog.washingtonpost.com/securityfix/2008/04/hundreds_of_thousands_of_micro_1.html">large number of Web servers</A> that were compromised through a SQL injection attack. The malicious SQL payload is very well designed, somewhat database schema agnostic and generic &nbsp;so it could compromise as many database servers as possible. While the attack was a SQL injection attack that attacked and compromised back-end databases courtesy of vulnerable Web pages, from a user's perspective the real attack was compromised Web pages that serve up malware to attack user's through their browsers. In essence, there were two sets of victims: the Web site operators and the users who visited the affected Web sites. In this post, I want to focus on what the first set of users, the Web site operators, can do to protect themselves.</P>
<P>The fact that the malicious payload was so generic shows that the science of SQL injection has not taken a back seat to research in other vulnerability types, such as buffer overflows or cross-site scripting issues. </P>
<P>I think the first lesson from this attack is this:</P>
<P>If you have a Web server (doesn't matter what type), and it's hooked up to a database (doesn't matter what type) you need to go in and review your code that performs the database work.</P>
<P>So now that you've determined the database access code, now what? The SDL is very specific about what do here, there are three requirements - they are requirements not recommendations, which means you must do the following coding requirements and defenses</P>
<UL>
<LI>Use SQL Parameterized Queries</LI>
<LI>Use Stored Procedures</LI>
<LI>Use SQL Execute-only Permission</LI></UL>
<H2>Use SQL Parameterized Queries</H2>
<P>From the SDL documentation: </P>
<P>"Applications accessing a database must do so only using parameterized queries.</P>
<P>Creating dynamic queries using string concatenation potentially allows an attacker to execute an arbitrary query through the application. This vulnerability allows for unauthorized, interactive, logon to a SQL server which may result in the execution of malicious commands leading to the possible modification (or deletion) of Operating System or user data. </P>
<P>Combining the use of parameterized queries and stored procedures helps to mitigate the risk of successful exploitation of user input which is not correctly verified."</P>
<P>This defense has been known about forever; heck, <A href="http://blogs.msdn.com/david_leblanc/">David</A> and I discussed this in detail in the first edition of Writing Secure Code in 2002:</P>
<P>From page 320, "Another way to perform this kind of processing is to use <I>placeholders</I> which are often referred to as <I>parameterized commands</I>."</P>
<P>Just about every database access technology supports parameterized queries; work out what they are for your DB technology and use them: the defense for a PHP/MySQL combo will not be the same as a C#/SQL Server combo.</P>
<P>The most likely cause of these recent compromises is using string concatenation to build SQL statements. Just don't do it, even if you think you're safe, just don't use string concatenation to build SQL statements! There are some very specialized cases where string concatenation is valid, but they are rare, especially for Web apps. In my opinion, any use of string concatenation in a Web application is a high-priority bug. </P>
<H2>Use Stored Procedures</H2>
<P>From the SDL documentation: </P>
<P>"Applications accessing databases should do so only using stored procedures. "</P>
<P>-and-</P>
<P>"Do not use "exec @sql" construct in your stored procedures.</P>
<P>Using stored procedures helps to mitigate the SQL injection threat to a great extent since type checking is available for parameters. If the attacker supplies input that does not match the type constraints the stored procedures will throw an exception. In the vast majority of the cases, this should be properly handled within the application. </P>
<P>However, if the stored procedures perform string manipulation in their code and then execute that query using the "exec @sql" construct incorrect handling of user input can produce the same SQL injection vulnerability as would be seen at the application layer."</P>
<P>Note the words "help mitigate," by themselves stored procedures do not remove SQL injection vulnerabilities; they just raise the bar on the attacker by hiding much of the underlying database schema from the attacker.</P>
<H2>Use SQL Execute-only Permission</H2>
<P>This next defense is interesting in that it is a defense in depth method; in this case it assumes the attacker has successfully found a SQL injection bug in your code. Now what? Thankfully, this defense will stop most every attack dead in its tracks.</P>
<P>From the SDL documentation:</P>
<P>&nbsp;"Only grant ‘execute' permission on all stored procedures, and grant that permission only for the application domain group. </P>
<P>Ensure that this group is granted execute permissions only on your stored procedures. Do not grant any other permission on your database to any other user or group."</P>
<P>This is a great defense, because if the attacker attempts to access any other database object other than through a stored procedure (you can use views also), the underlying database permissions model prevents the attack by denying access to the attacker.</P>
<P>It's interesting that the SDL offers three SQL injection requirements; only one actually remedies the problem (secure by design) and the other two offer mores defenses assuming failure (secure by default.)</P>
<P>Of course, a simple set of rules is not a substitute for careful design, implementation, and test. The SDL is a holistic process that covers the software lifecycle end-to-end, so don't mistake these simple rules as a guarantee that you will avoid SQL injection problems. You need to understand the situations in which the rules apply. You may find, for example, that string concatenation is the best - or perhaps only - solution to a particular problem and these rules may not guard against SQL injection in those situations. Follow secure development practice throughout the lifecycle of your project - including things we left out of this blog, like testing and security response, for best results.</P><img src="http://blogs.msdn.com/aggbug.aspx?PostID=8508828" width="1" height="1">]]></content:encoded>
      <pubDate>Thu, 15 May 2008 14:45:00 +0000</pubDate>
      <category domain="http://securityratty.com/tag/sql">sql</category>
      <category domain="http://securityratty.com/tag/sql injection bug">sql injection bug</category>
      <category domain="http://securityratty.com/tag/sql injection requirements">sql injection requirements</category>
      <category domain="http://securityratty.com/tag/sql injection attack">sql injection attack</category>
      <category domain="http://securityratty.com/tag/sql server">sql server</category>
      <category domain="http://securityratty.com/tag/sql execute-only permission">sql execute-only permission</category>
      <category domain="http://securityratty.com/tag/malicious sql payload">malicious sql payload</category>
      <category domain="http://securityratty.com/tag/sql injection">sql injection</category>
      <category domain="http://securityratty.com/tag/sql injection vulnerability">sql injection vulnerability</category>
      <source url="http://blogs.msdn.com/sdl/archive/2008/05/15/giving-sql-injection-the-respect-it-deserves.aspx">Giving SQL Injection the Respect it Deserves</source>
    </item>
    <item>
      <title><![CDATA[Got Your XPShield up and Running?]]></title>
      <link>http://securityratty.com/article/42b263dc3ac22080df82e2fb10532f18</link>
      <guid>http://securityratty.com/article/42b263dc3ac22080df82e2fb10532f18</guid>
      <description><![CDATA[Don't. Continuing previous posts with three different portfolios of fake security software , and Zlob malware variants posing as video codecs , the rogue security application XP Shield is the latest...]]></description>
      <content:encoded><![CDATA[<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_wICHhTiQmrA/SCyO4ntDW6I/AAAAAAAABtY/nY8NJdPmMdI/s1600-h/xp-shield_rogue_software.png"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp3.blogger.com/_wICHhTiQmrA/SCyO4ntDW6I/AAAAAAAABtY/nY8NJdPmMdI/s200/xp-shield_rogue_software.png" alt="" id="BLOGGER_PHOTO_ID_5200688773087845282" border="0" /></a>Don't. Continuing previous posts with <a href="http://ddanchev.blogspot.com/2008/04/localized-fake-security-software.html">three different portfolios of fake security software</a>, and <a href="http://ddanchev.blogspot.com/2008/03/portfolio-of-fake-video-codecs.html">Zlob malware variants posing as video codecs</a>, the rogue security application XP Shield is the latest addition to the never ending list, with the following domains participating in the campaign :<br /><br /><span style="font-weight: bold;">xp-shield.com</span> <span style="font-weight: bold;"><br />xpshield.com</span> <span style="font-weight: bold;"><br />xpantiviruspro.com</span> <span style="font-weight: bold;"><br />xpantivirussecurity.com</span> <span style="font-weight: bold;"><br />xponlinescanner.com</span> <span style="font-weight: bold;"><br />xpprotectionsoftware.com</span> <span style="font-weight: bold;"><br />xpantivirussite.com</span> <span style="font-weight: bold;"><br />antivi</span><span style="font-weight: bold;">rus2008x.com</span> <span style="font-weight: bold;"><br />securityscannersite.com</span> <span style="font-weight: bold;"><br />antivirus-xp.awardspace.us</span> <span style="font-weight: bold;"><br />xpantivirus.awardspace.co.uk</span><br /><br />The detection rates for the time being :<br /><br /><span id="status_nombre">XPShieldSetup.exe</span><br /><span style="font-weight: bold;">Scanners result</span> : 1/32 (3.13%)<br /><span style="font-weight: bold;">File size</span>: 517632 bytes<br /><span style="font-weight: bold;">MD5</span>...: 99c7271ac88edc56e1d89c9f738f889c<br /><span style="font-weight: bold;">SHA1</span>..: 3347564017d289ffd116f70faa712e05883358f4<br /><br /><span id="status_nombre">XPantivirus2008_v880381.exe<br /><span style="font-weight: bold;">Scanners result</span> : 4/32 (12.5%)<br /></span><span style="font-weight: bold;">File size</span>: 65024 bytes<br /><span style="font-weight: bold;">MD5</span>...: ef9024963b1d08653dcc8d8b0d992998<br /><span style="font-weight: bold;">SHA1</span>..: 436bf47403e0840d423765cf35cf9dea76d289a5<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_wICHhTiQmrA/SCyPy3tDW7I/AAAAAAAABtg/80rBrslYKwU/s1600-h/xp-shield_rogue_software_2.PNG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp0.blogger.com/_wICHhTiQmrA/SCyPy3tDW7I/AAAAAAAABtg/80rBrslYKwU/s200/xp-shield_rogue_software_2.PNG" alt="" id="BLOGGER_PHOTO_ID_5200689773815225266" border="0" /></a>How would the end user reach these domains from a malicious attacker's perspective at the first place? Once being redirected to them through an already SQL injected or iFrame embedded legitimate site, with evidence of the practice seen in the majority of <a href="http://ddanchev.blogspot.com/2008/03/massive-iframe-seo-poisoning-attack.html">massive iFrame, SEO poisoning and SQL injections campaigns</a> from the <a href="http://ddanchev.blogspot.com/2008/03/wiredcom-and-historycom-getting-rbn-ed.html">last couple of months</a>.<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?a=2oWqZH"><img src="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?i=2oWqZH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?a=2NpRFH"><img src="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?i=2NpRFH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?a=Sh51vh"><img src="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?i=Sh51vh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?a=x7PSTh"><img src="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?i=x7PSTh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?a=QGnDwH"><img src="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?i=QGnDwH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?a=1D8AMH"><img src="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?i=1D8AMH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?a=kmvKYh"><img src="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?i=kmvKYh" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DanchoDanchevOnSecurityAndNewMedia/~4/291155947" height="1" width="1"/>]]></content:encoded>
      <pubDate>Thu, 15 May 2008 10:44:12 +0000</pubDate>
      <category domain="http://securityratty.com/tag/sql">sql</category>
      <category domain="http://securityratty.com/tag/sql injections campaigns">sql injections campaigns</category>
      <category domain="http://securityratty.com/tag/scanners result">scanners result</category>
      <category domain="http://securityratty.com/tag/massive iframe">massive iframe</category>
      <category domain="http://securityratty.com/tag/rogue security application">rogue security application</category>
      <category domain="http://securityratty.com/tag/zlob malware variants">zlob malware variants</category>
      <category domain="http://securityratty.com/tag/iframe">iframe</category>
      <category domain="http://securityratty.com/tag/fake security software">fake security software</category>
      <category domain="http://securityratty.com/tag/video codecs">video codecs</category>
      <source url="http://feeds.feedburner.com/~r/DanchoDanchevOnSecurityAndNewMedia/~3/291155947/got-your-xpshield-up-and-running.html">Got Your XPShield up and Running?</source>
    </item>
    <item>
      <title><![CDATA[Phishing botnet expands by hacking legit sites]]></title>
      <link>http://securityratty.com/article/edcb933c82420c2eaeb7b49494928133</link>
      <guid>http://securityratty.com/article/edcb933c82420c2eaeb7b49494928133</guid>
      <description><![CDATA[The Asprox botnet is now using a SQL injection attack tool aimed at hacking legitimate Web sites to try to add more hijacked PCs to its collection, a security researcher said...]]></description>
      <content:encoded><![CDATA[The Asprox botnet is now using a SQL injection attack tool aimed at hacking  legitimate Web sites to try to add more hijacked PCs to its collection, a security researcher said today.
<p><a href="http://feeds.computerworld.com/~a/Computerworld/Security/News?a=0vfe5y"><img src="http://feeds.computerworld.com/~a/Computerworld/Security/News?i=0vfe5y" border="0"></img></a></p><img src="http://feeds.computerworld.com/~r/Computerworld/Security/News/~4/290411578" height="1" width="1"/>]]></content:encoded>
      <pubDate>Wed, 14 May 2008 09:00:00 +0000</pubDate>
      <category domain="http://securityratty.com/tag/security researcher">security researcher</category>
      <category domain="http://securityratty.com/tag/web sites">web sites</category>
      <category domain="http://securityratty.com/tag/asprox botnet">asprox botnet</category>
      <category domain="http://securityratty.com/tag/pcs">pcs</category>
      <category domain="http://securityratty.com/tag/collection">collection</category>
      <source url="http://feeds.computerworld.com/~r/Computerworld/Security/News/~3/290411578/article.do">Phishing botnet expands by hacking legit sites</source>
    </item>
    <item>
      <title><![CDATA[Phishing botnet expands by hacking legit sites]]></title>
      <link>http://securityratty.com/article/9a79c84a51222caebb98039ed69943c1</link>
      <guid>http://securityratty.com/article/9a79c84a51222caebb98039ed69943c1</guid>
      <description><![CDATA[A botnet is now using a SQL-injection attack tool designed to hack legitimate Web sites, a move meant to add more hijacked PCs to its collection, according to a security...]]></description>
      <content:encoded><![CDATA[A botnet is now using a SQL-injection attack tool designed to hack legitimate Web sites, a move meant to add more hijacked PCs to its collection, according to a security researcher.<p><A href="http://ad.doubleclick.net/jump/idg.us.nwf.rss/security;sz=468x60;ord=70668?">
<IMG src="http://ad.doubleclick.net/ad/idg.us.nwf.rss/security;sz=468x60;ord=70668?" border="0" width="468" height="60"></A>
</p>]]></content:encoded>
      <pubDate>Tue, 13 May 2008 20:00:00 +0000</pubDate>
      <category domain="http://securityratty.com/tag/sql-injection attack tool">sql-injection attack tool</category>
      <category domain="http://securityratty.com/tag/web sites">web sites</category>
      <category domain="http://securityratty.com/tag/botnet">botnet</category>
      <category domain="http://securityratty.com/tag/security researcher">security researcher</category>
      <category domain="http://securityratty.com/tag/move">move</category>
      <category domain="http://securityratty.com/tag/collection">collection</category>
      <category domain="http://securityratty.com/tag/hack">hack</category>
      <category domain="http://securityratty.com/tag/pcs">pcs</category>
      <source url="http://www.networkworld.com/news/2008/051408-phishing-botnet-expands-by-hacking.html?fsrc=rss-security">Phishing botnet expands by hacking legit sites</source>
    </item>
    <item>
      <title><![CDATA[Check SQL Server database and log file size with this stored procedure]]></title>
      <link>http://securityratty.com/article/b5a1759df112ed4503fa3def16d34e79</link>
      <guid>http://securityratty.com/article/b5a1759df112ed4503fa3def16d34e79</guid>
      <description><![CDATA[Knowing the size of a SQL Server database is one of the many DBA responsibilities that you can accomplish easily with the stored procedure sp SDS. Not only will sp SDS determine &quot;SQL Database Space,&quot;...]]></description>
      <content:encoded><![CDATA[Knowing the size of a SQL Server database is one of the many DBA responsibilities that you can  accomplish easily with the stored procedure sp_SDS. Not only will sp_SDS determine "SQL Database Space," but it can also be used to monitor database growth, alert a DBA on data or log file growth, execute a transaction log backup and even provide a detailed breakdown at the file level so a DBA can then shrink files with the most empty space.<img src="http://feeds.feedburner.com/~r/WhatisEnterpriseItTipsAndExpertAdvice/~4/289543019" height="1" width="1"/>]]></content:encoded>
      <pubDate>Tue, 13 May 2008 08:06:09 +0000</pubDate>
      <category domain="http://securityratty.com/tag/sql server database">sql server database</category>
      <category domain="http://securityratty.com/tag/sds">sds</category>
      <category domain="http://securityratty.com/tag/sql database space">sql database space</category>
      <category domain="http://securityratty.com/tag/log file growth">log file growth</category>
      <category domain="http://securityratty.com/tag/sds determine">sds determine</category>
      <category domain="http://securityratty.com/tag/monitor database growth">monitor database growth</category>
      <category domain="http://securityratty.com/tag/dba">dba</category>
      <category domain="http://securityratty.com/tag/transaction log backup">transaction log backup</category>
      <category domain="http://securityratty.com/tag/accomplish easily">accomplish easily</category>
      <source url="http://feeds.feedburner.com/~r/WhatisEnterpriseItTipsAndExpertAdvice/~3/289543019/0,289483,sid87_gci1313431,00.html">Check SQL Server database and log file size with this stored procedure</source>
    </item>
    <item>
      <title><![CDATA[Stealing Sensitive Databases Online - the SQL Style]]></title>
      <link>http://securityratty.com/article/6fd11fadd38d6753640de4546ce6057f</link>
      <guid>http://securityratty.com/article/6fd11fadd38d6753640de4546ce6057f</guid>
      <description><![CDATA[In a perfect world from a malicious SQL-ers perspective, mom and pop E-shops filling market niches and generating modest but noticeable revenue streams, have their E-shops vulnerable and exploitable...]]></description>
      <content:encoded><![CDATA[<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_wICHhTiQmrA/SCczJntDWxI/AAAAAAAABsM/TyNu4UiDkjw/s1600-h/SQL_CC_Extraction.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp2.blogger.com/_wICHhTiQmrA/SCczJntDWxI/AAAAAAAABsM/TyNu4UiDkjw/s200/SQL_CC_Extraction.jpg" alt="" id="BLOGGER_PHOTO_ID_5199180535192312594" border="0" /></a>In a perfect world from a malicious SQL-ers perspective, mom and pop E-shops filling market niches and generating modest but noticeable revenue streams, have their E-shops vulnerable and exploitable to web application vulnerabilities, with their <a href="http://www.evilsql.com/main/page2.php">SQL databases available for extraction</a> in an unencrypted form.<br /><br />In reality, reconnaissance through search engine's indexes to build a hit list of E-shops with a higher probability for exploitation, is what malicious attackers who lack the skills and capacity to build a botnet, even invest money into renting one on demand and collecting the output in the form of credit cards numbers and accounting data, have been doing for the past of couple of years. Moreover, as I've already pointed out and provided relevant examples, it's perhaps even more disturbing to see <a href="http://ddanchev.blogspot.com/2007/07/sql-injection-through-search-engines.html">the automated process of building such hitlists</a>, verifying that they're exploitable, remotely exploiting them by embedding malicious links within their pages, and of this made possible through the use of botnets.<br /><br />The whole is greater than the sum of its parts, and while some are putting time and efforts into figuring out whether or not a specific vulnerability is exploited, and through the use of which hundreds of thousands web sites again end up injected with automatically loading links to malicious domains, the bad guys are keeping it simple, sometimes way too simple to end up with the most successful and efficient ways to achieve their objectives. Furthermore, <a href="http://www.theregister.co.uk/2008/04/29/mcafee_hacker_safe_sites_vulnerable/">waging verbal warfare</a> on whether or not <a href="http://jeremiahgrossman.blogspot.com/2008/01/scanalert-xss-is-not-our-problem.html">XSS are a greater security risk than currently perceived</a>, is definitely making a lot of malicious attackers out there enjoy the lack of situational awareness of those who are supposed to have a better grasp of what they're up to, not what they might be up to.<br /><br />The bottom line - from a malicious economies of scale perspective, are <a href="http://ddanchev.blogspot.com/2008/04/united-nations-serving-malware.html">massive SQL injections attacks serving malware</a> to a speculated number of hundreds of thousands  <a href="http://ddanchev.blogspot.com/2008/03/massive-iframe-seo-poisoning-attack.html">susceptible to clien-side attacks exploitation site visitors</a>, more effective, than obtaining the low-hanging databases in a site-specific vulnerability manner? Depends entirely on what the bad guys are trying to obtain, access to as many infected hosts as possible to be later on used for phishing, spamming, stepping stones, hosting and distribution of malware and conducting OSINT for corporate espionage by segmenting the infected population into organizations of importance, or access to "the whole" benefits package coming with having a complete access over an Internet connected host.<div class="feedflare">
<a href="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?a=iVzmuH"><img src="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?i=iVzmuH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?a=dIO9zH"><img src="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?i=dIO9zH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?a=RY2udh"><img src="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?i=RY2udh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?a=YK7knh"><img src="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?i=YK7knh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?a=MvNqgH"><img src="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?i=MvNqgH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?a=5qeEVH"><img src="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?i=5qeEVH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?a=E9ySph"><img src="http://feeds.feedburner.com/~f/DanchoDanchevOnSecurityAndNewMedia?i=E9ySph" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/DanchoDanchevOnSecurityAndNewMedia/~4/288485481" height="1" width="1"/>]]></content:encoded>
      <pubDate>Sun, 11 May 2008 21:13:00 +0000</pubDate>
      <category domain="http://securityratty.com/tag/databases">databases</category>
      <category domain="http://securityratty.com/tag/pop e-shops">pop e-shops</category>
      <category domain="http://securityratty.com/tag/e-shops">e-shops</category>
      <category domain="http://securityratty.com/tag/site-specific vulnerability manner">site-specific vulnerability manner</category>
      <category domain="http://securityratty.com/tag/specific vulnerability">specific vulnerability</category>
      <category domain="http://securityratty.com/tag/complete access">complete access</category>
      <category domain="http://securityratty.com/tag/malicious attackers">malicious attackers</category>
      <category domain="http://securityratty.com/tag/access">access</category>
      <category domain="http://securityratty.com/tag/bad guys">bad guys</category>
      <source url="http://feeds.feedburner.com/~r/DanchoDanchevOnSecurityAndNewMedia/~3/288485481/stealing-sensitive-databases-online-sql.html">Stealing Sensitive Databases Online - the SQL Style</source>
    </item>
    <item>
      <title><![CDATA[NSA Attacks West Point! Relax, It's a Cyberwar Game]]></title>
      <link>http://securityratty.com/article/f11d60d6da0ea55d61cdb03f3578daa6</link>
      <guid>http://securityratty.com/article/f11d60d6da0ea55d61cdb03f3578daa6</guid>
      <description><![CDATA[Five hours into their assault on West Point, the hackers got serious
The SQL [structured query language] inserts that came earlier were just pablum intended to lull the Army cadets into a false sense...]]></description>
      <content:encoded><![CDATA[<p>Five hours into their assault on West Point, the hackers got serious. 
</p>

<p>
The SQL [structured query language] inserts that came earlier were just pablum intended to lull the Army cadets into a false sense of security. But then the bad guys unleashed a stealthy kernel-level rootkit that burrowed into one workstation, started scraping data and "calling home."
</p>

<p>
It was a highly sophisticated attack, but this time the bad guys were really good guys in wolves' clothing.
</p>

<p>
For four days in late April, the National Security Agency -- the nation's most secretive repository of spooks, snoops and electronic eavesdroppers -- directed coordinated assaults on custom-built networks at seven of the nation's military academies, including West Point, the Army university 50 miles north of New York City.
</p>

<p>
It was all part of the seventh annual Cyber Defense Exercise, a training event for future military IT specialists. The exercise offered a rare window into the NSA's toolkit for infiltrating, corrupting or destroying computer networks.
</p>

<p>
The 34 Army cadets comprising the West Point IT team operated in a different kind of battlefield, but their combat skills and instincts need to be every bit as sharp. Like George Washington said: "There is nothing so likely to produce peace as to be well prepared to meet the enemy."
</p>

<p>
The SQL injections, targeting their Fedora Core 8 Web server, were a piece of cake for these IT combatants. Each injection tried to smuggle malicious code inside the seemingly harmless language used by the network’s MySQL software. The cadets handily defended with open source Apache web server modules, plus some manual tweaking of the SQL database to "avoid any surprises," in the words of Lt Col. Joe Adams, a West Point instructor who helped coach the team.
</p>

<p>
But the kernel-level rootkit was much more dangerous. This stealthy operating-system hijacker can open unseen "back doors" into even highly protected networks. When they detected the rootkit's "calls home" the cadets launched Sysinternal's security software to find the hijacker, then they manually scoured the workstation to find the unwelcome executable file. 
</p><p>
Then they terminated it. With extreme prejudice.
</p>
<p>
"This was probably the most challenging part of the exercise, since it required them to use some advanced techniques to find the rootkit," Adams says. And rooting it out helped boost the West Point team to the top of the pile when, in the aftermath of the exercise, the referees rated all the universities' network defenses.
</p>
<p>
For the second year in a row, the Army placed first over the Navy, Air Force, Coast Guard and others, winning geek bragging rights and the privilege of holding onto a gaudy, 60-pound brass trophy festooned with bald eagles and American flags. Adams credits the team’s thorough preparation and their excellent teamwork despite the round-the-clock schedule.
</p>
<!--pagebreak-->

<p>At the network control room on the second floor of West Point’s 200-year-old engineering building (which once was an indoor horse corral and still smells like it in some remote corners, according to one instructor), the IT team set up cots and, just for the hell of it, camouflaged netting. They worked in shifts, with one team member always monitoring incoming and outgoing traffic. He or she would alert other cadets -- "router guys" -- to block any suspicious addresses. Meanwhile, off-shift cadets would make food and coffee runs to keep everyone fueled up and alert. Together, the team was "faster than anyone else," Adams says.
</p>

<p>
But the way the cadets designed their network was a big factor in their victory, too. The NSA dictated some terms: All networks had to be capable of e-mail, chat and other services and had to be up and running at all times despite any attacks or defensive measures. Beyond that, the teams were free to come up with their own designs.
</p>

<p>
West Point's took three weeks to build. The cadets settled on a fairly standard Linux and FreeBSD-based network with advanced routing techniques for steering incoming traffic in directions of the IT team's choosing.
</p>

<p>
The choices in software tools for responding to any attack really boiled down to "automatic" versus "custom," says Eric Dean, a civilian programmer and instructor. He adds that while automatic tools that do most of their own work are certainly easier, custom tools that allow more manual tweaking are more effective. "I expect one of the 'lessons learned' will be the use of custom tools instead of automatics."
</p>

<p>
Even with a solid network design and passable software choices, there was an element of intuitiveness required to defend against the NSA, especially once it became clear the agency was using minor, and perhaps somewhat obvious, attacks to screen for sneakier, more serious ones.
</p>

<p>
"One of the challenges was when they see a scan, deciding if this is it, or if it’s a cover," says Dean. Spotting "cover" attacks meant thinking like the NSA -- something Dean says the cadets did quite well. "I was surprised at their creativity."
</p>

<p>
Legal limitations were a surprising obstacle to a realistic exercise. Ideally, the teams would be allowed to attack other schools' networks while also defending their own. But only the NSA, with its arsenal of waivers, loopholes, special authorizations (and heaven knows what else) is allowed to take down a U.S. network.
</p>

<p>
And despite the relative sophistication of the NSA's assaults, the agency told Wired.com that it had tailored its attacks to be just "a little too hard for the strongest undergraduate team to deal with, so that we could distinguish the strongest teams from the weaker ones."
</p>

<p>
In other words, grasshopper, nice work -- but the NSA is capable of much craftier network take-downs.
</p><br style="clear: both;"/>
      <a href="http://www.pheedo.com/click.phdo?s=0eebae201dd1f9c87fb47b2629d1bf60"><img alt="" style="border: 0;" border="0" src="http://www.pheedo.com/img.phdo?s=0eebae201dd1f9c87fb47b2629d1bf60"/></a>
  <img src="http://www.pheedo.com/feeds/tracker.php?i=0eebae201dd1f9c87fb47b2629d1bf60" style="display: none;" border="0" height="1" width="1" alt=""/><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/wired/politics/privacy?a=PBGxjH"><img src="http://feeds.feedburner.com/~f/wired/politics/privacy?i=PBGxjH" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/wired/politics/privacy?a=wwsfeh"><img src="http://feeds.feedburner.com/~f/wired/politics/privacy?i=wwsfeh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/wired/politics/privacy?a=HcZiLh"><img src="http://feeds.feedburner.com/~f/wired/politics/privacy?i=HcZiLh" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/wired/politics/privacy?a=MnJ3rH"><img src="http://feeds.feedburner.com/~f/wired/politics/privacy?i=MnJ3rH" border="0"></img></a>
 <a href="http://feeds.wired.com/~f/wired/politics/security?a=54tGLH"><img src="http://feeds.wired.com/~f/wired/politics/security?i=54tGLH" border="0"></img></a> <a href="http://feeds.wired.com/~f/wired/politics/security?a=CP1KJh"><img src="http://feeds.wired.com/~f/wired/politics/security?i=CP1KJh" border="0"></img></a> <a href="http://feeds.wired.com/~f/wired/politics/security?a=ieiu4h"><img src="http://feeds.wired.com/~f/wired/politics/security?i=ieiu4h" border="0"></img></a> <a href="http://feeds.wired.com/~f/wired/politics/security?a=rCn1GH"><img src="http://feeds.wired.com/~f/wired/politics/security?i=rCn1GH" border="0"></img></a> </div><img src="http://feeds.feedburner.com/~r/wired/politics/privacy/~4/287200226" height="1" width="1"/><img src="http://feeds.wired.com/~r/wired/politics/security/~4/287200227" height="1" width="1"/>]]></content:encoded>
      <pubDate>Fri, 09 May 2008 21:00:00 +0000</pubDate>
      <category domain="http://securityratty.com/tag/army university">army university</category>
      <category domain="http://securityratty.com/tag/army">army</category>
      <category domain="http://securityratty.com/tag/custom-built networks">custom-built networks</category>
      <category domain="http://securityratty.com/tag/networks">networks</category>
      <category domain="http://securityratty.com/tag/nsa">nsa</category>
      <category domain="http://securityratty.com/tag/army cadets">army cadets</category>
      <category domain="http://securityratty.com/tag/west">west</category>
      <category domain="http://securityratty.com/tag/cadets">cadets</category>
      <category domain="http://securityratty.com/tag/network">network</category>
      <source url="http://feeds.wired.com/~r/wired/politics/security/~3/287200227/nsa_cyberwargames">NSA Attacks West Point! Relax, It's a Cyberwar Game</source>
    </item>
    <item>
      <title><![CDATA[Using SQL syntax to override DB2 automatic column name generator on iSeries]]></title>
      <link>http://securityratty.com/article/9744b6f8a38b6c8abb3c05e4bd9d1707</link>
      <guid>http://securityratty.com/article/9744b6f8a38b6c8abb3c05e4bd9d1707</guid>
      <description><![CDATA[If you don't want to drop and recreate a table to change the internal names in your AS/400 DB2, a special SQL syntax can solve your...]]></description>
      <content:encoded><![CDATA[If you don't want to drop and recreate a table to change the internal names in your AS/400 DB2, a special SQL syntax can solve your problem.<img src="http://feeds.feedburner.com/~r/WhatisEnterpriseItTipsAndExpertAdvice/~4/286961899" height="1" width="1"/>]]></content:encoded>
      <pubDate>Fri, 09 May 2008 08:52:26 +0000</pubDate>
      <category domain="http://securityratty.com/tag/special sql syntax">special sql syntax</category>
      <category domain="http://securityratty.com/tag/as400 db2">as400 db2</category>
      <category domain="http://securityratty.com/tag/internal names">internal names</category>
      <category domain="http://securityratty.com/tag/solve">solve</category>
      <category domain="http://securityratty.com/tag/change">change</category>
      <category domain="http://securityratty.com/tag/table">table</category>
      <category domain="http://securityratty.com/tag/drop">drop</category>
      <source url="http://feeds.feedburner.com/~r/WhatisEnterpriseItTipsAndExpertAdvice/~3/286961899/0,289625,sid3_gci1312903,00.html">Using SQL syntax to override DB2 automatic column name generator on iSeries</source>
    </item>
    <item>
      <title><![CDATA[Making a file with an automatic key in iSeries with DDS keyword]]></title>
      <link>http://securityratty.com/article/5a3f3cb14c17e9c3fbedae2ed7663424</link>
      <guid>http://securityratty.com/article/5a3f3cb14c17e9c3fbedae2ed7663424</guid>
      <description><![CDATA[If you want to create an automatic key using a DDS keyword on AS/400, Kent Milligan explains that any native writes performed against an SQL table created with an identity table will result in DB2...]]></description>
      <content:encoded><![CDATA[If you want to create an automatic key using a DDS keyword on AS/400, Kent Milligan explains that any native writes performed against an SQL table created with an identity table will result in DB2 generating identity values.<img src="http://feeds.feedburner.com/~r/WhatisEnterpriseItTipsAndExpertAdvice/~4/286949752" height="1" width="1"/>]]></content:encoded>
      <pubDate>Fri, 09 May 2008 08:42:32 +0000</pubDate>
      <category domain="http://securityratty.com/tag/dds keyword">dds keyword</category>
      <category domain="http://securityratty.com/tag/automatic key">automatic key</category>
      <category domain="http://securityratty.com/tag/kent milligan explains">kent milligan explains</category>
      <category domain="http://securityratty.com/tag/native writes">native writes</category>
      <category domain="http://securityratty.com/tag/sql table">sql table</category>
      <category domain="http://securityratty.com/tag/identity table">identity table</category>
      <category domain="http://securityratty.com/tag/identity values">identity values</category>
      <category domain="http://securityratty.com/tag/db2">db2</category>
      <category domain="http://securityratty.com/tag/as400">as400</category>
      <source url="http://feeds.feedburner.com/~r/WhatisEnterpriseItTipsAndExpertAdvice/~3/286949752/0,289625,sid3_gci1312900,00.html">Making a file with an automatic key in iSeries with DDS keyword</source>
    </item>
  </channel>
</rss>
