Skip to main content
deleted 42 characters in body
Source Link
Steffen Ullrich
  • 207.6k
  • 30
  • 416
  • 481

The supported authentication methods depend on the specific IMAP server. Some supported methods like XOAUTH2 which delegate the authentication to some external server via OAuth2. There are also methods like CRAM-MD5 which don't transfer the password in plain but still need. While with CRAM-MD5 it might be possible to store the password to be stored in plainhashed (or equivalentbut not salted) locally.

In any case: it does not matterhelp much if a locally stored password or a locally stored hash are used to authenticate against the serverattacker can compromise the local password storage: if

If an attacker steals these credentials they can identify themselves as valid user to the server no matter if the hash or password is used. The difference is thus more relevant for transport protection but there it is better to use TLS anyway. And it is relevant to protect against password reuse - so it is better to have a unique password for the IMAP access.

The supported authentication methods depend on the specific IMAP server. Some supported methods like XOAUTH2 which delegate the authentication to some external server via OAuth2. There are also methods like CRAM-MD5 which don't transfer the password in plain but still need the password to be stored in plain (or equivalent) locally.

In any case: it does not matter much if a locally stored password or a locally stored hash are used to authenticate against the server: if an attacker steals these credentials they can identify themselves as valid user to the server no matter if the hash or password is used. The difference is thus more relevant for transport protection but there it is better to use TLS anyway. And it is relevant to protect against password reuse - so it is better to have a unique password for the IMAP access.

The supported authentication methods depend on the specific IMAP server. Some supported methods like XOAUTH2 which delegate the authentication to some external server via OAuth2. There are also methods like CRAM-MD5 which don't transfer the password in plain. While with CRAM-MD5 it might be possible to store the password hashed (but not salted) it does not help much if the attacker can compromise the local password storage:

If an attacker steals these credentials they can identify themselves as valid user to the server no matter if the hash or password is used. The difference is thus more relevant for transport protection but there it is better to use TLS anyway. And it is relevant to protect against password reuse - so it is better to have a unique password for the IMAP access.

Source Link
Steffen Ullrich
  • 207.6k
  • 30
  • 416
  • 481

The supported authentication methods depend on the specific IMAP server. Some supported methods like XOAUTH2 which delegate the authentication to some external server via OAuth2. There are also methods like CRAM-MD5 which don't transfer the password in plain but still need the password to be stored in plain (or equivalent) locally.

In any case: it does not matter much if a locally stored password or a locally stored hash are used to authenticate against the server: if an attacker steals these credentials they can identify themselves as valid user to the server no matter if the hash or password is used. The difference is thus more relevant for transport protection but there it is better to use TLS anyway. And it is relevant to protect against password reuse - so it is better to have a unique password for the IMAP access.