Closed Bug 1638645 Opened 4 years ago Closed 4 years ago

OpenPGP: Missing MDC protection not discovered

Categories

(MailNews Core :: Security: OpenPGP, defect, P1)

Tracking

(thunderbird78 fixed)

RESOLVED FIXED
Thunderbird 79.0
Tracking Status
thunderbird78 --- fixed

People

(Reporter: patrick, Assigned: KaiE)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

If an encrypted message does not contain any MDC protection, then the message is decrypted and the result is displayed as "successfully decrypted".

However, a one of the Efail attacks is based upon modification of messages without MDC protection. The general consensus is that encrypted message MUST have an MDC protection, otherwise they should be treated as invalid.

Patrick, thanks for testing this scenario. How could we get to a test case that can be shared?

How about creating an encrypted message to one of the test keys from https://gitlab.com/openpgp-wg/openpgp-samples ?

Priority: -- → P1

I found that RNP cannot import the example keys as they are, but it simply doesn't seem to like multiple comment lines. After removing the second comment line, I was able to import the secret key.

Here are edited versions of the test keys from the above repository.

I have edited the user IDs, and added email addresses that I control. This makes it easier to use the keys. However, they still use the same key material, so we can easily share the produced test messages, and everyone can decrypt them.

If you are able to create test messages that demonstrate this bug, could you please send them to one of these keys and email address? E.g. alice-test at kuix dot de, or bob-test at kuix dot de. Thanks.

Attached file example.eml

Attached is an example message.

To create such a message yourself using gpg use the following command:

gpg -a --rfc2440 --disable-mdc -r recipient -e

Thanks Patrick, that's very helpful.

The API rnp_op_verify_t returns a "good" result after decryption.
I have raised the issue with the RNP developers at https://github.com/rnpgp/rnp/issues/1142

Blocks: 1642787

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/cdef6999ca32
OpenPGP: Missing MDC protection not discovered. r=PatrickBrunschwig DONTBUILD

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Comment on attachment 9159906 [details]
Bug 1638645 - OpenPGP: Missing MDC protection not discovered. r=PatrickBrunschwig

Important security correctness enhancement for OpenPGP

Attachment #9159906 - Flags: approval-comm-beta?

Comment on attachment 9159906 [details]
Bug 1638645 - OpenPGP: Missing MDC protection not discovered. r=PatrickBrunschwig

Approved for beta

Attachment #9159906 - Flags: approval-comm-beta? → approval-comm-beta+
Target Milestone: --- → Thunderbird 79.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: