News for hackers. Stuff that matters.
Re:SMTP protocol basics from scratch in Go: receiving email ... by sethammons on Sunday April 10, 2022 @08:38AM (#30976467)
The initial call to starttls is already insecure. The server can say what it wants. We trust that it behaves.
Re:SMTP protocol basics from scratch in Go: receiving email ... by 0x0 on Sunday April 10, 2022 @11:11AM (#30977697)
I wouldn't consider the initial call to starttls to be insecure. It is just a matter of a few static bytes containing an SMTP HELO and the ascii bytes "STARTTLS". This can be used to establish a secure TLS connection without compromising any private information. It is only insecure if the client decides to proceed with the rest of the SMTP transaction if the server (or middlebox) nak's the STARTTLS. Which is no different from a middlebox presenting a self-signed TLS certificate. A few extra plaintext bytes at the start of the TCP connection containing the string "STARTTLS" doesn't change anything compared to a plain TLS socket. It is always up to the client to decide if it wants to proceed in the face of bad or nonexisting TLS.