
====================================================================

                                    CERT-Renater

                          Note d'Information No. 2012/VULN200
____________________________________________________________________

DATE                : 25/04/2012

HARDWARE PLATFORM(S): /

OPERATING SYSTEM(S) : Systems running Firefox versions prior to 12.0,
ESR 10.0.4,
                      Thunderbird versions prior to 12.0, ESR 10.0.4,
                      SeaMonkey versions prior to 2.9,
                      Firefox Mobile versions prior to 10.0.4.

======================================================================
http://www.mozilla.org/security/announce/2012/mfsa2012-20.html
http://www.mozilla.org/security/announce/2012/mfsa2012-21.html
http://www.mozilla.org/security/announce/2012/mfsa2012-22.html
http://www.mozilla.org/security/announce/2012/mfsa2012-23.html
http://www.mozilla.org/security/announce/2012/mfsa2012-24.html
http://www.mozilla.org/security/announce/2012/mfsa2012-25.html
http://www.mozilla.org/security/announce/2012/mfsa2012-26.html
http://www.mozilla.org/security/announce/2012/mfsa2012-27.html
http://www.mozilla.org/security/announce/2012/mfsa2012-28.html
http://www.mozilla.org/security/announce/2012/mfsa2012-29.html
http://www.mozilla.org/security/announce/2012/mfsa2012-30.html
http://www.mozilla.org/security/announce/2012/mfsa2012-31.html
http://www.mozilla.org/security/announce/2012/mfsa2012-32.html
http://www.mozilla.org/security/announce/2012/mfsa2012-33.html
______________________________________________________________________

Mozilla Foundation Security Advisory 2012-20

Title: Miscellaneous memory safety hazards (rv:12.0/ rv:10.0.4)
Impact: Critical
Announced: April 24, 2012
Reporter:
Products: Firefox, Thunderbird, SeaMonkey

Fixed in: Firefox 12.0
  Firefox ESR 10.0.4
  Thunderbird 12.0
  Thunderbird ESR 10.0.4
  SeaMonkey 2.9

Description

Mozilla developers identified and fixed several memory safety bugs in
the browser engine used in Firefox and other Mozilla-based products.
Some of these bugs showed evidence of memory corruption under certain
circumstances, and we presume that with enough effort at least some
of these could be exploited to run arbitrary code.

In general these flaws cannot be exploited through email in the
Thunderbird and SeaMonkey products because scripting is disabled, but
are potentially a risk in browser or browser-like contexts in those
products.

References

Christian Holler a reported memory safety and security problem affecting
Firefox 11.

Assertion failure: (ptrBits & 0x7) == 0, at ../../jsval.h:873 or Crash
[@ compartment] or [@ js::array_shift]
CVE-2012-0468
Bob Clary, Christian Holler, Brian Hackett, Bobby Holley, Gary Kwong,
Hilary Hall, Honza Bambas, Jesse Ruderman, Julian Seward, and Olli Pettay
reported memory safety problems and crashes that affect Firefox ESR and
Firefox 11.

Memory safety bugs fixed in Firefox 12 and Firefox ESR 10.0.4
CVE-2012-0467

______________________________________________________________________

Mozilla Foundation Security Advisory 2012-21

Title: Multiple security flaws fixed in FreeType v2.4.9
Impact: Critical
Announced: April 24, 2012
Reporter: Mateusz Jurczyk
Products: Firefox Mobile

Fixed in: Firefox Mobile 10.0.4

Description

Mateusz Jurczyk of the Google Security Team used the Address Sanitizer
tool to discover a series of memory safety bugs in the FreeType library,
some of which could cause memory corruption and exploitable crashes with
certain fonts and font parsing. Firefox Mobile has been upgraded to
FreeType version 2.4.9 which addresses these issues. Desktop Firefox
does not use Freetype for fonts and was not affected.

On Linux systems, Firefox will use the installed system library for
FreeType. Linux users should make sure they are current on system
security updates.

References

FreeType: Multiple security flaws to be fixed in v2.4.9
CVE-2012-1126
CVE-2012-1127
CVE-2012-1128
CVE-2012-1129
CVE-2012-1130
CVE-2012-1131
CVE-2012-1132
CVE-2012-1133
CVE-2012-1134
CVE-2012-1135
CVE-2012-1136
CVE-2012-1137
CVE-2012-1138
CVE-2012-1139
CVE-2012-1140
CVE-2012-1141
CVE-2012-1142
CVE-2012-1143
CVE-2012-1144

______________________________________________________________________

Mozilla Foundation Security Advisory 2012-22

Title: use-after-free in IDBKeyRange
Impact: Critical
Announced: April 24, 2012
Reporter: Aki Helin
Products: Firefox, Thunderbird, SeaMonkey

Fixed in: Firefox 12.0
  Firefox ESR 10.0.4
  Thunderbird 12.0
  Thunderbird ESR 10.0.4
  SeaMonkey 2.9

Description

Using the Address Sanitizer tool, security researcher Aki Helin from OUSPG
found that IDBKeyRange of indexedDB remains in the XPConnect hashtable
instead of being unlinked before being destroyed. When it is destroyed,
this causes a use-after-free, which is potentially exploitable.

References

use-after-free at
mozilla::dom::indexedDB::IDBKeyRange::cycleCollection::Trace
CVE-2012-0469
______________________________________________________________________

Mozilla Foundation Security Advisory 2012-23

Title: Invalid frees causes heap corruption in gfxImageSurface
Impact: Critical
Announced: April 24, 2012
Reporter: Atte Kettunen
Products: Firefox, Thunderbird, SeaMonkey

Fixed in: Firefox 12.0
  Firefox ESR 10.0.4
  Thunderbird 12.0
  Thunderbird ESR 10.0.4
  SeaMonkey 2.9


Description

Using the Address Sanitizer tool, security researcher Atte Kettunen from
OUSPG found a heap corruption in gfxImageSurface which allows for invalid
frees and possible remote code execution. This happens due to float error,
resulting from graphics values being passed through different number
systems.

References

ASAN: Heap-buffer-overflow WRITE of size 1 at
nsSVGFEDiffuseLightingElement::LightPixel
CVE-2012-0470
______________________________________________________________________

Mozilla Foundation Security Advisory 2012-24

Title: Potential XSS via multibyte content processing errors
Impact: High
Announced: April 24, 2012
Reporter: Anne van Kesteren
Products: Firefox, Thunderbird, SeaMonkey

Fixed in: Firefox 12.0
  Firefox ESR 10.0.4
  Thunderbird 12.0
  Thunderbird ESR 10.0.4
  SeaMonkey 2.9


Description

Anne van Kesteren of Opera Software found a multi-octet encoding issue
where certain octets will destroy the following octets in the processing
of some multibyte character sets. This can leave users vulnerable to
cross-site scripting (XSS) attacks on maliciously crafted web pages.

References

More multi-octet encoding issues
CVE-2012-0471
______________________________________________________________________

Mozilla Foundation Security Advisory 2012-25

Title: Potential memory corruption during font rendering using cairo-dwrite
Impact: Critical
Announced: April 24, 2012
Reporter: wushi, iDefense
Products: Firefox, Thunderbird, SeaMonkey

Fixed in: Firefox 12.0
  Firefox ESR 10.0.4
  Thunderbird 12.0
  Thunderbird ESR 10.0.4
  SeaMonkey 2.9


Description

Security research firm iDefense reported that researcher wushi of
team509 discovered a memory corruption on Windows Vista and
Windows 7 systems with hardware acceleration disabled or using
incompatible video drivers. This is created by using cairo-dwrite
to attempt to render fonts on an unsupported code path. This corruption
causes a potentially exploitable crash on affected systems.

References

cairo_dwrite_font_face Memory Corruption Vulnerability
CVE-2012-0472
______________________________________________________________________

Mozilla Foundation Security Advisory 2012-26

Title: WebGL.drawElements may read illegal video memory due to
FindMaxUshortElement error
Impact: High
Announced: April 24, 2012
Reporter: Matias Juntunen
Products: Firefox, Thunderbird, SeaMonkey

Fixed in: Firefox 12.0
  Firefox ESR 10.0.4
  Thunderbird 12.0
  Thunderbird ESR 10.0.4
  SeaMonkey 2.9


Description

Mozilla community member Matias Juntunen discovered an error in WebGLBuffer
where FindMaxElementInSubArray receives wrong template arguments from
FindMaxUshortElement. This bug causes maximum index to be computed
incorrectly within WebGL.drawElements, allowing the reading of illegal
video memory.

References

WebGLBuffer::FindMaxUshortElement passes wrong template arguments to
FindMaxElementInSubArray
CVE-2012-0473
______________________________________________________________________

Mozilla Foundation Security Advisory 2012-27

Title: Page load short-circuit can lead to XSS
Impact: High
Announced: April 24, 2012
Reporter: Jordi Chancel, Eddy Bordi, Chris McGowen
Products: Firefox, Thunderbird, SeaMonkey

Fixed in: Firefox 12.0
  Firefox ESR 10.0.4
  Thunderbird 12.0
  Thunderbird ESR 10.0.4
  SeaMonkey 2.9

Description

Security researchers Jordi Chancel and Eddy Bordi reported that they
could short-circuit page loads to show the address of a different site
than what is loaded in the window in the addressbar. Security researcher
Chris McGowen independently reported the same flaw, and further
demonstrated that this could lead to loading scripts from the attacker's
site, leaving users vulnerable to cross-site scripting (XSS) attacks.

References

universal XSS by confusing docshell with short-circuited loads
CVE-2012-0474
______________________________________________________________________

Mozilla Foundation Security Advisory 2012-28

Title: Ambiguous IPv6 in Origin headers may bypass webserver access
restrictions
Impact: Moderate
Announced: April 24, 2012
Reporter: Simone Fabiano
Products: Firefox, Thunderbird, SeaMonkey

Fixed in: Firefox 12.0
  Thunderbird 12.0
  SeaMonkey 2.9


Description

Security researcher Simone Fabiano reported that if a cross-site XHR or
WebSocket is opened on a web server on a non-standard port for web
traffic while using an IPv6 address, the browser will send an ambiguous
origin headers if the IPv6 address contains at least 2 consecutive 16-bit
fields of zeroes. If there is an origin access control list that uses
IPv6 literals, this issue could be used to bypass these access controls
on the server.

References

Ambiguous IPv6 in Origin (and Sec-WebSocket-Origin) request header
CVE-2012-0475

______________________________________________________________________

Mozilla Foundation Security Advisory 2012-29

Title: Potential XSS through ISO-2022-KR/ISO-2022-CN decoding issues
Impact: Moderate
Announced: April 24, 2012
Reporter: Masato Kinugawa
Products: Firefox, Thunderbird, SeaMonkey

Fixed in: Firefox 12.0
  Firefox ESR 10.0.4
  Thunderbird 12.0
  Thunderbird ESR 10.0.4
  SeaMonkey 2.9


Description

Security researcher Masato Kinugawa found that during the decoding of
ISO-2022-KR and ISO-2022-CN character sets, characters near 1024 bytes
are treated incorrectly, either doubling or deleting bytes. On certain
pages it might be possible for an attacker to pad the output of the
page such that these errors fall in the right place to affect the
structure of the page, allowing for cross-site script (XSS) injection.

References

Potential XSS attack with ISO-2022-KR/ISO-2022-CN near 1024 bytes
CVE-2012-0477

______________________________________________________________________

Mozilla Foundation Security Advisory 2012-30

Title: Crash with WebGL content using textImage2D
Impact: Critical
Announced: April 24, 2012
Reporter: Ms2ger
Products: Firefox, Thunderbird, SeaMonkey

Fixed in: Firefox 12.0
  Firefox ESR 10.0.4
  Thunderbird 12.0
  Thunderbird ESR 10.0.4
  SeaMonkey 2.9


Description

Mozilla community member Ms2ger found an image rendering issue with
WebGL when texImage2D uses use JSVAL_TO_OBJECT on arbitrary objects.
This can lead to a crash on a maliciously crafted web page. While
there is no evidence that this is directly exploitable, there is a
possibility of remote code execution.

References

nsIDOMWebGLRenderingContext_Tex{,Sub}Image2D use JSVAL_TO_OBJECT on
arbitrary objects
CVE-2012-0478
______________________________________________________________________

Mozilla Foundation Security Advisory 2012-31

Title: Off-by-one error in OpenType Sanitizer
Impact: Critical
Announced: April 24, 2012
Reporter: Mateusz Jurczyk
Products: Firefox, Thunderbird, SeaMonkey

Fixed in: Firefox 12.0
  Firefox ESR 10.0.4
  Thunderbird 12.0
  Thunderbird ESR 10.0.4
  SeaMonkey 2.9

Description

Mateusz Jurczyk of the Google Security Team discovered an off-by-one
error in the OpenType Sanitizer using the Address Sanitizer tool. This
can lead to an out-of-bounds read and execution of an uninitialized
function pointer during parsing and possible remote code execution.

References

OTS off-by-one may result in arbitrary code execution
Security: Off-by-one in OTS resulting in arbitrary code execution
CVE-2011-3062
______________________________________________________________________

Mozilla Foundation Security Advisory 2012-32

Title: HTTP Redirections and remote content can be read by javascript
errors

Impact: Moderate
Announced: April 24, 2012
Reporter: Daniel Divricean
Products: Firefox, Thunderbird, SeaMonkey

Fixed in: Firefox 12.0
  Thunderbird 12.0
  SeaMonkey 2.9


Description

Security researcher Daniel Divricean reported that a defect in the error
handling of javascript errors can leak the file names and location of
javascript files on a server, leading to inadvertent information
disclosure and a vector for further attacks.

References

HTTP Redirections and remote content can be read by javascript errors
CVE-2011-1187
______________________________________________________________________

Mozilla Foundation Security Advisory 2012-33

Title: Potential site identity spoofing when loading RSS and Atom feeds
Impact: High
Announced: April 24, 2012
Reporter: Jeroen van der Gun
Products: Firefox, Thunderbird, SeaMonkey

Fixed in: Firefox 12.0
  Firefox ESR 10.0.4
  Thunderbird 12.0
  Thunderbird ESR 10.0.4
  SeaMonkey 2.9


Description

Security researcher Jeroen van der Gun reported that if RSS or Atom XML
invalid content is loaded over HTTPS, the addressbar updates to display
the new location of the loaded resource, including SSL indicators, while
the main window still displays the previously loaded content. This
allows for phishing attacks where a malicious page can spoof the identify
of another seemingly secure site.

References

Identify spoofing with Atom/RSS content over HTTPS
CVE-2012-0479

======================================================================

=========================================================
Serveur de référence du CERT-Renater
https://services.renater.fr/ssi/
=========================================================
+ CERT-RENATER          | tel : 01-53-94-20-44          +
+ 23 - 25 Rue Daviel    | fax : 01-53-94-20-41          +
+ 75013 Paris           | email: certsvp@renater.fr     +
=========================================================
