How do we disable LOGIN-REFERRALS?
On 12/03/2015 01:46 PM, sb wrote:
If the connection is SSL/TLS encrypted, the attacker can't add/modify login referrals. If it's not encrypted, the attacker could just as well insert the LOGIN-REFERRALS to the CAPABILITY reply if it didn't exist there.
As long as Dovecot doesn't return any login-referrals (which it doesn't by default), I don't see why having LOGIN-REFERRALS in the CAPABILITY reply would matter.
Client doesn't send anything to Dovecot regarding the use of LOGIN-REFERRALS. It simply does a regular authentication and if Dovecot is configured to send a login-referral then Dovecot responds so to the LOGIN or AUTHENTICATE command. The client can't request a referral in any way.
Dovecot never sends a login referral unless you have explicitly configured passdb to send it. There are no commands, requests or anything related to LOGIN-REFERRALS that can be sent by IMAP client to Dovecot. If you haven't configured a passdb to return a host field, there is zero code that can ever be executed that is in any way related to LOGIN-REFERRALS.
Please amend the first paragraphs of PasswordDatabase.ExtraFields.Host.txt as follows.
---cut here--- Login referrals are a server-side IMAP4 extension specified by RFC 2221. Their purpose is to redirect clients to an different IMAP4 server in case of hardware failures or organizational changes. No client action is needed to invoke the LOGIN-REFERRALS capability: the redirection is triggered by the server and occurs transparently.
A security consideration is in order. As also stated by RFC 2221, a man in the middle attack may use a rogue 'password catching' server to collect login data and redirect your clients to their own rogue IMAP4 server. Login referrals are not supported by many clients, so you probably don't want to use them anyway.
Dovecot does not use login referrals by default.
[It would be useful at this point if you could add one sentence explaining the purpose of the LOGIN-REFERRALS in the default capabilities banner.]
If you need them, please follow the instructions below. ---cut here---
Thank you.
participants (2)
-
sb
-
Timo Sirainen