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:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close