4 ms·
This claim about Efail is essentially false. Efail was possible because PGP uses an archaic message authentication scheme, one designed more or less before the
by tptacek 7y ago
This claim about Efail is essentially false. Efail was possible because PGP uses an archaic message authentication scheme, one designed more or less before the dawn of authenticated encryption, which can be stripped off messages, and which is in a real sense an "add-on" as far as the core of PGP is concerned. PGP will release unauthenticated plaintext to its callers and count on them to check out-of-band errors to see that the plaintext isn't safe; mailers failed to reliably perform this check.
There is a technical sense in which mailers are responsible for mitigating this vulnerability, but it's a vulnerability that can't exist in the first place in a well-designed cryptosystem.
In the context of this post, this is basically a nit; the point the post makes is that even if you replace PGP with something like Age, encrypted email is still too risky to use, and is intrinsically inferior to modern secure messengers. (Encrypted email is not a use case Age is pursuing, and I do like Age).
- lvh 7y agoMy only annotation here is that I think MDC was added in the early 2000s, after HMAC. My understanding is it's not so much that we hadn't figured out real authenticators, it's that the people designing PGP didn't believe in them or believed them unnecessary for some reason. You can see the echoes of this silliness in the description of MDCs in the RFC today, because of course RFCs are for pontification and not for spec description. (Grep RFC4880 for "NON-NORMATIVE EXPLANATION" if you're interested.)
- ubercow13 7y ago>PGP will release unauthenticated plaintext to its callers and count on them to check out-of-band errors to see that the plaintext isn't safe Is that problem the same as this one? https://github.com/FiloSottile/age/issues/59 https://github.com/FiloSottile/age/issues/59
- tptacek 7y agoIt is not, no. The problem we're talking about allows you to exfiltrate plaintext from messages you don't have the keys for, which you can do because PGP makes the ciphertext of messages malleable. This Age discussion pertains to entire messages that attackers construct from scratch under their own keys.
- upofadown 7y agoClaiming that EFAIL somehow showed a weakness on the part of PGP and S/MIME is like saying that a caretaker that lets burglars into their tenant's apartment is an example of bad lock design. Sure the lock maker could of removed the ability to use a master key but that is simply not a reasonable thing to suggest.
- tptacek 7y agoI can't follow this analogy. Claiming that Efail showed weakness on the part of PGP is like claiming that cryptosystems should be designed not to release unauthenticated plaintext to callers, and that the "authenticated/unauthenticated" status of a message shouldn't be communicated out of band. You know, like how all modern AEAD cryptography works.