Downgrade attacks: forcing weaker protocols and how modern TLS prevents it

A downgrade pushes two parties onto an older, weaker protocol or cipher than both support. How FREAK, Logjam, and POODLE used fallbacks, how TLS 1.3 protects the handshake, and how HSTS and disabling old versions close the door.

Lesson 8 of 10 · 10 min read · practice only with authorization

Diagram

A forced fallback and its fix

Follow the path. One example at a time.

Step 1 of 4

Offer

The client offers TLS 1.3 and strong suites.

Illustration: Offer
# Offer
# The client offers TLS 1.3 and strong suites.

The example on the open step is one illustration, or the fix you can paste into an application you own.

What this page is made of

3 pieces. Each one says what fails, who is affected, what you would notice, and what you change.

  1. Version fallback

    What fails
    Retrying with older versions on failure invites forced failures.
    Who is affected
    Clients that downgrade.
    What you would notice
    Servers still accepting SSLv3 or TLS 1.0.
    What you change
    Remove old versions so there is nothing to fall back to.
  2. Export ciphers

    What fails
    FREAK (2015) and Logjam (2015) forced 512-bit export-grade keys.
    Who is affected
    Servers offering export suites.
    What you would notice
    EXPORT suites in scanner output.
    What you change
    Remove them and use strong Diffie-Hellman groups or ECDHE.
  3. Protocol stripping

    What fails
    Rewriting https:// links to http:// removes TLS entirely.
    Who is affected
    Users on hostile networks.
    What you would notice
    Sites without HSTS.
    What you change
    Enable HSTS with preload.

Email has the same problem

SMTP STARTTLS can be stripped by an interceptor, leaving mail in plaintext. MTA-STS publishes a policy that tells senders to require TLS to your MX hosts, and TLS-RPT reports failures.

_mta-sts.example.test.  TXT  "v=STSv1; id=20261103"
# https://mta-sts.example.test/.well-known/mta-sts.txt
version: STSv1
mode: enforce
mx: mx1.example.test
max_age: 604800

Check yourself

Recognition and the fix. Nothing here is a procedure.

1 / 3

How does TLS 1.3 detect a downgrade to TLS 1.2?

Go deeper

Specific techniques, exercises, and glossary cards for this topic.

  1. 01TLS versions and the certificate inventoryA connection is only as modern as the versions you still accept, and only as named as the certificate you can find. Includes the diagram and a defensive fix.
  2. 02Auditing TLS: protocol versions, cipher suites, and certificates with testssl.shHistoric TLS bugs (POODLE, BEAST, Heartbleed, ROBOT) mostly come down to old protocol versions, weak ciphers, or unpatched libraries. Includes the diagram and a defensive fix.

Exercises

  1. 01Terminal mission: TLS 1.0 hiding in an includeThe main TLS settings look fine, but one server block includes an old snippet. Follow nginx includes to find the site that still allows TLS 1.0 and a 3DES cipher.
  2. 02TLS certificate chain readerRead five certificate chains the way a client does: hostname, dates, issuer links, and trust. Find the expired leaf, the missing intermediate, and the bad wildcard.