I am using Thunderbird 52.2.1 (64-bit) and Enigmail 1.9.7.
I have a problem with emails sent from the employees of one organization: Enigmail shows a warning everytime I open / decrypt an email sent by one of them. Encryption/decryption is working fine with other senders/recipients.
The warning is shown right above the email message in TB: "Error - secret key needed for decryption; for more information click on details". Funny fact: The message was indeed successfully decrypted. Despite that, Enigmail complains about a missing secret key.
I did a lot of searching but found nothing helpful. Things that I suspect of being the cause:
1. The message is a mime/multipart message. First part is the encrypted plaintext message. Second part consists of one encrypted attachment and one attachment without encryption (the public key of the sender).
2. The message was encrypted using multiple keys - my public key and the one of the sender (PGP/MIME)
I also saved the email as well as the encrypted attachment as files and decrypted them via shell. An error occured that was not shown in the Enigmail log so far: gpg: handle plaintext failed: unexpected error. I had to use --allow-multiple-messages to get rid of this error. Then, the email was decrypted (attachment inclusive) without an error. Unfortunately, I had no luck to get rid of the error message in Enigmail by adding the param to the additional GnuPG params field.
Does anybody know what is possibly wrong with this emails - or with my configuration?
Below are some supplementary information.
Thank you very much in advance!
Sebastian
Software versions:
- Thunderbird 52.2.1 (64-bit)
- Enigmail 1.9.7
- gpg (GnuPG) 2.1.11
- libgcrypt 1.6.5
- Linux Mint 18.1 Serena with 4.10 kernel
The option --(no-)allow-multiple-messages was introduced in response to a situation by which a sender could trick the recipient by combining signed and unsigned messaage parts in a single OpenPGP message [1]. I'm therefore not surprised to see that Enigmail responds with an error, even if the error message seems strange.
GnuPG indeed issued "DECRYPTION_FAILED" which means for Enigmail that the message could not be decrypted. Earlier versions of GnuPG used a different error message, which allowed Enigmail to display a more accurate message to the user.
Nevertheless, why do I still receive this "[GNUPG:] DECRYPTION_FAILED" errors although I told gpg2 to allow multiple messages? AND that despite gpg2 being able to successfully decrypt both encrypted parts!
Let's start with the default case:
When I ommit "--allow-multiple-messages" gpg2 throws some warnings like "gpg: handle plaintext failed: Unerwarteter Fehler" and "gpg: WARNUNG: Mehr als ein Klartext erkannt" (i.e. "gpg: WARNING: more than one plaintext detected" in english). In this case the encrypted second multiplart (the attachment) won't get decrypted.
Command (got it from the Enigmail console, edited it slightly by adding -v and executed it via bash):
*<first part of the message that has been successfully decrypted - ommitted here>*
[GNUPG:] NEWSIG
gpg: Signatur vom Mo 24 Jul 2017 10:09:12 CEST mittels RSA-Schlüssel ID <sender's ID>
[GNUPG:] SIG_ID HcRAPqlzIgJRFSYBSJZVM5cu5Go 2017-07-24 1500883752
gpg: verwende Vertrauensmodell PGP
[GNUPG:] GOODSIG <sender's ID> Joe Example <joe.example@organization.de>
gpg: Korrekte Signatur von "Joe Example <joe.example@organization.de>" [vollständig]
[GNUPG:] VALIDSIG <sender's fingerprint> 2017-07-24 1500883752 0 4 0 1 8 00 <sender's fingerprint>
[GNUPG:] TRUST_FULLY
gpg: Binäre Signatur, Hashmethode SHA256, Schlüsselverfahren rsa2048
gpg: ASCII-Hülle: Version: OpenPGP totemomail
gpg: ASCII-Hülle: Comment: totemomail OpenPGP - http://www.totemo.com
gpg: ASCII-Hülle: Charset: utf-8
gpg: Öffentlicher Schlüssel ist <my public ID>
[GNUPG:] ENC_TO <my key> 1 0
gpg: der Unterschlüssel <my key> wird anstelle des Hauptschlüssels <my key> verwendet
gpg: Öffentlicher Schlüssel ist <sender's ID>
[GNUPG:] ENC_TO <sender's...> 1 0
gpg: verschlüsselt mit 2048-Bit RSA Schlüssel, ID <sender's ID>, erzeugt 2015-01-12
"Joe Example <joe.example@organization.de>"
[GNUPG:] NO_SECKEY <sender's key>
gpg: verschlüsselt mit 4096-Bit RSA Schlüssel, ID <my ID>, erzeugt 2017-06-27
"Sebastian Hucke <my@mail.de>"
[GNUPG:] BEGIN_DECRYPTION
gpg: AES256 verschlüsselte Daten
[GNUPG:] DECRYPTION_INFO 0 9
gpg: Ursprünglicher Dateiname=''
gpg: WARNUNG: Mehr als ein Klartext erkannt
[GNUPG:] ERROR proc_pkt.plaintext 89_BAD_DATA
gpg: handle plaintext failed: Unerwarteter Fehler
[GNUPG:] NEWSIG
gpg: Signatur vom Mo 24 Jul 2017 10:09:12 CEST mittels RSA-Schlüssel ID <sender's ID>
[GNUPG:] BADSIG <sender's> Joe Example <joe.example@organization.de>
gpg: FALSCHE Signatur von "Joe Example <joe.example@organization.de>" [vollständig]
gpg: Binäre Signatur, Hashmethode SHA256, Schlüsselverfahren rsa2048
When I explicitly allow multiple messages with "--alow-multiple-messages" the above errors vanish but I get the DECRYPTION_FAILED error. Both encrypted parts get successfully decrypted though.
Hi all,
I am using Thunderbird 52.2.1 (64-bit) and Enigmail 1.9.7.
I have a problem with emails sent from the employees of one organization: Enigmail shows a warning everytime I open / decrypt an email sent by one of them. Encryption/decryption is working fine with other senders/recipients.
The warning is shown right above the email message in TB: "Error - secret key needed for decryption; for more information click on details". Funny fact: The message was indeed successfully decrypted. Despite that, Enigmail complains about a missing secret key.
I did a lot of searching but found nothing helpful. Things that I suspect of being the cause:
1. The message is a mime/multipart message. First part is the encrypted plaintext message. Second part consists of one encrypted attachment and one attachment without encryption (the public key of the sender).
2. The message was encrypted using multiple keys - my public key and the one of the sender (PGP/MIME)
I also saved the email as well as the encrypted attachment as files and decrypted them via shell. An error occured that was not shown in the Enigmail log so far:
gpg: handle plaintext failed: unexpected error
. I had to use--allow-multiple-messages
to get rid of this error. Then, the email was decrypted (attachment inclusive) without an error. Unfortunately, I had no luck to get rid of the error message in Enigmail by adding the param to the additional GnuPG params field.Does anybody know what is possibly wrong with this emails - or with my configuration?
Below are some supplementary information.
Thank you very much in advance!
Sebastian
Software versions:
- Thunderbird 52.2.1 (64-bit)
- Enigmail 1.9.7
- gpg (GnuPG) 2.1.11
- libgcrypt 1.6.5
- Linux Mint 18.1 Serena with 4.10 kernel
Debug output of Enigmail log:
An excerpt from the email's sources:
Last edit: Sebastian Hucke 2017-07-31
The option --(no-)allow-multiple-messages was introduced in response to a situation by which a sender could trick the recipient by combining signed and unsigned messaage parts in a single OpenPGP message [1]. I'm therefore not surprised to see that Enigmail responds with an error, even if the error message seems strange.
GnuPG indeed issued "DECRYPTION_FAILED" which means for Enigmail that the message could not be decrypted. Earlier versions of GnuPG used a different error message, which allowed Enigmail to display a more accurate message to the user.
[1] https://www.coresecurity.com/content/gnupg-and-gnupg-clients-unsigned-data-injection-vulnerability
OK, that does make sense to me.
Nevertheless, why do I still receive this "[GNUPG:] DECRYPTION_FAILED" errors although I told gpg2 to allow multiple messages? AND that despite gpg2 being able to successfully decrypt both encrypted parts!
Let's start with the default case:
When I ommit "--allow-multiple-messages" gpg2 throws some warnings like "gpg: handle plaintext failed: Unerwarteter Fehler" and "gpg: WARNUNG: Mehr als ein Klartext erkannt" (i.e. "gpg: WARNING: more than one plaintext detected" in english). In this case the encrypted second multiplart (the attachment) won't get decrypted.
Command (got it from the Enigmail console, edited it slightly by adding -v and executed it via bash):
Part of the outpt:
When I explicitly allow multiple messages with "--alow-multiple-messages" the above errors vanish but I get the DECRYPTION_FAILED error. Both encrypted parts get successfully decrypted though.
Command:
Output:
(Hopefully, it is OK that I pasted the output in german language.)
Am I missing or misunderstanding something?