TLS Attacks
TLS is rarely broken. What fails is the version floor someone lowered for a printer, the CBC suite left in the default list, an implementation that answered a malformed heartbeat, or a certificate nobody was watching. This page is about testing those four things in the order that produces findings rather than grades.
A grade is not a finding
Protocol versions
Version support is the cheapest thing to check and the least often proven. A scan that lists TLS 1.0 has usually read a configured policy; a scan that completed a TLS 1.0 handshake has found the floor. The difference matters because the second is a fact you can defend in a change review.
| Version | Status | What breaks | Fix |
|---|---|---|---|
| SSL 2.0 / 3.0 | Removed | POODLE on SSL 3.0 CBC; SSL 2.0 has no MAC construction worth the name | Disabled at build time in every current library; a listener that offers it is an old appliance |
| TLS 1.0 / 1.1 | Deprecated by RFC 8996 (2021) | BEAST against CBC in 1.0; no AEAD suites; still allows CBC with predictable IVs | Disable. Browser support ended in 2020; what remains is a printer, a load balancer default, or an IoT device |
| TLS 1.2 | Current floor | Allows CBC and RC4 suites — acceptable only when the suite list excludes them | Restrict to ECDHE + AES-GCM or ChaCha20-Poly1305 |
| TLS 1.3 | Current | No known protocol-level weakness; downgrade is the remaining attack surface | Enable; forward secrecy is mandatory and non-AEAD suites do not exist |
POODLE is a padding oracle wearing a protocol's clothes
Cipher suites
After the version floor, the suite list is where the remaining risk lives. A TLS 1.2 endpoint offering only ECDHE-GCM suites is in good shape; the same endpoint offering CBC and RC4 alongside them is one ClientHello away from negotiating something worse, because an attacker who can influence the handshake chooses the weakest common suite.
| Suite family | Problem | Replace with |
|---|---|---|
| RC4 (any) | Statistically biased keystream; prohibited for all TLS versions by RFC 7465 in 2015 | Any AEAD suite |
| 3DES_EDE_CBC | 64-bit block: Sweet32 recovers plaintext from a few hundred GB on one connection | AES-GCM or ChaCha20-Poly1305 |
| AES_CBC_SHA (TLS 1.0/1.1 style) | CBC padding oracle exposure if the implementation leaks; BEAST in 1.0 | AES-GCM |
| EXPORT / NULL / anonymous | Deliberately weakened or unauthenticated — FREAK, Logjam, and the obvious trivial case | Removed entirely, not reordered |
| RSA key exchange (no ECDHE) | No forward secrecy: a recorded session plus the private key later decrypts it; also the Bleichenbacher surface | ECDHE on every suite |
RC4 is the clearest case of a suite that outlived its deprecation: RFC 7465 prohibited it for every TLS version in 2015, and TLS 1.3 removed the possibility entirely by admitting only AEAD suites. An endpoint that still offers RC4 in 2026 is not running a current configuration, which is usually the more useful finding — it tells you the listener has not been reviewed since an appliance install.
Implementation bugs
These are not configuration defects and cannot be fixed by a policy change. They are the reason a scan output that only covers versions and suites is incomplete.
Heartbleed — CVE-2014-0160
OpenSSL copied a length field from the heartbeat request into the response without checking it against the actual payload, so a client could ask for up to 64 KB of adjacent process memory. The impact is not padding oracle subtle: private keys, session tickets and passwords left the process directly. Affected 1.0.1 through 1.0.1f. Testing is one malformed heartbeat; a response of the wrong length proves it before any data is read.
ChangeCipherSpec injection — CVE-2014-0224
An early ChangeCipherSpec message could be accepted mid-handshake, letting a positioned attacker force a weak master secret. It needs a man in the middle, so it is high only where that position is plausible — shared Wi-Fi, a hosting provider, a compromised router.
ROBOT — Bleichenbacher in TLS
Return Of Bleichenbacher's Oracle Threat (2017) found the 1998 padding oracle alive in TLS implementations that still used RSA key exchange with PKCS#1 v1.5 padding, with distinguishable error responses. RSA Attacks covers the primitive; the TLS-level lesson is that choosing ECDHE removes the target rather than hardening it.
Endpoint configuration
Most real findings are here. Nothing on this list is a weakness in TLS; each is a decision made elsewhere that undermines it.
| Defect | Why it is a finding | Fix |
|---|---|---|
| No HSTS header | One plaintext request before the redirect is enough to strip the upgrade; the header is an HTTP response header, not a handshake property | Strict-Transport-Security with a short max-age first, then raise it |
| Certificate expired or wrong hostname | Training users to click through is the actual vulnerability — it defeats every other control on this page | Monitoring with alerting, and a hostname list generated from the same source as the vhosts |
| SHA-1 signature or RSA-1024 key | Collision attacks and feasible factorisation; some clients already refuse the handshake | Reissue with SHA-256 and RSA-2048 minimum (3072 for long-lived data) |
| TLS compression enabled | CRIME: compression leaks secrets through ciphertext length | Disable compression at the listener; it is off by default on current servers |
| Self-signed in production | Not a server misconfiguration in itself — it becomes one because the client must now ignore validation | A certificate from a public CA, or an internal CA pushed by policy rather than a click-through |
Certificate transparency belongs in the same list, though it is a detection control rather than a defect: every publicly trusted certificate is published to append-only logs, so a certificate issued for your domain by someone else is visible. If nobody is watching the logs, the first signal of a misissued certificate is a browser warning on a user's machine.
Pinning is a client decision, not a server one
Testing tools
One tool that answers the whole question, then a raw handshake to confirm anything you are about to report.
testssl.sh covers
versions, suites, certificate properties and the named vulnerabilities in one pass and emits JSON.
# one endpoint, every protocol question, machine-readable output
./testssl.sh --quiet --color 0 --jsonfile tls.json https://app.example.com
# the checks that produce findings rather than a grade
./testssl.sh --quiet --protocols https://app.example.com # SSLv2 ... TLS 1.3, negotiated per version
./testssl.sh --quiet --ciphers https://app.example.com # full suite list per version
./testssl.sh --quiet --vulnerable https://app.example.com # Heartbleed, CCS, ROBOT, Sweet32, FREAK, Logjam
./testssl.sh --quiet --headers https://app.example.com # HSTS and the rest of the response headers
# every listener on a host, not just the one behind the hostname
for p in 443 8443 993 465; do
./testssl.sh --quiet --color 0 --protocols "app.example.com:$p"
doneimport ssl
# the defaults people arrive at by not deciding, plus a compatibility flag that
# silently re-enables TLS 1.0 and the weaker suites
context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
context.minimum_version = ssl.TLSVersion.TLSv1
context.maximum_version = ssl.TLSVersion.TLSv1_2
context.load_cert_chain("fullchain.pem", "privkey.pem")
# no set_ciphers: OpenSSL default list, which still includes CBC until 3.0 defaults
# no OP_NO_COMPRESSION: CRIME is back if the library was built with zlibimport ssl
# the defaults people arrive at by not deciding, plus a compatibility flag that
# silently re-enables TLS 1.0 and the weaker suites
context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
context.minimum_version = ssl.TLSVersion.TLSv1
context.maximum_version = ssl.TLSVersion.TLSv1_2
context.load_cert_chain("fullchain.pem", "privkey.pem")
# no set_ciphers: OpenSSL default list, which still includes CBC until 3.0 defaults
# no OP_NO_COMPRESSION: CRIME is back if the library was built with zlibimport ssl
# a floor and a suite list that excludes CBC, RC4 and anything without forward secrecy
context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
context.minimum_version = ssl.TLSVersion.TLSv1_2
context.maximum_version = ssl.TLSVersion.TLSv1_3
context.set_ciphers("ECDHE+AESGCM:ECDHE+CHACHA20:!aNULL:!MD5:!3DES")
context.options |= ssl.OP_NO_COMPRESSION
context.options |= ssl.OP_NO_RENEGOTIATION
context.load_cert_chain("fullchain.pem", "privkey.pem")
# TLS 1.3 suites are not controlled by set_ciphers; the library picks AEAD-only suitesimport ssl
# a floor and a suite list that excludes CBC, RC4 and anything without forward secrecy
context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
context.minimum_version = ssl.TLSVersion.TLSv1_2
context.maximum_version = ssl.TLSVersion.TLSv1_3
context.set_ciphers("ECDHE+AESGCM:ECDHE+CHACHA20:!aNULL:!MD5:!3DES")
context.options |= ssl.OP_NO_COMPRESSION
context.options |= ssl.OP_NO_RENEGOTIATION
context.load_cert_chain("fullchain.pem", "privkey.pem")
# TLS 1.3 suites are not controlled by set_ciphers; the library picks AEAD-only suites| Tool | Answers | Limit |
|---|---|---|
| testssl.sh | Versions, suites, certificates, named vulnerabilities, headers | Slow against many hosts; the grade invites over-reading |
| sslyze | The same checks as a Python library, scriptable across inventories | Needs you to know which checks matter |
| nmap ssl-* scripts | Enumeration and Heartbleed/CCS probes during a port scan | Shallow on suites; easy to mistake for a full assessment |
| openssl s_client | The raw handshake, and confirmation of any specific claim | One connection at a time; legacy protocol flags often unavailable |
# what the endpoint actually negotiates, without a scanner in the way
openssl s_client -connect app.example.com:443 -servername app.example.com </dev/null 2>/dev/null \
| openssl x509 -noout -subject -dates -ext subjectAltName
# force a version: this fails on a hardened endpoint, which is the point
openssl s_client -connect app.example.com:443 -tls1_1 </dev/null
# SSLv3 is compiled out of OpenSSL since 1.1.0 - on a stock 3.x build the flag exists
# but cannot negotiate. Test SSLv3 with an old binary, a container, or testssl.sh:
# openssl s_client -connect app.example.com:443 -ssl3 <- will not complete
# RC4 lives in the legacy provider, which is not loaded by default
openssl s_client -connect app.example.com:443 \
-provider default -provider legacy -cipher 'RC4-SHA' </dev/null
# if the suite still refuses, the security level is the next lever, not the cipher list
openssl s_client -connect app.example.com:443 -cipher 'DEFAULT@SECLEVEL=0' </dev/nullTesting someone else's endpoint is still testing
What to report
Separate the findings that need an attacker position from the ones that do not. Heartbleed and an expired certificate affect every user; RC4 and TLS 1.0 need someone on the path, which on a corporate network is the threat model but on a public site behind a modern CDN is close to theoretical. That distinction is the difference between a report a network team acts on and one they argue with.
| Check | Expected | Where to look |
|---|---|---|
| The negotiated version and suite are recorded per endpoint | Not the policy — the actual handshake, including the fallback a legacy client gets | Scan output, one line per host:port |
| Every endpoint was tested, not every hostname | Same certificate, different listener: an old backend behind the same name still negotiates TLS 1.0 | The target list |
| Protocol support was proven, not inferred from a cipher list | An explicit handshake at the legacy version, or a tool that does it for you | testssl.sh output per version |
| A certificate failure names which of the four properties failed | Validity window, hostname match, chain to a public root, key strength — each has a different fix | The finding title |
| The severity separates interception from remote exploitation | Heartbleed is remote; TLS 1.0 needs a position on the path | The severity field |
Evidence to Capture
A TLS finding is verified from a handshake, not from a policy document. Capture these before writing it up:
The handshake transcript: Negotiated version, cipher suite, key exchange group, signature algorithm and certificate chain — one line per host:port. Keep the raw tool output as an attachment.
The legacy handshake, forced: Whether TLS 1.0 or SSL 3.0 completes when you ask for it explicitly. A version listed in a scan is not proof; the ability to complete the handshake is.
The certificate facts: Subject, SAN list, validity window, signature algorithm, key size, issuer and whether the chain terminates at a public root. Copy the SAN list verbatim — wildcard coverage is a common surprise.
The path to the endpoint: Whether the listener is internet-facing or internal-only. It changes severity more than any protocol detail, because a downgrade needs a position on the path.
The mitigations already present: HSTS with its max-age, certificate transparency monitoring, and whether the load balancer rewrites headers. Do not report a missing control that a CDN adds.
What Looks Like a Finding and Is Not
TLS testing produces more noise than almost any other area, because default scanners report policy drift as vulnerability:
- TLS 1.0 listed but not negotiable: Some libraries advertise suites in a ServerHello-adjacent field while refusing the handshake. Force the handshake before reporting it.
- A self-signed certificate on an internal tool: Not a vulnerability if the client validates against a pinned internal CA. The finding is only real when the fix is to click through a browser warning.
- Missing HSTS on a host that never serves cleartext: Low, and often zero if the host is behind an HSTS-preloaded parent domain. Report the preload status, not just the header.
- Scanner grade below A: A grade is a weighted opinion, not an impact statement. Translate every letter back into the specific handshake fact it came from.
TLS Review Checklist
Run this against one endpoint, then repeat per listener rather than per hostname:
- ☐ SSL 2.0/3.0 and TLS 1.0/1.1 refused with an explicit handshake attempt
- ☐ TLS 1.2 suites restricted to ECDHE with AEAD
- ☐ TLS 1.3 enabled where the client population allows it
- ☐ Downgrade protection confirmed: no fallback to a weaker suite for an old client
- ☐ Valid, matching every name in the SAN list, chaining to a public root
- ☐ SHA-256 or better, RSA-2048 minimum
- ☐ Renewal automation with alerting before expiry
- ☐ Certificate transparency log entries monitored for unexpected issuance
- ☐ HSTS present with a max-age long enough to matter, and preload if the domain qualifies
- ☐ Compression disabled
- ☐ Forward secrecy on every suite the endpoint offers
- ☐ Every redirect from HTTP lands on HTTPS before any authenticated content
Fixing It in the Right Order
The order matters because each step changes what the next one can break:
Why the legacy-version commands fail on a current machine
OpenSSL 3.x will not negotiate SSL 3.0 at all: support was removed from the default build in 1.1.0, and the
-ssl3 flag
exists mainly so scripts fail clearly instead of silently downgrading. RC4 is present but parked in the legacy
provider, which is not loaded unless you ask for it, and the default security level rejects weak signature
algorithms before the cipher list is even consulted.
The practical consequence is that a test which returns an error has tested nothing. Use a tool built for the
question — testssl.sh ships its own probing logic and will report an unsupported protocol as unsupported rather
than as a failed command — or run the legacy client inside a container that still has it. When you write the
finding, say how you proved it; a screenshot of
s_client
erroring out is evidence of a missing tool, not of a secure endpoint.
TLS Testing Practice
Targets where the protocol configuration is deliberately varied, so a result you get is a result you can check.
Related Cryptography Guides
Padding Oracle
The same primitive behind POODLE, and the reason CBC suites carry more risk than their key size suggests.
RSA Attacks
Bleichenbacher oracles, including the ROBOT family that still turns up in TLS implementations.
Key Management
Where the private key lives, who can read it, and why that usually matters more than the protocol version.
Cryptography Remediation
The fix catalogue for this whole class, with configuration snippets per platform.