For emails with two nested S/MIME signatures the inner signed data isn't shown (e.g. PEC email).
Categories
(Thunderbird :: Message Reader UI, defect)
Tracking
(thunderbird_esr102+ affected, thunderbird110 affected)
People
(Reporter: massimo.marin, Assigned: KaiE)
References
(Regression)
Details
(Keywords: regression, testcase)
Attachments
(10 files)
1.17 MB,
message/rfc822
|
Details | |
194.74 KB,
image/png
|
Details | |
50.01 KB,
image/png
|
Details | |
152.14 KB,
image/png
|
Details | |
145.79 KB,
message/rfc822
|
Details | |
19.93 KB,
message/rfc822
|
Details | |
10.49 KB,
message/rfc822
|
Details | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
16.27 KB,
patch
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0
Steps to reproduce:
- i open the new email and read body of email
- i open "postacert.eml" attachment and read body of email
- i open "copia.eml" attachment but it's shown as empty boby/attachment
Actual results:
"copia.email" is shown as empty body/attachment but by "view source" it's not empty so i need to save "copia.eml" on disk and then i can read the body and attachment of orginal email forwarded
Expected results:
"copia.eml" should be shown with body and attachments right not blank
Comment 1•5 years ago
|
||
Resetting severity to default of --
.
Comment 2•5 years ago
|
||
Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is --
(Backlog,) indicating it has has not been previously triaged, the bug's Severity is being updated to --
(default, untriaged.)
Comment 3•4 years ago
|
||
Reporter, do. you still see this when using version 78?
Resolved per whiteboard
Hi,
I am having the same issue with others Italian PEC and confirm the above attachment "POSTA CERTIFICATA Messaggio PEC inoltrato [POSTA CERTIFICATA x max].eml" still have the issue with
Thunderbird 78.14.0 debian stable
Thunderbird-91.1_20210924213438.AppImage downloaded from https://github.com/srevinsaju/thunderbird-appimage/releases
I try to explain again the steps:
- Open POSTA CERTIFICATA Messaggio PEC inoltrato [POSTA CERTIFICATA x max].eml
Here only 2 attachments are shown (postacert.eml and copia.eml, total size 2.5 kB) and the body text of copia.eml is empty.
Opening copia.eml shows an empty message (no attachments and inline text) - Save postacert.eml to disk and open it from there.
postacert.eml now shows 4 attachments (one is a RN-TB.pdf, total size 1.1 MB)
I also attach some screenshots
Only few of these email have this issue, but in Italy they are considered "Registered mail" with legal value as soon as they are received (so even if you do not open or read)
Thanks
Comment 9•4 years ago
|
||
luca are you able to reproduce using version 91?
Reporter | ||
Comment 10•4 years ago
|
||
hi
issue still present even with TB 91.4.1 (64 bit)
MM
Reporter | ||
Comment 11•4 years ago
|
||
Comment 12•4 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #9)
luca are you able to reproduce using version 91?
As for me the issue persist with Thunderbird-91.4_20211216022855.AppImage (it's 91.4.1 as previous report)
Updated•4 years ago
|
Comment 13•3 years ago
|
||
still present with Thuderdirb 102.3.0 (debian stable)
Updated•3 years ago
|
Comment 14•3 years ago
|
||
Perhaps Kai has some idea.
Assignee | ||
Comment 15•2 years ago
|
||
I'm sorry that I haven't been able to investigate this bug earlier.
I've started to investigate today.
Assignee | ||
Comment 16•2 years ago
|
||
In the given examples, an email has another email attached.
When trying to open the nested email, we don't show the message contents.
There are two S/MIME signatures involved here. A signature for the outer layer, and another signature for an inner layer.
I performed a few experiments by manually modifying the messages.
Experiment 1:
If I remove the outer S/MIME signature, and keep everything else, we correctly show all parts of the message.
Experiment 2:
If I remove the inner S/MIME signature, and keep everything else, we also correctly show all parts of the message.
I need to investigate how the presence of more than one S/MIME signature causes the incorrect message processing.
Assignee | ||
Comment 17•2 years ago
|
||
Minimal testcase.
The text "level 2" from the attached message is not shown.
The text should be shown after we fix the bug.
Assignee | ||
Comment 18•2 years ago
|
||
This is a modified version of the minimal testcase.
The inner S/MIME signature layer is removed.
The "level 2" text is shown.
This demonstrates that we can show the contents of nested messages in general, but this bug (triggered by the second signature) prevents it from being shown.
Assignee | ||
Comment 19•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 20•2 years ago
|
||
I have a fix. It works on the esr102 branch.
I'll test comm-central soon, too.
Assignee | ||
Comment 21•2 years ago
|
||
TODO. Turn the attached testcase into an automated test (check that text "level 2" is shown).
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 22•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 23•2 years ago
|
||
Test is trivial. Maybe we can get both fix and test checked in before the Monday merge?
Assignee | ||
Comment 24•2 years ago
|
||
I was too optimistic, test doesn't work on comm-central.
Assignee | ||
Comment 25•2 years ago
|
||
Ok, test patch updated to work on c-c.
Assignee | ||
Comment 26•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 27•2 years ago
|
||
This missed the merge, I'd like to nominate for beta once landed.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 28•2 years ago
|
||
(In reply to Kai Engert (:KaiE:) from comment #27)
This missed the merge, I'd like to nominate for beta once landed.
Well, we're close to the next beta cycle, so probably sufficient to have it ride the train to beta.
Updated•2 years ago
|
Comment 29•2 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/dbe439ccd783
Better handling of nested S/MIME signatures. r=mkmelin
https://hg.mozilla.org/comm-central/rev/1574b0e6b27d
Test rendering of nested message with nested S/MIME signature. r=mkmelin
Assignee | ||
Comment 30•2 years ago
|
||
This breaks existing S/MIME unit tests.
We should back out, I need to carefully review how the existing tests should be adjusted.
Updated•2 years ago
|
Comment 31•2 years ago
|
||
Assignee | ||
Comment 32•2 years ago
|
||
https://hg.mozilla.org/comm-central/rev/dbe439ccd783
Better handling of nested S/MIME signatures. r=mkmelin
This revision (now backed out) had caused an unwanted change of behavior in some scenarios.
If a message contained two S/MIME signatures (outer and inner), we had always reported the message as having an invalid signature.
(This makes sense, if an attacker wraps their own signature around encrypted contents they cannot read, the attacker's signature shouldn't be shown as valid on the decrypted contents.)
However, the above revision would allow exactly that to happen, so I'm glad the test caught that change in behavior.
I'll update the patch to always report a broken signature status for the nested scenarios.
Updated•2 years ago
|
Assignee | ||
Comment 33•2 years ago
|
||
If this try run works we can land again.
https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=5249ac353e464233bd31c42be09ccedce12ef51c
Assignee | ||
Updated•2 years ago
|
Comment 34•2 years ago
|
||
Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/e3bf99432ff8
Better handling of nested S/MIME signatures. r=mkmelin
https://hg.mozilla.org/comm-central/rev/e14039312c0a
Test rendering of nested message with nested S/MIME signature. r=mkmelin
Description
•