Security downgrade with IMAP STARTTLS leads to information leakage
mozilla.org
mozilla.org
Imho STARTTLS needs to die. Maybe thats impossible for SMTP, but for everything else we can and should get rid of it!
My self hosted mail server only runs {smtp,imap}s, due to encryption being required from the get-go. Any other way seems foolish.
Oh, and the smtp submission port 587 of course still uses starttls, which, together with mandatory authentication on that port, also makes for wonderful misconfiguration opportunities on the server. Of course in addition to clients stupidly sending auth over plaintext on 587.
Companies very often have open SMTP relays, actively used by these. It's a plague to remove SMTP because how can you remove open SMTP when these things don't support TLS nor authentication?
You still see people and software libraries preferring LDAP+SSL on the dedicated SSL port 636 even though the LDAPS+TLS is suppose to be the "modern" method and apart of the LDAP spec.
We complain about these protocols that are too widespread to ever be retired but the reality is that TLS and http are managing the pace, ftp, pop and imap are almost gone, and smtp is probably the last of the 1990s protocols that is frozen in time while being a backbone of communications (and attack vectors) on the internet.
I still like SMTP. Just last year I was able to find the owner of a random smtp box that nobody knew where it was or who it belonged to, by telnet-ing to port 25 and typing out an e-mail to 'root'. Got a response from an admin an hour later. You gotta respect a protocol that you can use directly with nothing but a network socket and a terminal, using the same protocol syntax you learned two decades before.
Nobody involved at $bank even knew of the existence of this router, and they spent several weeks not believing they even owned that model of Cisco gear or that they had any Cisco gear that wasn't fully updated.
It was "fun times" debugging that and documenting/proving exactly what was breaking with no more access than sftp to a web server running non root privileged PHP.
(We may have gone fairly dark-grey hat and broken quite a few internal rules to achieve that... Then had to "parallel construct" our investigation (before I even knew that term) to explain to their tech people haw we'd identified the root cause.)
Can you say anymore? I'm curious what you came up with.
For the benefit of others (from Wikipedia)
> Parallel construction is a law enforcement process of building a parallel, or separate, evidentiary basis for a criminal investigation in order to conceal how an investigation actually began.
Or were they actually using the IOS Firewall on a router instead of a firewall?
PIX and ASA appliances used to ship with "ESMTP inspection" enabled by default -- which would strip out the "STARTTLS" advertisement (replacing it with "X"s) from a server's response.
So STARTTLS only matters for protocols that already existed, like SMTP and IMAP, and as a result your advice isn't useful without a time machine.
I'd be impressed if as much as 50% of the world's IMAP clients would actually prevent a trivial MITM attack today regardless of this bug, because usually it's left to the user and we know users just want to see the funny cat pictures.
Saying that, someone with MITM capability could just modify the response and advertise auth pre-tls, so it probably wouldn't help.
Based on my experiences with Dovecot, I believe it would,
> Saying that, someone with MITM capability could just modify the response and advertise auth pre-tls, so it probably wouldn't help.
Well, hopefully your client isn't braindead and will negotiate an encrypted session first, before sending credentials unencrypted -- especially if you've configured it to use STARTTLS.