Summary

  • TLS renegotiation rebuilt keys inside an already-encrypted connection but, before RFC 5746, never cryptographically bound the new handshake to the old one.
  • The 2009 splice attack let a single socket carry two authors; RFC 5746 fixed it by demanding proof from the previous Finished messages, and TLS 1.3 later removed renegotiation altogether.

An encrypted channel with two authors

The attacker never breaks the encryption. That is exactly what makes the TLS renegotiation flaw so unnerving: every byte on the wire was sealed, authenticated and delivered — and the server still ended up believing two different people were one.

Here is the trick, in the order it happens. The attacker opens a perfectly ordinary TLS connection to a server. Everything on it is encrypted. The attacker then writes a few bytes of application data — the opening of an HTTP request, say, or a command whose meaning will only be completed later. Then, instead of finishing the conversation alone, the attacker forwards a victim's fresh TLS handshake down that same protected pipe.

To the victim, nothing looks unusual: a first handshake with a real server. To the server, it is a renegotiation of the attacker's connection. When the new handshake completes, the attacker cannot read a single byte of what follows. Confidentiality is intact. Attribution is not. The server now holds one application stream containing the attacker's prefix and the victim's authenticated request, with no way to tell that two different people wrote it.

RFC 5746's sequence diagrams made the gap legible: transport continuity, encryption continuity and application-transcript continuity are three separate properties, and only two of them were ever guaranteed. A secure tunnel could carry a change of cryptographic identity without proving how the bytes before and after the change should be joined.

Why the second handshake had to carry the first one's fingerprints

Marsh Ray and Steve Dispensa spotted the weakness in 2009. The obvious repair — have the second handshake simply announce that it is a renegotiation — would have been worthless, because an attacker can copy an announcement. What the protocol needed was a memory.

RFC 5746 required both endpoints to retain connection-specific evidence from the immediately previous handshake: the client and server verify_data values carried in their Finished messages. The mechanism was the renegotiation_info extension, type 0xff01. On an initial handshake its binding field is empty, which lets peers establish that they understand secure renegotiation without pretending an earlier handshake exists. On a renegotiating ClientHello, the field carries the saved client verify_data. On the responding ServerHello, it carries the saved client and server values together. A missing or unequal value is not a warning to be logged after the fact; the handshake must be aborted.

That design turned the previous handshake into an authenticated input to the next one. The server could finally distinguish a genuine continuation from a victim's initial handshake spliced into somebody else's connection. The second handshake had to remember its predecessor because the surrounding socket was never evidence enough.

The compatibility tax: a cipher suite that was never a cipher suite

Repairing a protocol that is already running in the wild is its own discipline. The transition could not assume every old implementation handled ClientHello extensions correctly — some TLS 1.0-era software failed outright when it met an extension it did not recognise, specifications notwithstanding. RFC 5746 therefore invented TLS_EMPTY_RENEGOTIATION_INFO_SCSV, a signalling cipher-suite value that is not a cipher suite, cannot be negotiated, and exists purely to carry the semantics of an empty initial binding in a form older servers were more likely to tolerate.

Compatibility did not erase ambiguity. A server that failed to acknowledge the extension might be vulnerable, or it might safely reject all renegotiation while simply lacking the new signal. TLS alone could not let the client tell those two cases apart. The standards text consequently recorded an uncomfortable choice between maximum interoperability and a guarantee against the splice. The repair was cryptographic; deploying it was an exercise in deciding when absence of evidence should end a connection.

TLS 1.3 chose amputation

TLS 1.3 answered with a narrower state machine. RFC 8446 forbids renegotiation outright: a ClientHello arriving at the wrong moment terminates the connection. The functions that had been bundled into renegotiation were split apart — KeyUpdate and post-handshake authentication now exist as separate mechanisms with separate rules, and neither restores the old general-purpose ability to run another handshake in place.

Current guidance in RFC 9325 preserves the historical boundary. TLS 1.2 clients and servers must implement renegotiation_info, and a client must terminate if a TLS 1.2 server does not acknowledge it. For TLS 1.3, there is no renegotiation left to secure.

What the record actually settles

The lesson is not that every transition should be prohibited. It is that a transition which changes authentication or keys must define precisely which prior state it inherits — and carry cryptographic evidence for that inheritance.

The RFCs do not establish how often the 2009 technique was exploited in the wild, nor do they count today's remaining renegotiation deployments. They do establish the protocol failure, the repair and the later removal. That is enough to fix the enduring design rule in place: encryption protects bytes in a channel; it has never, by itself, proved that every phase of that channel has the same author.

Sources