Ribbon Icon Celebrating 27 Years – Announcing the new GeoTrust Horizon® platform. Learn More
Home Icon > Resources > Expert Guides > SSL/TLS Vulnerabilities > Patching the LUCKY 13 Vulnerability: Solutions for IIS & More

Patching the LUCKY 13 Vulnerability: Solutions for IIS & More

LUCKY 13 is an SSL/TLS protocol vulnerability that exploits a flaw in CBC-mode cipher padding. Bad guys use this weakness to perform side-channel attacks that decrypt secret data, including login details, credit cards, and session tokens.

This post explains the LUCKY13 vulnerability, its effect on your server, and how to remedy it successfully. 

Simplify SSL Monitoring with Automated Scanning

Protect your websites against expiring SSL certificates, vulnerabilities, and misconfigurations.

What Is the LUCKY13 Attack? 

The LUCKY13 attack exploits the CBC (cipher block chaining) mode of encryption in SSL/TLS protocols. It works by exploiting timing differences relating to how padding errors are handled by servers during decryption. This approach allows attackers to determine encrypted plaintext by analyzing response times to requests. 

A demonstration of an error that might display as a result of a Lucky13-related security issue
Image caption: A screenshot of the type of browser error message a site visitor may see when there’s an issue with a domain.

Why Is the LUCKY13 Attack a Problem? 

If your server is susceptible to the LUCKY13 attack, then you may face the following conditions: 

  • Intercepted and decrypted of sensitive information transmitted over HTTPS. 
  • Bypassed encryption layers, exposing login credentials, payment information, or confidential data. 
  • Reduce the overall security of SSL/TLS connections. 

Best Practices to Prevent the LUCKY13 Attack 

Here’s how you can prevent the LUCKY13 attack vulnerability by updating server configurations and applying fixes. 

1. Eliminate CBC-mode Ciphers and Use AEAD-based Ciphers 

CBC mode ciphers are vulnerable to timing attacks. Instead use AEAD (Authenticated Encryption with Associated Data) type of ciphers like Galois/Counter Mode which is GCM. 

For Ubuntu/NGINX: 

  1. Open the NGINX configuration file located at /etc/nginx/nginx.conf and specify the SSL/TLS protocols and ciphers: 
ssl_protocols TLSv1.2 TLSv1.3; 
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; 
ssl_prefer_server_ciphers on;
A screenshot demonstrating how to specify SSL/TLS protocols and ciphers
Image caption: A screenshot demonstrating how to specify the SSL/TLS protocols and ciphers to eliminate the use of CBC-mode ciphers on an NGINX server.

  1. Restart NGINX: 
service nginx restart  

For CentOS/Apache: 

  1. Open the Apache SSL configuration file at /etc/httpd/conf.d/ssl.conf: 
SSLProtocol all -SSLv2 -SSLv3 
SSLCipherSuite HIGH:!aNULL:!MD5:!CBC 
SSLHonorCipherOrder on
An example of how to specify the SSL/TLS protocols and ciphers your server supports
Image caption: A screenshot demonstrating how to specify the SSL/TLS protocols and ciphers to eliminate the use of CBC-mode ciphers on an Apache server.
  1. Restart Apache: 
sudo systemctl restart httpd 

For Windows Server/IIS 

  1. Open Registry Editor: Press Win + R, type regedit, and press the Enter key. 
  2. Disable Weak Protocols. Navigate to: 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols 

SSL 2.0, SSL 3.0, TLS 1.0, TLS 1.1: Add or set Enabled (DWORD) = 0 under Server (0 = disabled).

  1. Enable Strong Protocols: 

TLS 1.2, TLS 1.3 (if supported): Add or set Enabled (DWORD) = 1 under Server (1 = enabled). 

  1. Disable Weak Ciphers: Navigate to: 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers 

Disable weak ciphers (e.g., RC4, Triple DES) by setting Enabled (DWORD) = 0. 

A screenshot of the Registry Editor, showing SChannel information relating to disabled RC4 ciphers on a Windows Server
Image caption: A screenshot demonstrating where to verify that RC4 ciphers have been disabled in Registry Editor on a Windows Server.
  1. Enable Strong Ciphers: Make sure AES ciphers are enabled: 
    • Set Enabled (DWORD) = 1 for AES. 
  1. Restart Server: Apply changes by restarting the server. 

Note: If you don’t want to edit your Windows Server/IIS registry directly, you can use Nartac Software’s IIS Crypto tool to enable insecure algorithms and protocols.

2. Update Your Server and OpenSSL Updated 

Make sure that your server is using the latest version of OpenSSL that has mitigations against the LUCKY13 vulnerability. 

For Ubuntu: 

  1. Update OpenSSL: 
sudo apt update && sudo apt install openssl 
  1. Check OpenSSL *Version: 
openssl version 

* Make sure the version is at least 1.0.1g or higher. 

For CentOS: 

  1. Update OpenSSL: 
sudo yum update openssl 
  1. Verify OpenSSL Version: 
openssl version 

For Windows Server: 

3. Verify Your Server’s Security Configuration 

Once these changes have been applied, it’s always necessary to test your server for LUCKY13. 

Find & Fix SSL Vulnerabilities Without Lifting a Finger

Detect and diagnose 110+ SSL issues easily with continuous website scanning

How to Use SSL Monitor to Prevent LUCKY13 Attacks 

GeoTrust Horizon’s SSL Monitor is an efficient tool to detect and fix SSL/TLS vulnerabilities, including the LUCKY13 attack. Here’s how you can use it to secure your server: 

  1. Add Your Domain to SSL Monitor: Log in to your GeoTrust Horizon dashboard, navigate to the SSL Monitor feature, and add your domain for continuous monitoring. 
A screenshot showing how to add a domain to SSL Monitor to begin checking for 110+ SSL-related vulnerabilities and issues
  1. Initiate SSL Scan: Run a vulnerability scan to identify attacks like the LUCKY13 attack. The tool will analyse your SSL/TLS configuration and mark down all weak ciphers and older protocols. 
An example of what you'll see in the GeoTrust Horizon dashboard when adding a domain to scan in SSL Monitor
Image caption: An example of what you’ll see in the SSL Monitor when scanning a new domain.
  1. Remediate Issues: Follow the remediation instructions offered by GeoTrust Horizon by disabling CBC-mode ciphers and enabling AEAD-based ciphers. 
Remediation results for SSL Monitor's check of the SSL Vulnerability LUCKY 13
Image caption: An example of the LUCKY 13 vulnerability remediation steps that are spelled out for you in SSL Monitor.
  1. Rescan Your Domain: After applying the above remediation, re-run your domain scan to validate if the LUCKY13 vulnerability has been successfully removed. 
An example of what it looks like in GeoTrust Horizon's SSL Monitor dashboard when the LUCKY 13 SSL/TLS protocol vulnerability has been remediated.
Image caption: A screenshot of the SSL Monitor dashboard after vulnerabilities, including LUCKY13, have been remediated.

LUCKY13 attack is another critical vulnerability to SSL/TLS that if not worked upon, compromises sensitive information. You can ensure safe server operation with the exclusion of CBC-mode ciphers, using of AEAD-based encryption, OpenSSL, and GeoTrust Horizon SSL Monitor tools.

Regular check-up as well as prompt update always keep your strong encryption afloat and protected online communications.