Re:Geary: a beautiful modern open-source email client
by mike-cardwell on Monday March 25, 2013 @06:38PM
(#5440172)
In PGP and S/MIME, the ciphertext is signed. You don't encrypt a signed message, you sign an encrypted message.
You can't take a signed message that was encrypted with your public key, decrypt it, re-encrypt it with somebody elses public key, and expect it to still appear signed by the original sender when the new recipient decrypts it.
[edit] There are of course serious problems with the lack of header signing/encryption and replay attacks though I agree. Hence why I add a small note at the end of all of the pgp signed comments on my blog: "This signed text was written for https://grepular.com/ only"
Re:Geary: a beautiful modern open-source email client
by koenigdavidmj on Monday March 25, 2013 @06:40PM
(#5440186)
Don't such systems generally encrypt first and then sign the encrypted text, specifically to avoid this?
Your points about subject lines and other assorted headers are correct.
Re:Geary: a beautiful modern open-source email client
by betterunix on Tuesday March 26, 2013 @11:12AM
(#5443802)
The link I provided discusses this as well; not only are there other attacks, but those other attacks are potentially more severe. A man-in-the-middle attacker can claim credit for a message by substituting their own signature for the sender's. A naive encrypt-then-sign system will also lack non-repudiation in some cases (e.g. when using RSA signatures and encryption), and will only provide non-repudiation on the ciphertext itself (not the plaintext; this may or may not be what you want).
Re:Geary: a beautiful modern open-source email client
by miloshadzic on Monday March 25, 2013 @06:14PM
(#5440059)
You're right of course but I think a straightforward way to sign, encrypt and decrypt your email would be a big step forward.
Re:Geary: a beautiful modern open-source email client
by dmix on Monday March 25, 2013 @06:24PM
(#5440103)
Plus (nearly) all security has trade-offs. The trade offs dont necessarily trump the added benefits of the security.
Re:Geary: a beautiful modern open-source email client
by illicium on Monday March 25, 2013 @06:36PM
(#5440163)
Sounds like a simple solution would to duplicate the headers in the body and encrypt them along with the message. That way, even if you resend that email, the encrypted To: field would make it obvious that it was meant only for you.
http://world.std.com/~dtd/sign_encrypt/sign_encrypt7.html
PGP and S/MIME do not encrypt the subject line of emails; this is an easy way to leak information. You also do not get encryption of References/In-Reply-To headers, and various other headers that can leak information.