]> granicus.if.org Git - neomutt/commit
Add $include_encrypted config to prevent reply-decryption attack
authorKevin McCarthy <kevin@8t8.us>
Fri, 22 Feb 2019 21:50:52 +0000 (13:50 -0800)
committerRichard Russon <rich@flatcap.org>
Tue, 9 Apr 2019 11:54:27 +0000 (12:54 +0100)
commit4b2e479cb3db0cbab58ee0aa726bf4a642231c1b
treef7dcd23417b6dc09e9103d416cd27defd7a09107
parent7a7c4b49d33afad37ed3634f5167b8af60716423
Add $include_encrypted config to prevent reply-decryption attack

@jensvoid, in cooperation with Ruhr-Uni Bochum and FH Münster,
Germany, reported a possible "Oracle decryption" attack on various
mail clients.  An attacker could include previously encrypted contents
they obtained access to, and include it in a message.  Replying
without trimming would include the decrypted contents.

This attack relies on several "ifs", and is more dangerous for clients
that compose HTML mail.  However, it is still an issue that an
unwary/busy Mutt user could fall for.

Add a new config $include_encrytped, defaulting off, to reduce the
possibility of the user being unaware of previously encrypted parts in
the reply.  Only the main initial encrypted part will be included in
the reply.

Co-authored-by: Richard Russon <rich@flatcap.org>
handler.c
handler.h
init.h