Openfire contains an uncontrolled resource consumption vulnerability

2014-04-16T00:00:00
ID VU:495476
Type cert
Reporter CERT
Modified 2014-04-23T00:00:00

Description

Overview

Openfire 3.9.1, and possibly earlier versions, contains an uncontrolled resource consumption (CWE-400) vulnerability when using XMPP DEFLATE message compression.

Description

Openfire 3.9.1, and possibly earlier versions, contains an uncontrolled resource consumption (CWE-400) vulnerability when using XMPP DEFLATE message compression. It has been reported that a highly compressed XMPP message of 4MB that uncompresses to 4GB may cause a resource exhaustion denial of service. The highly compressed XMPP messages may be sent in parallel to enhance the denial of service.


Impact

A remote unauthenticated attacker may be able to cause a denial-of-service condition.


Solution

We are currently unaware of a practical solution to this problem. A fix is available in the development branch of Openfire but a stable release is not available yet. Please consider the following workarounds.


Restrict Network Access

As a general good security practice, only allow connections from trusted hosts and networks if possible. Restricting access would prevent an attacker from connecting to the service from a blocked network location.

Disable XMPP Compression

Navigate to the menu Server -> Server Settings -> Compression Settings -> Client Compression Policy and check the option Not Available - Clients will not receive the option to use compressed traffic.


Vendor Information

Vendor| Status| Date Notified| Date Updated
---|---|---|---
Openfire| | 25 Feb 2014| 16 Apr 2014
If you are a vendor and your product is affected, let us know.

CVSS Metrics

Group | Score | Vector
---|---|---
Base | 7.8 | AV:N/AC:L/Au:N/C:N/I:N/A:C
Temporal | 7.0 | E:F/RL:W/RC:C
Environmental | 5.3 | CDP:ND/TD:M/CR:ND/IR:ND/AR:ND

References

  • <https://cwe.mitre.org/data/definitions/400.html>
  • <http://www.igniterealtime.org/projects/openfire/>
  • <http://community.igniterealtime.org/thread/52317>
  • <http://fisheye.igniterealtime.org/changelog/openfiregit?cs=3aec383e07ee893b77396fe946766bbd3758af77>
  • <http://xmpp.org/resources/security-notices/uncontrolled-resource-consumption-with-highly-compressed-xmpp-stanzas/>

Credit

Thanks to Giancarlo Pellegrino for reporting this vulnerability.

This document was written by Jared Allar.

Other Information

  • CVE IDs: CVE-2014-2741
  • Date Public: 16 Apr 2014
  • Date First Published: 16 Apr 2014
  • Date Last Updated: 23 Apr 2014
  • Document Revision: 20