← Back to section · Digital Security
Session Resumption and 0-RTT: How Much Security the Saved Round Trip Costs
Session tickets let returning clients skip the handshake, and 0-RTT can even carry data in the first packet. But early data is replayable by construction — this article works out the bill, and how to pay it down.
Resumption: A Fast Lane for Returning Clients
Even a fast full handshake costs a round trip plus a round of asymmetric operations. For clients that connect to the same service repeatedly — a browser refreshing a page, an app reconnecting, high-frequency calls between microservices — running the full ceremony every time is waste. TLS 1.3’s approach: after the first full handshake completes, the server sends the client one or more “tickets” via NewSessionTicket messages. Each ticket corresponds to a pre-shared key (PSK) derived from the resumption master secret of that handshake, and carries a lifetime and a set of parameters.
On the next connection, the client includes the ticket identity and a PSK binder in its ClientHello (a MAC over the handshake transcript computed with the PSK, proving it truly holds the key). The server recognizes the ticket, verifies the binder, and skips certificate and signature verification, deriving session keys directly from the PSK — usually mixed with a fresh (EC)DHE share. The handshake is still one round trip, but the cost of transmitting and verifying a certificate chain disappears; in a pure-PSK resumption mode even the asymmetric operations are saved, though the standard and mainstream implementations recommend including a fresh DHE share in resumption to preserve forward secrecy.
0-RTT: Data in the Very First Packet
Resumption can be pushed one notch further. Since the client already holds a PSK, it need not wait for the server’s reply: it can encrypt the first batch of application data with an early traffic key derived from the PSK and send it along with the ClientHello — this is 0-RTT early data. For latency-sensitive scenarios (a page opening on a mobile device), what is saved is a full round trip of time-to-first-byte.
There is no free round trip. 0-RTT’s security properties come with two congenital discounts, which RFC 8446 states plainly.
First, no forward secrecy. Early data keys derive only from the PSK, with no fresh ephemeral key exchange mixed in. If a PSK ever leaks (say the server’s ticket key is stolen), all early data ever sent under it can be decrypted — a guarantee categorically weaker than what ephemeral DHE gives the full handshake.
Second, no replay protection. This is the more serious one. Early data is a blob of ciphertext that can be copied verbatim: an attacker who records the client’s first flight on the wire and resends it to the server later, byte for byte, is cryptographically indistinguishable from “the client genuinely sent it again.” The TLS protocol itself has no answer.
What Replay Can Actually Break
The harm of replay depends entirely on what the early data carries. If it holds an idempotent read (GET a page, query a status), replaying it a hundred times merely reads a hundred times, with no side effects. If it carries an operation with side effects — placing an order, transferring money, posting, changing a setting — a replay is a genuine duplicate execution. The attacker needs neither decryption nor understanding; copy and paste suffices.
This is exactly the discipline RFCs and mainstream implementations repeat: 0-RTT may only carry idempotent requests. In HTTP semantics, safe methods such as GET and HEAD are idempotent by design and are the qualified passengers of early data; side-effecting methods such as POST are barred by default. The trouble is that many real-world “GETs” are not truly side-effect-free (tracking beacons, counters, state-changing pseudo-REST interfaces), so leaving the judgment entirely to the protocol layer is not enough.
Tickets Themselves Are an Asset
Before discussing 0-RTT further, one more entry belongs in the ledger: the security of the tickets themselves. Tickets come in two implementation forms. One is the stateless ticket: the server encrypts the state needed for resumption under its own ticket encryption key and hands it to the client for safekeeping, storing nothing locally. The other keeps session state on the server, with the ticket carrying only an index. The stateless form saves storage but hands its fate to the ticket encryption key: if that key leaks, an attacker can forge arbitrary tickets and decrypt every resumption connection it protects, so it must be rotated frequently (mainstream server software rotates it on a schedule by default). RFC 8446 caps ticket lifetime at no more than 7 days, and clients must discard tickets after expiry. A common deployment oversight: if servers in a cluster do not synchronize their ticket keys and rotation cadence, a client presenting a ticket issued by machine A to machine B fails resumption and silently falls back to a full handshake — no functional error, but performance quietly discounted; it is the easiest configuration item to overlook.
Four Remedies on the Server Side
Given 0-RTT is enabled, the server’s job is to shrink the replay window as far as it will go.
First, single-use tickets: a ticket is void once used, and a second appearance of the same ticket is rejected outright or downgraded to an ordinary 1-RTT handshake. Second, replay caches and time windows: the server records fingerprints of recently seen early data (or ticket usage records) and rejects repeats within a short window of the ticket’s validity — at the cost of sharing that state across cluster nodes, which in distributed deployments can rarely be made airtight; it typically stops large-scale replays mounted after some delay, not an instant replay riding on the original request’s heels. Third, limit the volume and use of early data: the server declares through ticket parameters how much early data it will accept, and ignores anything beyond it. Fourth, business-level idempotency keys: the truly reliable line of defense is at the application layer — requests carry a unique idempotency identifier and the server deduplicates on it, which is also how payments and similar industries handle every kind of retry and replay.
Stacked together, these four remedies can press the risk down to an acceptable level, but none provides a cryptographic guarantee of zero replay. That is why many security-sensitive services simply leave 0-RTT off: one round trip of latency buys a clean security model, and that trade is not a bad one.
Summary
Session resumption is one of the best-value features in TLS 1.3: tickets plus a PSK spare returning clients the certificate chain and the heavy operations, and with a fresh DHE share mixed in, forward secrecy is undiscounted. 0-RTT, by contrast, is a bill to be settled carefully — one round trip saved, at the price of early data with no forward secrecy and open replay. The rule is a single sentence: only the idempotent may board, the defenses belong at the application layer, and if you cannot do both, turn it off. Use resumption where it belongs and keep 0-RTT behind the door it belongs behind, and the feature is opened the right way.
Tags: Session Resumption0-RTTReplay Attacks