Total incorrect statement in OpenPGP icon for SHA1 PGP signed mails.
Categories
(Thunderbird :: Security, defect)
Tracking
(thunderbird_esr115 affected)
Tracking | Status | |
---|---|---|
thunderbird_esr115 | --- | affected |
People
(Reporter: super.dukefb1, Assigned: KaiE)
References
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
Steps to reproduce:
Received and opened the sha1 openpgp signed mail.
Click the OpenPGP icon.
Actual results:
The statement in the OpenPGP icon claimed that this mail has been corrupted or has been modified by someone else. But this statement is NOT CORRECT.
Expected results:
Because this signed sha1 OpenPGP mail was verified good in Enigmail and Kleopatra, the statement what Thunderbird made is total incorrect.
Thunderbird is better to still verify the mail and report good or bad, and also warn the user that sha1 is weak and not supported and might be risky...
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
When working on bug 1532292, I was overly strict.
I had disabled the processing of messages with an SHA-1 S/MIME signature in two places:
(1) very early based on the micalg header
(2) later on after the signature check was done
The change (1) causes this general error message about the signature being invalid.
The change at (1) was unnecessary. The change (2) would have been sufficient.
If the code is allowed to run past (1) and arrive at (2), then we display the slightly better error message
"the message was signed using an encryption strength that this version of your software does not support"
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
Note, an email that can be used to test can be found in bug 1856961 (smime.eml).
Also note that it isn't sufficient to use file/open with such an .eml file, we have a bug that causes S/MIME signatures in separate message windows to be not shown. (We have a separate bug report for that on file.)
So, in order to reproduce, download that message file, use file/open to view it, then use message/copy-to to copy the message to one of your mail folders, and then go to that folder and open the message in the folder. Then the signature status is shown.
Assignee | ||
Updated•2 years ago
|
Comment 4•2 years ago
|
||
Hmm, this bug was really reported about OpenPGP. The fix is for S/MIME.
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/d1f36652a62e
Don't abort processing of S/MIME signatures very early to allow better error messages. r=mkmelin
Comment 6•2 years ago
|
||
This is failing a test: https://treeherder.mozilla.org/jobs?repo=comm-central&selectedTaskRun=IgtL09kqSCWxrdBXUxbUug.0
Locally just a single run seems to succeed, but
./mach test --verify comm/mailnews/mime/test/unit/test_smime_decrypt.js
fails within 10s for me. Succeeds with the patch backed out.
Updated•2 years ago
|
Updated•1 year ago
|
Description
•