Half of websites , and their number is steadily increasing. The protocol reduces the risk of traffic interception but does not eliminate attack attempts altogether. We will discuss some of them — POODLE, BEAST, DROWN, and others — and ways to protect against them in our article.
/ Flickr / / CC BY-SA
POODLE
The attack was first reported in 2014. The vulnerability in the SSL 3.0 protocol was discovered by information security expert Bodo Möller and colleagues from Google.
Its essence is as follows: a hacker forces the client to connect using SSL 3.0 by mimicking connection drops. Then, they search for special marker messages in the encrypted -mode traffic. Through a series of forged requests, the attacker gains the ability to reconstruct the content of the data of interest, such as cookies.
SSL 3.0 is an outdated protocol. However, the issue of its security is still relevant. Clients use it to avoid compatibility problems with servers. According to some data, almost 7% of the 100,000 most popular websites . There are also of POODLE targeting more modern TLS 1.0 and TLS 1.1. This year, new attacks Zombie POODLE and GOLDENDOODLE, which bypass the protection of TLS 1.2 (they are still related to CBC encryption).
How to protect yourself. In the case of the original POODLE, it's necessary to disable support for SSL 3.0. However, this comes with the risk of compatibility issues. An alternative solution could be the TLS_FALLBACK_SCSV mechanism — it ensures that data exchange over SSL 3.0 will only occur with older systems. Attackers will no longer be able to initiate a protocol downgrade. To protect against Zombie POODLE and GOLDENDOODLE, one must disable CBC support in applications based on TLS 1.2. A radical solution would be to switch to TLS 1.3 — this new version of the protocol does not use CBC encryption. Instead, more resilient AES and ChaCha20 are used.
BEAST
One of the earliest attacks on SSL and TLS 1.0, discovered in 2011. Like POODLE, BEAST Features of CBC encryption. Attackers deploy a JavaScript agent or Java applet on the client machine that intercepts messages during data transmission over TLS or SSL. Since attackers are aware of the contents of the "forged" packets, they can use them to decrypt the initialization vector and read other messages to the server, such as authentication cookie files.
As of today, the BEAST vulnerability still : proxy servers and applications used to secure local internet gateways.
How to protect yourself. The attacker needs to regularly send requests to decrypt data. In VMware reduce the SSLSessionCacheTimeout from five minutes (the default recommendation) to 30 seconds. This approach complicates the attackers' plans, although it will have some negative impact on performance. Additionally, it is important to understand that soon the BEAST vulnerability may become obsolete by itself — starting from 2020, major browsers supporting TLS 1.0 and 1.1. In any case, these protocols are used by less than 1.5% of all browser users.
DROWN
is a cross-protocol attack that exploits flaws in the implementation of SSLv2 with 40-bit RSA keys. An attacker listens to hundreds of the target's TLS connections and sends special packets to the server using SSLv2 with the same private key. By employing , a hacker can decrypt one of approximately a thousand client's TLS sessions.
DROWN was first disclosed in 2016 — at that time it was in the world. To this day, it has not lost relevance. Of the 150,000 most popular sites, 2% still use SSLv2 and vulnerable encryption mechanisms.
How to protect yourself. It is necessary to apply the patches provided by cryptographic library developers that disable SSLv2 support. For example, two such patches were released for OpenSSL (in 2016, 1.0.1s and 1.0.2g). Updates and instructions to disable the vulnerable protocol have also been published in , , .
"The resource may be vulnerable to DROWN if its keys are used by a third-party server with SSLv2, such as a mail server," notes the head of development Sergey Belkin. — This situation arises when multiple servers share a common SSL certificate. In this case, SSLv2 support must be disabled on all machines.
You can check if your system needs an update using a special — it was developed by security experts who discovered DROWN. More recommendations related to protection against this type of attack can be found in the .
Heartbleed
One of the most significant vulnerabilities in software — was discovered in 2014 in the OpenSSL library. At the time of the error announcement, the number of vulnerable websites — about 17% of secured resources on the web.
The attack is implemented through a small Heartbeat module of the TLS extension. The TLS protocol requires that data be transmitted continuously. In the event of prolonged inactivity, a disconnection occurs, and the connection must be re-established. To address the problem, servers and clients artificially 'noise' the channel (), transmitting a packet of random length. If it was larger than the maximum packet size, vulnerable versions of OpenSSL would read memory beyond the allocated buffer. This area could contain any data, including private encryption keys and information about other connections.
The vulnerability was present in all versions of the library between 1.0.1 and 1.0.1f inclusive, as well as in several operating systems — Ubuntu up to 12.04.4, CentOS older than 6.5, OpenBSD 5.3, and others. A complete list is available . Although patches against this vulnerability were released almost immediately after its discovery, the problem remains relevant to this day. Even as of 2017, , were still vulnerable to Heartbleed.
How to protect yourself. It is necessary to to version 1.0.1g or higher. You can also manually disable Heartbeat requests using the DOPENSSL_NO_HEARTBEATS option. After the update, security experts should reissue SSL certificates. Replacement is needed in case the encryption key data has been compromised by hackers.
Certificate Replacement
A managed node with a legitimate SSL certificate is set up between the user and the server, actively intercepting traffic. This node presents itself as a legitimate server, providing a valid certificate, and allows for a MITM attack.
According to According to commands from Mozilla, Google, and several universities, approximately 11% of secure connections on the internet are being monitored. This is a result of suspicious root certificates being installed on users' computers.
How to protect yourself. Use the services of reliable . You can check the 'quality' of certificates using the service (CT). Cloud providers can also help with detecting monitoring; already today, some large companies offer specialized tools for monitoring TLS connections.
Another means of protection will be the new ACME, which automates the acquisition of SSL certificates. It will also add additional mechanisms for verifying the ownership of the website. You can read more about it .

/ Flickr / / CC BY
The Prospects of HTTPS
Despite a number of vulnerabilities, IT giants and cybersecurity experts are confident in the future of the protocol. For the active implementation of HTTPS, the creator of the WWW, Tim Berners-Lee. According to him, over time, TLS will become more secure, significantly enhancing the safety of connections. Berners-Lee even suggested that in the client certificates for identity authentication will emerge. They will help improve server protection against intruders.
The development of SSL/TLS technology is also planned to be enhanced with machine learning—intelligent algorithms will be responsible for filtering malicious traffic. In HTTPS connections, administrators have no means to know the contents of encrypted messages, including discovering requests from malware. Today, neural networks are already capable of filtering potentially dangerous packets with 90% accuracy. ().
Conclusions
Attacks on HTTPS are mostly related not to issues in the protocol itself, but to the support of outdated encryption mechanisms. The IT industry is gradually moving away from previous generation protocols and is offering new tools for vulnerability detection. In the future, these tools will become increasingly intelligent.
Additional resources on the topic:
Source: habr.com
