When using MongoDB with SSL/TLS you may or may not be using TLS compression depending on a number of factors including:
- The OS provided OpenSSL may have disable it at compile time (recent RHEL releases)
- You're using MongoDB on Windows (we build our vendored OpenSSL without compression)
- The driver and driver version you are using. (C driver recently disabled compression, the python driver will soon, some language TLS libraries may by default.)
Though MongoDB isn't theoretically vulnerable to the CRIME attack, many users consider TLS compression a security problem.
For consistency, if for nothing else, we should explicitly disable TLS compression in the server at runtime. The patch is, essentially: