-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
                         AUSCERT Security Bulletin

                               ASB-2017.0065
               Mozilla Foundation Security Advisory 2017-13
                                9 May 2017

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

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:              Mozilla Thunderbird
Operating System:     UNIX variants (UNIX, Linux, OSX)
                      Windows
Impact/Access:        Execute Arbitrary Code/Commands -- Remote with User Interaction
                      Cross-site Scripting            -- Remote with User Interaction
                      Denial of Service               -- Remote with User Interaction
                      Provide Misleading Information  -- Remote with User Interaction
                      Access Confidential Data        -- Existing Account            
Resolution:           Patch/Upgrade
CVE Names:            CVE-2017-5469 CVE-2017-5467 CVE-2017-5466
                      CVE-2017-5465 CVE-2017-5464 CVE-2017-5462
                      CVE-2017-5461 CVE-2017-5460 CVE-2017-5459
                      CVE-2017-5454 CVE-2017-5451 CVE-2017-5449
                      CVE-2017-5447 CVE-2017-5446 CVE-2017-5445
                      CVE-2017-5444 CVE-2017-5443 CVE-2017-5442
                      CVE-2017-5441 CVE-2017-5440 CVE-2017-5439
                      CVE-2017-5438 CVE-2017-5436 CVE-2017-5435
                      CVE-2017-5434 CVE-2017-5433 CVE-2017-5432
                      CVE-2017-5430 CVE-2017-5429 CVE-2016-10197
                      CVE-2016-10196 CVE-2016-10195 CVE-2016-6354
Member content until: Thursday, June  8 2017
Reference:            ASB-2017.0042
                      ESB-2017.1117
                      ESB-2016.2023
                      ESB-2016.1963

OVERVIEW

        Multiple vulnerabilities have been identified in Mozilla Thunderbird
        in versions prior to 52.1 [1]


IMPACT

        Mozilla has given the following information concerning these 
        vulnerabilities:
        
        "CVE-2017-5433: Use-after-free in SMIL animation functions
        
        Reporter
            Nils
        Impact
            critical
        
        Description
        
        A use-after-free vulnerability in SMIL animation functions occurs when
        pointers to animation elements in an array are dropped from the animation
        controller while still in use. This results in a potentially exploitable
        crash.
        References
        
            Bug 1347168
        
        #CVE-2017-5435: Use-after-free during transaction processing in the editor
        
        Reporter
            Nils
        Impact
            critical
        
        Description
        
        A use-after-free vulnerability occurs during transaction processing in
        the editor during design mode interactions. This results in a potentially
        exploitable crash.
        References
        
            Bug 1350683
        
        #CVE-2017-5436: Out-of-bounds write with malicious font in Graphite 2
        
        Reporter
            Holger Fuhrmannek
        Impact
            critical
        
        Description
        
        An out-of-bounds write in the Graphite 2 library triggered with a maliciously
        crafted Graphite font. This results in a potentially exploitable crash. This
        issue was fixed in the Graphite 2 library as well as Mozilla products.
        References
        
            Bug 1345461
        
        #CVE-2017-5461: Out-of-bounds write in Base64 encoding in NSS
        
        Reporter
            Ronald Crane
        Impact
            critical
        
        Description
        
        An out-of-bounds write during Base64 decoding operation in the Network
        Security Services (NSS) library due to insufficient memory being allocated
        to the buffer. This results in a potentially exploitable crash. The NSS
        library has been updated to fix this issue to address this issue and
        Firefox ESR 52.1 has been updated with NSS version 3.28.4.
        References
        
            Bug 1344380
        
        #CVE-2017-5459: Buffer overflow in WebGL
        
        Reporter
            Atte Kettunen
        Impact
            critical
        
        Description
        
        A buffer overflow in WebGL triggerable by web content, resulting in a
        potentially exploitable crash.
        References
        
            Bug 1333858
        
        #CVE-2017-5466: Origin confusion when reloading isolated data:text/html URL
        
        Reporter
            Takeshi Terada
        Impact
            critical
        
        Description
        
        If a page is loaded from an original site through a hyperlink and contains a
        redirect to a data:text/html URL, triggering a reload will run the reloaded
        data:text/html page with its origin set incorrectly. This allows for a
        cross-site scripting (XSS) attack.
        References
        
            Bug 1353975
        
        #CVE-2017-5434: Use-after-free during focus handling
        
        Reporter
            Nils
        Impact
            high
        
        Description
        
        A use-after-free vulnerability occurs when redirecting focus handling
        which results in a potentially exploitable crash.
        References
        
            Bug 1349946
        
        #CVE-2017-5432: Use-after-free in text input selection
        
        Reporter
            Nils
        Impact
            high
        
        Description
        
        A use-after-free vulnerability occurs during certain text input selection
        resulting in a potentially exploitable crash.
        References
        
            Bug 1346654
        
        #CVE-2017-5460: Use-after-free in frame selection
        
        Reporter
            Nils
        Impact
            high
        
        Description
        
        A use-after-free vulnerability in frame selection triggered by a combination
        of malicious script content and key presses by a user. This results in a
        potentially exploitable crash.
        References
        
            Bug 1343642
        
        #CVE-2017-5438: Use-after-free in nsAutoPtr during XSLT processing
        
        Reporter
            Nicolas Grgoire
        Impact
            high
        
        Description
        
        A use-after-free vulnerability during XSLT processing due to the result
        handler being held by a freed handler during handling. This results in a
        potentially exploitable crash.
        References
        
            Bug 1336828
        
        #CVE-2017-5439: Use-after-free in nsTArray Length() during XSLT processing
        
        Reporter
            Nicolas Grgoire
        Impact
            high
        
        Description
        
        A use-after-free vulnerability during XSLT processing due to poor handling
        of template parameters. This results in a potentially exploitable crash.
        References
        
            Bug 1336830
        
        #CVE-2017-5440: Use-after-free in txExecutionState destructor during
        XSLT processing
        
        Reporter
            Nicolas Grgoire
        Impact
            high
        
        Description
        
        A use-after-free vulnerability during XSLT processing due to a failure
        to propagate error conditions during matching while evaluating context,
        leading to objects being used when they no longer exist. This results in
        a potentially exploitable crash.
        References
        
            Bug 1336832
        
        #CVE-2017-5441: Use-after-free with selection during scroll events
        
        Reporter
            Nils
        Impact
            high
        
        Description
        
        A use-after-free vulnerability when holding a selection during scroll
        events. This results in a potentially exploitable crash.
        References
        
            Bug 1343795
        
        #CVE-2017-5442: Use-after-free during style changes
        
        Reporter
            Nils
        Impact
            high
        
        Description
        
        A use-after-free vulnerability during changes in style when manipulating
        DOM elements. This results in a potentially exploitable crash.
        References
        
            Bug 1347979
        
        #CVE-2017-5464: Memory corruption with accessibility and DOM manipulation
        
        Reporter
            Nils
        Impact
            high
        
        Description
        
        During DOM manipulations of the accessibility tree through script, the
        DOM tree can become out of sync with the accessibility tree, leading to
        memory corruption and a potentially exploitable crash.
        References
        
            Bug 1347075
        
        #CVE-2017-5443: Out-of-bounds write during BinHex decoding
        
        Reporter
            Chamal De Silva
        Impact
            high
        
        Description
        
        An out-of-bounds write vulnerability while decoding improperly formed
        BinHex format archives.
        References
        
            Bug 1342661
        
        #CVE-2017-5444: Buffer overflow while parsing application/http-index-format
        content
        
        Reporter
            Chamal De Silva
        Impact
            high
        
        Description
        
        A buffer overflow vulnerability while parsing application/http-index-format
        format content when the header contains improperly formatted data. This
        allows for an out-of-bounds read of data from memory.
        References
        
            Bug 1344461
        
        #CVE-2017-5446: Out-of-bounds read when HTTP/2 DATA frames are sent with
        incorrect data
        
        Reporter
            Chun Han Hsiao
        Impact
            high
        
        Description
        
        An out-of-bounds read when an HTTP/2 connection to a servers sends DATA
        frames with incorrect data content. This leads to a potentially exploitable
        crash.
        References
        
            Bug 1343505
        
        #CVE-2017-5447: Out-of-bounds read during glyph processing
        
        Reporter
            Ivan Fratric of Google Project Zero
        Impact
            high
        
        Description
        
        An out-of-bounds read during the processing of glyph widths during text
        layout. This results in a potentially exploitable crash and could allow
        an attacker to read otherwise inaccessible memory.
        References
        
            Bug 1343552
        
        #CVE-2017-5465: Out-of-bounds read in ConvolvePixel
        
        Reporter
            Ivan Fratric of Google Project Zero
        Impact
            high
        
        Description
        
        An out-of-bounds read while processing SVG content in ConvolvePixel. This
        results in a crash and also allows for otherwise inaccessible memory being
        copied into SVG graphic content, which could then displayed.
        References
        
            Bug 1347617
        
        #CVE-2016-10196: Vulnerabilities in Libevent library
        
        Reporter
            Huzaifa Sidhpurwala
        Impact
            high
        
        Description
        
        Three vulnerabilities were reported in the Libevent library that allow
        for out-of-bounds reads and denial of service (DoS) attacks. These were
        fixed in the Libevent library and these changes were ported to Mozilla code.
        References
        
            Bug 1343453
            CVE-2016-10195
            CVE-2016-10197
        
        #CVE-2017-5454: Sandbox escape allowing file system read access through
        file picker
        
        Reporter
            Haik Aftandilian
        Impact
            high
        
        Description
        
        A mechanism to bypass file system access protections in the sandbox to
        use the file picker to access different files than those selected in the
        file picker through the use of relative paths. This allows for read only
        access to the local file system.
        References
        
            Bug 1349276
        
        #CVE-2017-5469: Potential Buffer overflow in flex-generated code
        
        Reporter
            Petr Cerny
        Impact
            high
        
        Description
        
        Fixed potential buffer overflows in generated Firefox code due to
        CVE-2016-6354 issue in Flex.
        References
        
            Bug 1292534
        
        #CVE-2017-5445: Uninitialized values used while parsing
        application/http-index-format content
        
        Reporter
            Chamal De Silva
        Impact
            moderate
        
        Description
        
        A vulnerability while parsing application/http-index-format format content
        where uninitialized values are used to create an array. This could allow
        the reading of uninitialized memory into the arrays affected.
        References
        
            Bug 1344467
        
        #CVE-2017-5449: Crash during bidirectional unicode manipulation with
        animation
        
        Reporter
            Nils
        Impact
            moderate
        
        Description
        
        A possibly exploitable crash triggered during layout and manipulation of
        bidirectional unicode text in concert with CSS animations.
        References
        
            Bug 1340127
        
        #CVE-2017-5451: Addressbar spoofing with onblur event
        
        Reporter
            Jordi Chancel
        Impact
            moderate
        
        Description
        
        A mechanism to spoof the addressbar through the user interaction on the
        addressbar and the onblur event. The event could be used by script to
        affect text display to make the loaded site appear to be different from
        the one actually loaded within the addressbar.
        References
        
            Bug 1273537
        
        #CVE-2017-5462: DRBG flaw in NSS
        
        Reporter
            Vladimir Klebanov, Franziskus Kiefer
        Impact
            moderate
        
        Description
        
        A flaw in DRBG number generation within the Network Security Services
        (NSS) library where the internal state V does not correctly carry bits
        over. The NSS library has been updated to fix this issue to address this
        issue and Firefox ESR 52.1 has been updated with NSS version 3.28.4.
        References
        
            Bug 1345089
        
        #CVE-2017-5467: Memory corruption when drawing Skia content
        
        Reporter
            Heather Miller of Google Skia team
        Impact
            moderate
        
        Description
        
        A potential memory corruption and crash when using Skia content when
        drawing content outside of the bounds of a clipping region.
        References
        
            Bug 1347262
        
        #CVE-2017-5430: Memory safety bugs fixed in Firefox 53, Firefox ESR 52.1,
        Thunderbird 52.1
        
        Reporter
            Mozilla developers and community
        Impact
            critical
        
        Description
        
        Mozilla developers and community members Christian Holler, Jon Coppeard,
        Milan Sreckovic, Tyson Smith, Ronald Crane, Randell Jesup, Philipp, Tooru
        Fujisawa, and Kan-Ru Chen reported memory safety bugs present in Firefox
        52, Firefox ESR 52, and Thunderbird 52. Some of these bugs showed evidence
        of memory corruption and we presume that with enough effort that some of
        these could be exploited to run arbitrary code.
        References
        
            Memory safety bugs fixed in Firefox 53 and Firefox ESR 52.1
        
        #CVE-2017-5429: Memory safety bugs fixed in Firefox 53, Firefox ESR 45.9,
        Firefox ESR 52.1, and Thunderbird 52.1
        
        Reporter
            Mozilla developers and community
        Impact
            critical
        
        Description
        
        Mozilla developers and community members Christian Holler, Jon Coppeard,
        Marcia Knous, David Baron, Mats Palmgren, Ronald Crane, Bob Clary, and
        Chris Peterson reported memory safety bugs present in Firefox 52, Firefox
        ESR 45.8, Firefox ESR 52, and Thunderbird 52. Some of these bugs showed
        evidence of memory corruption and we presume that with enough effort that
        some of these could be exploited to run arbitrary code.
        References
        
            Memory safety bugs fixed in Firefox 53, Firefox ESR 45.9, Firefox ESR
            52.1, and Thunderbird 52" [1]


MITIGATION

        Mozilla recommends updating Thunderbird to version 52.1. [1]


REFERENCES

        [1] Mozilla Foundation Security Advisory 2017-13
            https://www.mozilla.org/en-US/security/advisories/mfsa2017-13/

AusCERT has made every effort to ensure that the information contained
in this document is accurate.  However, the decision to use the information
described is the responsibility of each user or organisation. The decision to
follow or act on information or advice contained in this security bulletin is
the responsibility of each user or organisation, and should be considered in
accordance with your organisation's site policies and procedures. AusCERT
takes no responsibility for consequences which may arise from following or
acting on information or advice contained in this security bulletin.

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours 
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBWREd6Yx+lLeg9Ub1AQglXw/9G3BSDoRpHSb5MCG1tzrNlZrh28Av3msP
1qo0tslLmCxiwpmTz5QUjS4m9punfD+ED/kk/9PjkloM0oeymZ7mkvP4DCdt6SJi
GLUVCgeH7t0i7tUJOKMRmqvvBKpeT873UNX1/xPJz1ET5LBlv+5aRFiF7OpNVC2l
aHjBWZezMtEJqxHHP8y8YwlwcOPNYkhXzDnFVA/YHwIjP90QVASgDPYaue+2gfX+
X1OkZheryRoVdP15MUGPVdV3grlp9yc3inudC4KCLE+nNjSqp8/XB8IdPf5qiYwf
P/2nhP1M9sACgdkIPpPlsMVQlW5482RoK46HRrAKOZHoP2p9Y5zwivLXTDbhFGaw
fKdcZwxZH60H1MA3NpT7xqkMYGgOdQMeE6o3+iwyp+NDVvv5SGYUxGn2VHZGJcgc
52dAGnoC6twLaxEjr3/VY/KeIm47FMDmH3Pti07fi4XPdJoTc9Xuh+WamONz4W0a
/Mo3WCIbHmKk1DrRhG1zc5pg06JDie/jdncucSZskoTel0jewVoeM6KuPNVz2DLp
JezK9lzPZU5uAaWfPfYVXUqGWapiDsBGsueQFUynSDBpDp3MCtpaDGIgiO+XTUmN
nQi6AwBG1SpXooLO3fEKEll/rhMlECc6oUk9F4+B6GzT7P6hDCKF2GpQjt0rVmI1
Ps6HeMIt2KM=
=geDB
-----END PGP SIGNATURE-----