what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Chris Evans Security Advisory 2008.9

Chris Evans Security Advisory 2008.9
Posted Nov 19, 2008
Authored by Chris Evans

Firefox versions 2.0.0.18 and below and WebKit nightly are affected by a cross-domain arbitrary image theft vulnerability.

tags | advisory, arbitrary
advisories | CVE-2008-5012
SHA-256 | d0194747a05587197d8e8c47a948cf9b3eee714682e19c5c1a8a0ea718f09d2e

Chris Evans Security Advisory 2008.9

Change Mirror Download
<html>
<head>
<title>
CESA-2008-009 - rev 1
</title>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-72867-8");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</head>
<body>
<h2>CESA-2008-009 - rev 1</h2>
<p/>
<br/>
[See all my vulnerabilities at
<a href="http://scary.beasts.org/security">http://scary.beasts.org/security</a>]
<p/>
[Blog if you want to subscribe to new findings is at
<a href="http://scarybeastsecurity.blogspot.com/">
http://scarybeastsecurity.blogspot.com/</a>]
<p/>
<h3>Firefox 2 and WebKit nightly cross-domain image theft</h3>
<hr/>
<br/>Programs affected: Firefox 2, prior to 2.0.0.18. Firefox 3 never affected.
WebKit nightly was affected somewhere between Safari 3 and 4.
<br/>Fixed: Firefox 2.0.0.18, Firefox 3.
<br/>Severity: Cross-domain theft of arbitrary images; machine fingerprinting.
<br/><a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5012">
CVE-2008-5012</a>
<br/><a href="http://www.mozilla.org/security/announce/2008/mfsa2008-48.html">
MFSA 2008-48</a>
<p/>
Arbitrary images (authenticated and unauthenticated) can be stolen cross-domain
by fooling the browser about the domain of origin and then rendering the image
to a canvas and stealing it with the Javascript <code>getImageData</code> API.
<p/>
Fooling the browswer about the domain of origin is accomplished by using "the
302 redirect trick". This involves accessing the image via an URL local to the
current (evil) domain. This local URL hosts a redirector which redirects to the
remote image we wish to steal.
<p/>
Interestingly, despite the diverse code base, WebKit had exactly the same issue.
No production WebKit browser that I know was ever affected because Safari 3.1
and Chrome pre-1.0 were based off a WebKit without the APIs which read image
data (such as <code>getImageData</code> and <code>toDataUrl</code>).
<p/>
<h3>Demo</h3>
<p/>
You can read the demo code at
<a href="https://cevans-app.appspot.com/static/ff2stealimgbug.html">
https://cevans-app.appspot.com/static/ff2stealimgbug.html
</a>
<p/>
<h3>Credits</h3>
<ul>
<li>Georgi Guninski independently reported this privately to Mozilla some
time ago. It was silently fixed in Firefox 3 but left unfixed in Firefox 2,
hence the independent discovery.</li>
<li>Michal Zalewski for noting (and demoing) the additional attack vector of
enumerating the locally installed applications, which has fingerprinting
possibilities.</li>
<li>Google - this flaw was discovered in Google's time. I'm with Google's
Security Team, and we're always recruiting talented security individuals.
Mail me.</li>
</ul>
<p/>
<br/>CESA-2008-009 - rev 1
<br/>Chris Evans
<br/><a href="mailto:scarybeasts@gmail.com">scarybeasts@gmail.com</a>
</body>
</html>

Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close