NNTP STARTTLS kept the socket and threw away the conversation. When a news server answered 382, the bytes that followed became a TLS handshake — but the application protocol was rolled back to almost the instant after the greeting. The selected newsgroup vanished. The article pointer vanished. The capability list the client had just read became evidence gathered on the wrong side of a trust boundary. RFC 4642 turned that amnesia into a security rule, and it remains one of the cleanest lessons in protocol design: encryption does not travel backward in time.

NNTP STARTTLS in brief

  • RFC 4642 preserved the underlying TCP connection while resetting the application protocol to almost the state immediately after the greeting.
  • Both sides had to discard sensitive knowledge learned before TLS. The client queried capabilities again; the server forgot state such as the selected group and current article number.
  • TLS protected one link. It did not by itself authenticate the NNTP user, establish an article's origin, or make a multihop Netnews path private.

One socket, two conversations

Most security diagrams show a door closing around a conversation already in progress. NNTP's rule was stricter and considerably stranger. After the server answered 382, TLS began at the very next octet. If the handshake succeeded, the TCP connection carried on as though nothing had happened — and the application conversation was rolled back to the moment just after the greeting. No second greeting. No ceremony. The client simply had to behave as if much of what it had just learned no longer counted.

That is the whole trick of RFC 4642, and it is easy to miss because the socket never blinks. Encryption does not travel backward in time. A capability list read in cleartext could have been edited by anyone sitting on the path. A newsgroup selected before the handshake was selected in an unauthenticated phase. Let either fact govern the protected phase and TLS becomes a laundering service for insecure state.

How a 1986 protocol learned to lock its own door

RFC 977, published in February 1986, described the original NNTP exchange with the confidence of a protocol that assumed everyone on the wire was a colleague: connect, receive a greeting, send commands, read three-digit replies. It made remote news transfer interactive. It contained no in-session TLS transition, because in 1986 there was nothing to transition to.

By 2006, mailing a password across an unencrypted NNTP session had stopped feeling professional. Some implementations had solved the problem by dedicating port 563 to a TLS-first variant. RFC 4642 disliked the port multiplication and standardized STARTTLS inside the ordinary session instead: the server advertises the capability, the client asks for the transition, and a successful 382 response means the following bytes are handshake data rather than news commands.

The command could never sit quietly in a pipeline. It had to terminate it. Ambiguity at that boundary is fatal — bytes parsed as a news command on one side and as handshake data on the other leave the session in a state that is neither. If negotiation failed, both parties were advised to close and start over.

Forget the group. Forget the article.

NNTP is a stateful protocol wearing the clothes of a simple one. A reader selects a newsgroup, moves a current-article pointer, and can request a capability list describing what the server offers at that instant. RFC 3977 is explicit that the list can change mid-session as commands or external events change state.

RFC 4642 turned that observation into a security rule with teeth. After TLS, the server must discard what it learned from the client outside the handshake — including the current group and article number. The client should discard, and must not rely on, what it learned from the server before the handshake — including the capability list. The selected group was not merely stale state. It was an assertion made on the wrong side of the trust boundary.

One exception sharpens the rule rather than blurring it. If MODE READER had already changed the server's operating role, the handshake did not undo that. Reset meant returning to a defined application state, not pretending history never happened. It meant refusing to inherit the specific knowledge TLS had not vouched for.

Capabilities are an observation, not an inventory

After the handshake, the client was expected to ask again. The answer could differ. STARTTLS itself disappeared, because TLS was now running. MODE-READER was no longer advertised. Authentication mechanisms that depend on a client certificate could appear for the first time.

So capability discovery is an observation, not a static inventory. The same server on the same connection can honestly present two different lists minutes apart. A cached list is especially dangerous when it is used to decide whether security exists at all, because an attacker on the path can simply delete STARTTLS from the cleartext reply.

The protocol therefore gave memory two jobs. Inside a session, pre-TLS knowledge had to be forgotten. Across sessions, a client could remember that a server used to offer TLS and raise the alarm when the offer vanished. One memory would contaminate the protected phase. The other is how you catch a downgrade.

A certificate is not a login

RFC 4642 draws another boundary that modern interfaces blur constantly. Even when a client presents credentials during the handshake, the NNTP server stays in the non-authenticated application state. A certificate may identify the connection; it does not complete NNTP authorization.

RFC 4643 shows the sequence. After TLS, the client requests a fresh capability list. That list may now offer additional SASL mechanisms. The client then performs AUTHINFO SASL, and the EXTERNAL mechanism can use an identity derived from the TLS certificate. Authentication becomes a deliberate application event with its own success response, not a side effect quietly inferred from the fact that a handshake worked.

The separation limits authority. TLS can protect bytes and establish a peer credential. NNTP still decides whether that credential buys the service being asked for. A server that implements STARTTLS is under no obligation to implement AUTHINFO or EXTERNAL at all.

One protected hop is not a private network

The most consequential limit hides in the security considerations. NNTP is not end-to-end. An article may cross several servers before anyone reads it. TLS between one client and one server protects that link and says nothing about the relay before it or the one after.

Nor does authenticating a forwarding client prove how that client obtained the article. Transport identity, article authorship and relay provenance are three different kinds of evidence, and a secure hop speaks only to the first. It can stop eavesdropping and tampering on that hop while leaving the rest of the distribution chain as heterogeneous as it ever was.

The IANA NNTP Parameters registry lists STARTTLS as the standardized transport-security capability. That entry buys interoperability. It does not buy deployment, and it certainly does not buy end-to-end assurance.

The lesson: security starts by refusing inherited certainty

NNTP STARTTLS is a small, unfashionable protocol carrying a lesson that has aged extremely well. A secure channel is not secure because the later bytes are encrypted. The assumptions driving those bytes have to come from the protected side of the boundary too.

The protocol kept the socket and abandoned the conversation. It rebuilt capabilities, reselected operational state, and handed authentication to a separate exchange with its own verdict. It refused to inflate one encrypted hop into a claim about the whole Netnews chain. Its most important security action was never concealment. It was the decision about what the protected phase was allowed to remember — and the nerve to make it forget everything else.

Sources