Need help?

Our experts have had an average response time of 13.14 minutes in February 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

How to prevent SWEET32 Birthday Attacks on OpenVPN via Blowfish cipher vulnerability (CVE-2016-6329)

by | Aug 27, 2016

In our previous post, we saw how to secure your OpenSSL servers from SWEET32 Birthday Attack. But OpenSSL isn’t the only server that’s affected by this bug.

Use of block cipher encryption algorithm makes OpenVPN servers also vulnerable to this attack. The OpenVPN vulnerability is tracked with the CVE number CVE-2016-6329

Read: SWEET32 Birthday attack : How to fix TLS vulnerability (CVE-2016-2183)

Today we’ll see how OpenVPN is affected by SWEET32 bug and how to protect your servers.

What is OpenVPN SWEET32 vulnerability?

In OpenVPN tunneling, the encryption algorithms used are: DES, 3DES, AES and Blowfish. The default algorithm in OpenVPN is the bf128 (Blowfish with 128-bit key).

The use of short 64-bit block cipher such as Blowfish has made OpenVPN vulnerable to the SWEET32 birthday attack, the new exploit released on 24th August 2016.

OpenVPN connections secured with long-lived Blowfish algorithm can be decrypted using this SWEET32 birthday attack.

In this, attackers can recover secure HTTP cookies by sniffing around 705 GB of traffic. Attackers can thus gain access to your confidential information such as credit card details.

SWEET32 Birthday attack on OpenVPN vulnerability

SWEET32 Birthday attack on OpenVPN vulnerability

Are you vulnerable to SWEET32 OpenVPN bug?

If you are running OpenVPN versions lower than 2.3.12, where the default algorithm is Blowfish, then you are vulnerable to this bug.

To know the list of cipher algorithms supported by your OpenVPN server, use the command:

openvpn --show-ciphers

How to fix SWEET32 vulnerability in OpenVPN

OpenVPN team released their latest version OpenVPN 2.3.12, that will discourage the use of 64-bit ciphers. So the best solution is to download and install this latest secure version.

You can download the latest version from the OpenVPN site and extract it and install it in your server using these steps:

tar xfz openvpn-[version].tar.gz
cd .. 
./configure
make
make install

The new version supports the more secure AES ciphers, and hence its not vulnerable to SWEET32 exploit.

How to mitigate SWEET32 vulnerability in OpenVPN

In cases where an immediate upgrade of the OpenVPN service is not feasible, there is a work around to mitigate the attack.

The safest workaround for OpenVPN users is to change the cipher algorithm from the default Blowfish to AES.

Using a strong cipher such as ‘AES-256-CBC' on the client and server configuration helps mitigate the SWEET32 attack.

To use an AES algorithm with 256 bits encryption, add this line to both client (client.conf) and server config (server.conf) files of OpenVPN:

    cipher AES-256-CBC

It is also possible to update the Cipher from the OpenVPN management console.

A strong OpenVPN configuration file would look like:

client
dev tun
proto udp
remote in.privateinternetaccess.com 1197
resolv-retry infinite
nobind
persist-key
persist-tun
cipher aes-256-cbc
auth sha256
tls-client
remote-cert-tls server
auth-user-pass
comp-lzo
verb 1
reneg-sec 0
crl-verify crl.rsa.4096.pem
ca ca.rsa.4096.crt
disable-occ

In short

Today we saw how to secure your OpenVPN servers from the SWEET32 birthday attacks due to OpenVPN vulnerability, by upgrading the server and securing the ciphers.

At Bobcares, we also enable other security features in OpenVPN, such as using TLS authentication secret, using 2048-bit RSA keys for all certificates, setting TLS v1.2 as minimum version, etc.

As with the case of default cipher, the default message authentication for OpenVPN – SHA-1, is also weak. So we use a strong authentication, SHA-256 in our servers for security.

Our routine maintenance tasks and security audits helps us to ensure that the OpenVPN servers we maintain for our customers are secure and not prone to any attacks.

 

 

Are your servers vulnerable?

We can help you patch your servers, do a full-site security testing and secure your services from attacks.

SECURE MY SERVER

Emergency services provided at $49/hr


Bobcares provides Outsourced Hosting Support for online businesses. Our services include Outsourced Web Hosting Support, Outsourced Server Support, Outsourced Help Desk Support, Outsource Live Chat Support and Phone Support Services.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF