<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Fortinet Security Blog &#187; microsoft office</title>
	<atom:link href="http://blog.fortinet.com/tag/microsoft-office/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fortinet.com</link>
	<description>Real Time Network Protection</description>
	<lastBuildDate>Fri, 27 Jan 2012 11:59:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<!-- podcast_generator="podPress/8.8" -->
		<copyright>&#xA9;Fortinet Product Marketing </copyright>
		<managingEditor>rpopko@fortinet.com (Fortinet Product Marketing)</managingEditor>
		<webMaster>rpopko@fortinet.com(Fortinet Product Marketing)</webMaster>
		<category>Fortinet Product Information</category>
		<ttl>1440</ttl>
		<itunes:keywords>forti-gate, anti-spam, anti-virus, fortigate</itunes:keywords>
		<itunes:subtitle>The latest news and information about Fortinet products and services for Real Time Network Protection.</itunes:subtitle>
		<itunes:summary>Fortinet is a leading provider of Unified Threat Management (UTM) network security solutions for enterprise and service provider environments. The Fortinet FortiCast delivers news, information, and tutorials about products, services, and industry trends. Fortinet's FortiGate product line and FortiGuard security subscription services provide an array of integrated network security functions including antivirus, firewall, virtual private networking, intrusion prevention (IPS), web filtering, antispam and traffic optimization. </itunes:summary>
		<itunes:author>Fortinet Product Marketing</itunes:author>
		<itunes:category text="Technology"/>
<itunes:category text="Technology">
  <itunes:category text="Tech News"/>
</itunes:category>
		<itunes:owner>
			<itunes:name>Fortinet Product Marketing</itunes:name>
			<itunes:email>rpopko@fortinet.com</itunes:email>
		</itunes:owner>
		<itunes:block>No</itunes:block>
		<itunes:explicit>no</itunes:explicit>
		<itunes:image href="http://blog.fortinet.com/wp-content/uploads/2009/01/forticast-300x300.jpg" />
		<image>
			<url>http://blog.fortinet.com/wp-content/uploads/2009/01/forticast-144x144.jpg</url>
			<title>Fortinet Security Blog</title>
			<link>http://blog.fortinet.com</link>
			<width>144</width>
			<height>144</height>
		</image>
		<item>
		<title>Flash Mob: Spraying the Heap</title>
		<link>http://blog.fortinet.com/flash-mob-spraying-the-heap/</link>
		<comments>http://blog.fortinet.com/flash-mob-spraying-the-heap/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 18:37:25 +0000</pubDate>
		<dc:creator>Bing Liu</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[heap spraying]]></category>
		<category><![CDATA[microsoft office]]></category>

		<guid isPermaLink="false">http://blog.fortinet.com/?p=695</guid>
		<description><![CDATA[Heap Spraying is a technique that can effectively increase the reliability of flaw exploitation code (aka &#8220;exploits&#8221;) on various OS, and in many cases, go as far as enabling an exploit that would practically not &#8220;work&#8221; otherwise. It contributed tremendously to the popularity of exploits targeting Web browsers over the last years. As a matter [...]]]></description>
			<content:encoded><![CDATA[<p style="margin-left: 0pt; margin-right: 0pt;"><span style="font-family: 'Times New Roman';"><span style="font-size: small;">Heap Spraying is a technique that can effectively increase the reliability of flaw exploitation code (aka &#8220;exploits&#8221;) on various OS, and in many cases, go as far as enabling an exploit that would practically not &#8220;work&#8221; otherwise. It contributed tremendously to the popularity of exploits targeting Web browsers over the last years. As a matter of fact, it ended bothering Microsoft to the extent a protection against Heap Spraying was introduced in IE8.</span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;"><br />
</span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;"><br />
</span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;"> </span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;"> </span></span> <span style="font-family: 'Times New Roman';"><span style="font-size: small;">Besides Internet Explorer, Microsoft Office is also a privileged target of vulnerabilities researchers, and as such, present a myriad of public flaws &#8211; especially concerning the compound file format document. Yet, it seems that exploits targeting MS Office are not anywhere as popular or common as those aiming at IE.<br />
</span></span></p>
<p style="margin-left: 0pt; margin-right: 0pt;"><span style="font-family: 'Times New Roman';"><span style="font-size: small;">This is most likely because </span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;">exploit code for Microsoft Office</span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;"> is much harder to develop. Indeed, for IE, the &#8220;control vector&#8221; has been standardized over time: code for heap spraying can be reused, and in effect, numerous exploit developers just copy and paste Heap Spraying code from previously available exploits. And once the Heap Spraying is done, a jump to supposedly invalid memory triggered by bogus input fed to the browser has a high chance of landing in the shellcode (actually, in a NOP slide leading right to it).<br />
</span></span></p>
<p style="margin-left: 0pt; margin-right: 0pt;"><span style="font-family: 'Times New Roman';"><span style="font-size: small;">But for Microsoft Office, say for instance in the context of an Excel vulnerability, the shellcode must sit in the file record and the exploit developer has to find a way to transfer the execution flow to its precise location in the memory, rather than just forcing a random jump. Now, if we can spray the heap in Microsoft Office, the shellcode will virtually reside &#8220;everywhere&#8221; in memory. Thus turning a possible flaw into a reliably exploitable vulnerability becomes considerably easier. So&#8230; how can we spray the heap in MS Office?</span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;"><br />
</span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;"><br />
</span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;"> </span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;"> </span></span> <span style="font-family: 'Times New Roman';"><span style="font-size: small;"> </span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;">In July 2009, Julia Wolf at FireEye Malware Intelligence Lab found </span><a id="b98h" title="an exploit that uses ActionScript to spray the heap in Adobe Flash" href="http://blog.fireeye.com/research/2009/07/actionscript_heap_spray.html" target="_blank">an exploit that uses ActionScript to spray the heap in Adobe Flash</a></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;">. So, theoretically, if we embed such a flash in an Office document, we should be able to spray the heap just as good, shouldn&#8217;t we? In any case, it is certainly worth a try&#8230;<br />
</span></span></p>
<p style="margin-left: 0pt; margin-right: 0pt;"><span style="font-family: 'Times New Roman';">Following is my experimental environment:</span></p>
<ul>
<li><span style="font-family: 'Times New Roman';">OS: Windows XP SP3<br />
</span></li>
<li><span style="font-family: 'Times New Roman';">Microsoft Office: 2003 professional<br />
</span></li>
<li><span style="font-family: 'Times New Roman';">Flash player: </span>10.0.32.18<span style="font-family: 'Times New Roman';"><br />
</span></li>
</ul>
<p style="margin-left: 0pt; margin-right: 0pt;"><span style="font-family: 'Times New Roman';"><span style="font-size: small;">First, we need to create a heap-spraying flash. That is easy now with ActionScript (see <a id="v-5-" title="here" href="http://blog.fireeye.com/research/2009/07/actionscript_heap_spray.html" target="_blank">here</a> and <a id="hyvl" title="there" href="http://roeehay.blogspot.com/2009/08/exploitation-of-cve-2009-1869.html" target="_blank">there</a>).</span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;"><br />
</span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;"><br />
</span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;">Then, we need to embed this flash into an Office document. Excel probably being the most vulnerable MS Office application, let&#8217;s resort to an Excel document for the sake of the experiment.</span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;"><br />
</span></span></p>
<p style="margin-left: 0pt; margin-right: 0pt;"><span style="font-family: 'Times New Roman';"><span style="font-size: small;">Finally, we set the security (Tools-&gt;Macro) to &#8220;very high&#8221; in Excel 2003 and open the Excel document&#8230; As can be seen on the figure below, the document opens fine without even a warni</span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;">ng box.</span></span></p>
<p style="margin-left: 0pt; margin-right: 0pt;"><span style="font-family: 'Times New Roman';"><span style="font-size: small;"><img class="alignnone size-full wp-image-697" title="heapsprayone" src="http://blog.fortinet.com/wp-content/uploads/2009/11/heapsprayone.png" alt="heapsprayone" /></span></span></p>
<p style="margin-left: 0pt; margin-right: 0pt;"><span style="font-family: 'Times New Roman';"><span style="font-size: small;">Let&#8217;s check the process memory with Ollydbg. As can be seen in the following figure, multiple </span></span>Virtual Address Buffers<span style="font-family: 'Times New Roman';"><span style="font-size: small;"> of size 0&#215;10001000 containing our NOP slides + shellcode cocktails were effectively allocated all over the heap.</span></span></p>
<p style="margin-left: 0pt; margin-right: 0pt;"><img class="alignnone size-full wp-image-698" title="heapspraytwo" src="http://blog.fortinet.com/wp-content/uploads/2009/11/heapspraytwo.png" alt="heapspraytwo" width="515" height="366" /></p>
<p style="margin-left: 0pt; margin-right: 0pt;"><span style="font-family: 'Times New Roman';"><span style="font-size: small;">This means that no matter how high the security is set to, exploits developers can now spray the heap of Microsoft Office.<br />
</span></span></p>
<p style="margin-left: 0pt; margin-right: 0pt;"><span style="font-family: 'Times New Roman';"><span style="font-size: small;">It can be noted that if there are both Macros and flash in the Excel document, exploit reliability diminishes; indeed, the ActionScript code will be disabled along with Macros (if the user has chosen to disable Macros, of course).<br />
</span></span></p>
<p style="margin-left: 0pt; margin-right: 0pt;"><span style="font-family: 'Times New Roman';"><span style="font-size: small;">We&#8217;ve also tried to open this document with Excel 2007 under Windows Vista. The heap spraying still works.<br />
</span></span></p>
<p style="margin-left: 0pt; margin-right: 0pt;"><span style="font-family: 'Times New Roman';"><span style="font-size: small;">To put it in a nutshell, with ActionScript in flash, a</span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;">ttackers have all the tools in their hands to develop workable exploits for</span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;"> Microsoft Office vulnerabilies.</span></span><span style="font-family: 'Times New Roman';"><span style="font-size: small;"> It may therefore be a good time to review your defense policies regarding Office documents&#8230; Are they scanned for malware on your Mail server? Are your end-users who&#8217;ll open them super-users of their desktop machines? Is your Gateway configured to block outbound access to the malware pieces (trojans, keyloggers, password stealers, sniffers) meant to be fetched upon embedded shellcode execution? When your users bring their work laptop home, are they still protected there?</span></span></p>
<p><em><span style="font-family: 'Times New Roman';"><span style="font-size: small;">Note: In accordance to our responsible disclosure policies, Microsoft was officially notified. No fix will ensue.</span></span></em></p>
<p><span style="font-family: 'Times New Roman';"><span style="font-size: small;"><strong>Guillaume Lovet contributed to this report</strong><br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fortinet.com/flash-mob-spraying-the-heap/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

