<?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>LinkGard Security Blog &#187; Software Security</title>
	<atom:link href="http://www.linkgard.com/security_blog/topics/software-security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linkgard.com/security_blog</link>
	<description>Security Thoughts and Insight in Black and White</description>
	<lastBuildDate>Thu, 18 Feb 2010 14:05:47 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Open a PDF file and get owned?</title>
		<link>http://www.linkgard.com/security_blog/open-a-pdf-file-and-get-owned/</link>
		<comments>http://www.linkgard.com/security_blog/open-a-pdf-file-and-get-owned/#comments</comments>
		<pubDate>Fri, 01 May 2009 21:13:53 +0000</pubDate>
		<dc:creator>Hovanes</dc:creator>
				<category><![CDATA[Software Security]]></category>
		<category><![CDATA[Vulnerabilities]]></category>
		<category><![CDATA[adobe acrobat]]></category>
		<category><![CDATA[adobe reader]]></category>
		<category><![CDATA[PDF]]></category>

		<guid isPermaLink="false">http://www.linkgard.com/security_blog/?p=48</guid>
		<description><![CDATA[A recent set of critical flaws in Adobe Acrobat and Adobe Reader products leaves users vulnerable to remote exploitation. With this news we are presented with yet another lesson in software security that we in the industry refuse to learn. At one spot in the life of code we reach a point of diminishing returns [...]]]></description>
			<content:encoded><![CDATA[<p>A recent set of <a title="The Register: &quot;Security researchers fret over Adobe PDF flaw&quot;" href="http://www.theregister.co.uk/2009/04/30/adobe_0day/" target="_blank">critical flaws in Adobe Acrobat and Adobe Reader</a> products leaves users vulnerable to remote exploitation. With this news we are presented with yet another lesson in<strong> software security</strong> that we in the industry refuse to learn. At one spot in the life of code we reach a point of diminishing returns where the code becomes so large that testing it is more expensive and difficult. Naturally companies want to make a profit and thus &#8220;risk manage&#8221; their way out of fully testing the product.</p>
<h3><strong>First Things First</strong></h3>
<p>First let&#8217;s learn more about this vulnerability.</p>
<p>References:</p>
<ul>
<li><a href="http://www.securityfocus.com/bid/34736/info" target="_blank">Vulnerability announcement on SecurityFocus</a></li>
<li><a href="http://blogs.adobe.com/psirt/2009/04/update_on_adobe_reader_issue.html" target="_blank">Adobe PSIRT: Update on Adobe Reader Issue</a></li>
<li><a href="http://www.adobe.com/support/security/" target="_blank">Adobe: Security bulletins and advisories</a></li>
</ul>
<p>This vulnerability is especially nasty due to the following:</p>
<ul>
<li>Adobe Acrobat and Adobe Reader can be found installed on almost any computer. It is difficult to conceive of any Internet user who hasn&#8217;t had the need to read PDF files. This makes the software a very attractive attack vector.</li>
<li>Apparently, there is very little that one needs to do in order to be attacked. While I&#8217;m not sure whether this vulnerability can be exploited by opening a PDF, I was able to test the JavaScript proof-of-concept by printing, saving, and closing PDF files.</li>
<li>Search engines widely report results that link to PDF files. The attacker can literally be just a click away.</li>
<li>The proof-of-concept code has already been posted online. It is now much easier for criminal hackers to come up with exploits that can result in access to your system.</li>
<li>This vulnerability goes back many versions of the product. While it has recently been discovered and published by some, can we guarantee that this problem hasn&#8217;t been successfully exploited for years by others?</li>
</ul>
<h3>Disable JavaScript</h3>
<p>To protect yourself you need to disable JavaScript. Here are the instructions <a title="Instructions on how to disable Javascript" href="http://blogs.adobe.com/psirt/2009/04/update_on_adobe_reader_issue.html" target="_blank">from Adobe</a>:</p>
<blockquote><p><em>1. Launch Acrobat or Adobe Reader.<br />
2. Select Edit&gt;Preferences<br />
3. Select the JavaScript Category<br />
4. Uncheck the ‘Enable Acrobat JavaScript’ option<br />
5. Click OK</em></p>
<p><em></em></p></blockquote>
<div id="attachment_49" class="wp-caption alignnone" style="width: 714px"><img class="size-full wp-image-49" title="adobe_reader_disable_javascript" src="http://www.linkgard.com/security_blog/wp-content/uploads/2009/05/adobe_reader_disable_javascript.jpg" alt="Screenshot: Disable Javascript in Adobe Reader" width="704" height="301" /><p class="wp-caption-text">Screenshot: How To Disable Javascript in Adobe Reader</p></div>
<p><strong>Try It Out Yourself</strong></p>
<p>Those with modest technical skills and access to a Linux system will be able to reproduce this problem. The proof-of-concept code can be found on <a title="Adobe PDF Proof-of-Concept Exploit" href="http://downloads.securityfocus.com/vulnerabilities/exploits/34736.txt" target="_blank">securityfocus.com</a>. You will also need knowledge of how to attach JavaScript to a PDF and we can thank Adobe for this wonderful tutorial:  <a title="Perk up PDF documents with JavaScript" href="http://www.adobe.com/designcenter/acrobat/articles/acr6kbjavascrpt.html" target="_blank">Perk up PDF documents with JavaScript</a>. The proof-of-concept code will not work on Windows without modification.</p>
<h3><strong>Why does one need JavaScript inside PDF anyway? Or why is it enabled by default?<br />
</strong></h3>
<p>Getting infected by a virus or being exploited by crackers may now be as simple as interacting with a specially-crafted PDF file. Yet again we are reminded that extra software features come at the expense of security. In <strong>software development</strong>, the greater the complexity the higher the likelihood of flaws. There are many techniques to improve software quality. While good software design and<strong> </strong>testing is essential in order to mitigate the problem, we are constantly faced with example after example that even the best software companies are not able to cope with this problem.</p>
<p>Exchanging image, PDF, and word-processor documents are some of the most common tasks by a computer user. We should not expect basic functionality like this to have as many serious problems as we have seen. For the month of April 2009 alone I was able to find at least 10 Adobe Reader &#8220;remote&#8221; vulnerabilities on SecurityFocus. (<a href="http://www.securityfocus.com/bid/29420" target="_blank">29420</a>, <a href="http://www.securityfocus.com/bid/30035" target="_blank">30035</a>, <a href="http://www.securityfocus.com/bid/32100" target="_blank">32100</a>, <a href="http://www.securityfocus.com/bid/32105" target="_blank">32105</a>, <a href="http://www.securityfocus.com/bid/33751" target="_blank">33751</a>, <a href="http://www.securityfocus.com/bid/34229" target="_blank">34229</a>, <a href="http://www.securityfocus.com/bid/34169" target="_blank">34169</a>, <a href="http://www.securityfocus.com/bid/34736" target="_blank">34736</a>, <a href="http://www.securityfocus.com/bid/34740" target="_blank">34740</a>, and <a href="http://www.securityfocus.com/bid/34768" target="_blank">34768</a>).</p>
<p>While I think Adobe deserves its due criticism, they are not alone. We can all recall similar issues with other software vendors. One of my least favorite ways to get hacked would be <a href="http://www.us-cert.gov/cas/techalerts/TA04-260A.html" target="_blank">by opening JPG</a> files.</p>
<p>As a <a title="Linkgard Systems" href="http://www.linkgard.com/" target="_blank">custom software development</a> consultancy, we always inform our clients that extra features and extra code comes at an extra cost that will grow non-linearly compared with functionality.</p>
<p>So what is a good balance between useful and robust features vs. stability and security in this case? I don&#8217;t know, but I am now seeking out alternatives for Adobe PDF. I know <a href="http://blogs.zdnet.com/hardware/?p=4251" target="_blank">others </a>are too.</p>
<p><a href="http://technorati.com/claim/inhfj3dhyz" rel="me">Technorati Profile</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linkgard.com/security_blog/open-a-pdf-file-and-get-owned/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
