ESB-2018.0422 - [Win][UNIX/Linux] Apache Qpid Broker-J: Denial of service - Remote/unauthenticated 2018-02-12

Printable version
PGP/GPG verifiable version

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

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2018.0422
           CVE-2018-1298: Apache Qpid Broker-J Denial of Service
           Vulnerability with PLAIN and XOAUTH2 SASL mechanisms
                             12 February 2018

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

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

Product:           Apache Qpid Broker-J
Publisher:         The Apache Software Foundation
Operating System:  Windows
                   UNIX variants (UNIX, Linux, OSX)
Impact/Access:     Denial of Service -- Remote/Unauthenticated
Resolution:        Patch/Upgrade
CVE Names:         CVE-2018-1298  

Original Bulletin: 
   https://qpid.apache.org/cves/CVE-2018-1298.html

- --------------------------BEGIN INCLUDED TEXT--------------------

CVE-2018-1298: Apache Qpid Broker-J Denial of Service Vulnerability with
PLAIN and XOAUTH2 SASL mechanisms

Severity: Important

Vendor: The Apache Software Foundation

Versions Affected: Versions 7.0.0

Description:

A Denial of Service vulnerability [1] was found in Apache Qpid Broker-J
7.0.0 in functionality for authentication of connections for AMQP protocols 0-8,
0-9, 0-91 and 0-10 when PLAIN or XOAUTH2 SASL mechanism is used. The
vulnerability allows unauthenticated attacker to crash the broker instance. 
AMQP 1.0 and HTTP connections are not affected.

An authentication of incoming AMQP connections in Apache Qpid Broker-J is
performed by special entities called "Authentication Providers". Each
Authentication Provider can support several SASL mechanisms
which are offered to the connecting clients as part of SASL negotiation
process.
The client chooses the most appropriate SASL mechanism for authentication.

Authentication Providers of following types supports PLAIN SASL mechanism:
* Plain
* PlainPasswordFile
* SimpleLDAP
* Base64MD5PasswordFile
* MD5
* SCRAM-SHA-256
* SCRAM-SHA-1

XOAUTH2 SASL mechanism is supported by Authentication Providers of type
OAuth2.

If an AMQP port is configured with any of these Authentication Providers,
the Broker may be vulnerable.

Resolution:

Users of Broker-J version 7.0.0 utilizing affected Authentication Providers
on AMQP ports with support for AMQP 0-8, 0-9, 0-91 or 0-10 must upgrade to
version 7.0.1 or later.

Mitigation:

If upgrade of the broker is not possible, the SimpleLDAP and OAuth2 must be
replaced with an alternative provider. For the remaining affected types of
Authentication Providers the PLAIN SASL mechanism must be disabled by
including "PLAIN" in the "disabledMechanisms" attribute of the provider. 
The changes can be made either directly in the broker configuration file or via
management interfaces (for example, REST API [2]). A broker restart is required 
for the changes to take effect. Here is a template for curl utility call to 
disable PLAIN mechanism using REST API:

curl --user <user-name> -X POST  -d '{"disabledMechanisms":["PLAIN"]}' \
https://<broker host>:<broker https
port>/api/latest/authenticationprovider/<provider name>

Alternatively, when only AMQP 1.0 protocol is used, the support for older
AMQP
protocols can be removed on the AMQP port. It can be done either from
Broker-J
Web Management Console or via management interfaces. A broker restart is
required for the changes to take effect. Here is a template for curl REST
API
call to restrict port supported AMQP protocols to AMQP 1.0:

curl --user <user-name> -X POST  -d '{"protocols":["AMQP_1_0"]}' \
https://<broker host>:<broker https port>/api/latest/port/<port name>

References:

[1] https://issues.apache.org/jira/browse/QPID-8046
[2] https://qpid.apache.org/releases/qpid-broker-j-7.0.0/book/Java-Broker-Management-Channel-REST-API.html
[3] http://qpid.apache.org/components/broker-j/index.html

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. 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.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
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

iQIVAwUBWoE3xox+lLeg9Ub1AQj3FA/9Fd4FhAeDGHUCkdBN2ejCotxeM1wVIdht
2r4GDEUGn9KNhevGuMMgOjUv2pVPjUEbqhdZkvU3IYP6qoUTEENIjXdHUzwBOiDi
Eduu6grU7/CgcMGuggbEIZtWUG7AaqCqs1MFmSTmxDYQa69zgkwSE+aO87/zSFKp
Isc7GkfiCyBAPPXk4diJetRxjFq00gvOnsfXqNi6yvu5r0kX1T5HpcsU5KWRS2T9
9qA6HmzwxwajE6yDIQSNhN39hvuk91/YEYHLAPtITTORLUTEcVkLlV7H30HAsbTS
hWZ1HFpXoylMT3csfFylRIO2/Lki4JIHxw4Ps4NecajzwERGDphjWLMal5ta3ziE
AY8DSP9KeNdSrytbPJhWEb0zQ1xZzn2aFoHaquFldmH1dd1gWs+YmMs62VGrB7j8
RXXjb05ciXENKFZMXVDeb8m50xNYo2yFqu8S0wao6wsGQY+jiw6i+0mwlNPUt8Ex
Y09857v0ub/Vk6NWNu/i9HPuz0r6EzqeRzYJZs2ZsxMwnsXiWibdnbmNjwDNTlbi
yqkaPxzQuBGV9NTog/j/zDRi+QD/aidaKiwEe9yrkeBdXYgyo2/0bLpcFxfkxmaR
X6XDIhJz2LJY2xfuUCiu0ytC5DBIJ4jcxTfquzIxTTYwL+Ch7oihTgIHXqwD+MJY
0FGdnhdHBss=
=JqdV
-----END PGP SIGNATURE-----

« Back to bulletins