Prevent SSL BREACH

A server vulnerable for BREACH (Browser Reconnaissance and Exfiltration via Adaptive Compression of Hypertext) allows an attacker to decrypt cookie contents such as session information. Learn here, how you can prevent SSL BREACH.

Security Assessment

Security_Assessment_PreventSSLBreach

CVSS Vector: AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Vulnerability Information

A server vulnerable for BREACH (Browser Reconnaissance and Exfiltration via Adaptive Compression of Hypertext) allows an attacker to decrypt cookie contents such as session information. Using "gzip" or "deflate" data compression via the content-encoding option within HTTP the encrypted data can be guessed by using brute-force search followed by a divide-and-conquer search.

For a successful BREACH attack, several requirements need to be met:

  • The website is transferred compressed.
  • The website reflects user input (e.g. a username which is given from the login form)
  • The website contains a secret (e.g. a CSRF token)

Guides

The easiest form of mitigation is disabling HTTP compression, which – however – will lead to bigger sites that need to be transferred. One possibility is to disable the compression only if the referrer is not the own application.

Apache

To disable HTTP compression from requests with different referrers, use the following settings:

sslbreach

https://github.com/crashtest-security/gist/blob/master/ssl_tls_vulnerabilities/ssl_breach_apache

For more information about Crashtest Security visit crashtest-security.com