Common TLS Attacks
Downgrade and stripping.
Common TLS Attacks is a free Cyber Security Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
TLS Is a Target
Because TLS protects so much traffic, attackers constantly look for weaknesses.
Most attacks try to downgrade security, strip encryption, or exploit old protocol flaws.
Downgrade Attacks
In a downgrade attack, an attacker interferes with the handshake to force both sides onto an older, weaker protocol or cipher.
The POODLE attack abused a forced downgrade to SSL 3.0.
Defending Against Downgrade
Defenses include:
- Disabling old protocols (SSL 2/3, TLS 1.0/1.1).
- The TLS downgrade protection built into TLS 1.3.
- The
SCSVfallback signal in TLS 1.2.
ssl_protocols TLSv1.2 TLSv1.3;SSL Stripping
SSL stripping happens when a user types a plain http:// link. A man-in-the-middle keeps the connection unencrypted toward the user while talking HTTPS to the server.
The victim never sees the lock icon, often unnoticed.
HSTS Defense
HTTP Strict Transport Security (HSTS) tells browsers to always use HTTPS for a domain, blocking stripping.
Strict-Transport-Security: max-age=31536000; includeSubDomains; preloadMan-in-the-Middle
A man-in-the-middle (MITM) sits between client and server, relaying traffic.
Proper certificate validation defeats this: the attacker cannot present a valid certificate for the target domain that a trusted CA signed.
Compression Attacks: CRIME and BREACH
CRIME and BREACH exploited TLS or HTTP compression to leak secrets like session cookies by observing compressed response sizes.
The fix: disable TLS compression and be careful mixing secrets with attacker-controlled data.
Padding Oracle Attacks
Old CBC-mode ciphers were vulnerable to padding oracle attacks like Lucky 13.
Modern AEAD ciphers (AES-GCM, ChaCha20-Poly1305) eliminate this entire class of bugs.
Heartbleed
Heartbleed was a memory-disclosure bug in OpenSSL, not a TLS protocol flaw. It let attackers read server memory, potentially leaking private keys.
Lesson: keep your TLS libraries patched.
Renegotiation and Truncation
Older TLS allowed unsafe renegotiation and truncation attacks where injected data or cut-off messages could be abused.
Secure renegotiation extensions and TLS 1.3 address these.
Hardening Checklist
To harden TLS:
- Use only TLS 1.2 and 1.3.
- Prefer AEAD cipher suites with forward secrecy.
- Enable HSTS.
- Disable compression.
- Keep libraries patched.
Quick Check
Which defense specifically prevents SSL stripping attacks?
Recap
You learned about common TLS attacks.
- Downgrade and stripping force weaker or no encryption.
- HSTS and disabling old protocols are key defenses.
- AEAD ciphers and patching kill padding-oracle and library bugs.
Next module: Multi-Factor Authentication.
Frequently asked questions
Is the “Common TLS Attacks” lesson free?
Yes — the full text of “Common TLS Attacks” is free to read here on the web, and the Cyber Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cyber Security Academy course, upgrade to CoddyKit PRO.
What will I learn in “Common TLS Attacks”?
Downgrade and stripping. You practise Cyber Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Cyber Security Academy?
No prior experience is required. Cyber Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Common TLS Attacks” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Cyber Security Academy lesson?
Yes. Every Cyber Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- The TLS Handshake
- Cipher Suites
- Certificate Validation
- Common TLS Attacks