<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>the future is here [just not evenly distributed] &#187; security</title>
	<atom:link href="http://nickdavis.name/blog/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://nickdavis.name/blog</link>
	<description>musings on technology, open source, research, and life</description>
	<lastBuildDate>Wed, 17 Dec 2008 00:24:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SQL injection attack on BusinessWeek</title>
		<link>http://nickdavis.name/blog/2008/09/17/sql-injection-attack-on-businessweek/</link>
		<comments>http://nickdavis.name/blog/2008/09/17/sql-injection-attack-on-businessweek/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 05:00:04 +0000</pubDate>
		<dc:creator>Nick Davis</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[BusinessWeek]]></category>
		<category><![CDATA[IDS]]></category>
		<category><![CDATA[SQL injection]]></category>
		<category><![CDATA[web attacks]]></category>

		<guid isPermaLink="false">http://argoneus.morpheus.net/blog/?p=72</guid>
		<description><![CDATA[SQL injection is nothing new, but it&#8217;s not every day that you read about a famous, widely-read journal like BusinessWeek getting hacked and distributing malware.  Apparently BusinessWeek readers were directed to download malware from a Russian site (that has since become unavailable).
SQL injection attacks are relatively easy to protect against.  One good way [...]]]></description>
			<content:encoded><![CDATA[<p>SQL injection is nothing new, but it&#8217;s not every day that you read about a famous, widely-read journal like <a href="http://www.businessweek.com">BusinessWeek</a> getting <a href="http://www.net-security.org/malware_news.php?id=990">hacked</a> and distributing malware.  Apparently BusinessWeek readers were directed to download malware from a Russian site (that has since become unavailable).</p>
<p>SQL injection attacks are relatively easy to protect against.  One good way to prevent SQL injection is to use <a href="http://en.wikipedia.org/wiki/SQL_injection#Using_Parameterized_Statements">parameterized statements</a>, also called prepared statements.  These involve the use of placeholders in SQL queries, which are later filled-in by the database with a subsequent call.  Thus, raw SQL is never executed, instead, a prepared query is created, and then its parameters are bound in order.  Here&#8217;s a simple example (in C++):</p>
<pre>stmt = "SELECT * from USER WHERE userID = ?";
/* ? is the parameter placeholder
 * stmt is prepared, and then the parameter is bound using a bind_param()
 * call
 */
</pre>
<p>In this way, user input is only bound to a variable with pre-determined constraints (max length, type, allowable characters, etc.).</p>
<p>Some other common defenses against SQL injection are user input escaping and network security devices that do pattern analysis on traffic.  Input escaping is tricky, because attackers can be clever and use Unicode characters and other techniques to bypass typical escaping rules.  So web developers should be aware of these techniques.  IDS/IPS devices can provide an additional layer of security to detect and block traffic that matches knows SQL injection signatures.<br />
<span id="more-72"></span><!--more--><br />
One interesting new development in the last few years is the emergence of application layer filters such as <a href="http://www.modsecurity.org/">ModSecurity</a>.  These modular firewalls plug-in to existing application servers such as Apache, and provide an additional layer of protection against web-based attacks.</p>
<p>As always, employing a defense-in-depth strategy is strongly recommended for mitigating these and other classes of attacks.  </p>
]]></content:encoded>
			<wfw:commentRss>http://nickdavis.name/blog/2008/09/17/sql-injection-attack-on-businessweek/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stock market manipulation</title>
		<link>http://nickdavis.name/blog/2008/09/11/stock-market-manipulation/</link>
		<comments>http://nickdavis.name/blog/2008/09/11/stock-market-manipulation/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 05:08:48 +0000</pubDate>
		<dc:creator>Nick Davis</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[crawlers]]></category>
		<category><![CDATA[google news]]></category>
		<category><![CDATA[social engineering]]></category>

		<guid isPermaLink="false">http://psychedelia.morpheus.net/blog/?p=56</guid>
		<description><![CDATA[I ran across this article today relating how a popular news item that rose through the ranks via Google&#8217;s Automated News Crawler resulted in a stock market plummet for one unfortunate company, United Airlines.  Apparently an older article concerning UAL&#8217;s bankruptcy filing, originally published in 2002, was mistaken for current news, picked up by [...]]]></description>
			<content:encoded><![CDATA[<p>I ran across this <a href="http://www.latimes.com/business/la-fi-moneyblog9-2008sep09,0,1609687.story">article</a> today relating how a popular news item that rose through the ranks via Google&#8217;s Automated News Crawler resulted in a stock market plummet for one unfortunate company, United Airlines.  Apparently an older article concerning UAL&#8217;s bankruptcy filing, originally published in 2002, was mistaken for current news, picked up by Google&#8217;s crawlers, and became a runaway hit.  The text of the original article was missing the publication date, which is why it became widely circulated as &#8220;current&#8221; news.</p>
<p>UAL&#8217;s stock quickly witnessed a deficit of <a href="http://tech.slashdot.org/tech/08/09/10/203233.shtml">$1.14 <strong>billion</strong></a> as a result of the news, but by the end of the day had mostly recovered.  The resulting loss in shareholder value was ~ $300 million.  Of course, had the original article included the publication date (2002), this likely wouldn&#8217;t have happened. The investigators believe this was an innocuous event, but it&#8217;s very easy to imagine a similar case as a malicious event.  Industry competition, rogue employees, or other nefarious parties could conspire to hijack another company&#8217;s stock or reputation (which has a strong correlation to stock price).</p>
<p>It&#8217;s not clear that much can be done to mitigate this form of social engineering.  Once a news blurb gains traction, it circulates the various blogging networks, online media conglomerates, and aggregators like Google News.  One way to attempt to contain an inaccurate story is to issue an official company press release stating the news is inaccurate or misleading.  This, however, may appear unconvincing to many, eager to trust third-party reportings over the official party line.</p>
<p>Another interesting facet is in assigning blame.  Is it Google&#8217;s crawlers&#8217; fault for not being able to distinguish old news from current?  Or perhaps Tribune is at fault:  its online paper South Florida Sun-Sentinel published the old article without a date.  Stockholders (and automated software acting on their behalf) selling their shares based on the news are also potentially to blame for not researching the news with due diligence prior to acting on it.</p>
]]></content:encoded>
			<wfw:commentRss>http://nickdavis.name/blog/2008/09/11/stock-market-manipulation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
