OpenPGP: Action "Decrypt and Save As" on encrypted attachment creates corrupt file
Categories
(MailNews Core :: Security: OpenPGP, defect)
Tracking
(thunderbird_esr91 unaffected, thunderbird_esr102+ fixed, thunderbird103 affected)
Tracking | Status | |
---|---|---|
thunderbird_esr91 | --- | unaffected |
thunderbird_esr102 | + | fixed |
thunderbird103 | --- | affected |
People
(Reporter: nick632545, Assigned: KaiE)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta-
|
Details | Review |
1.49 KB,
patch
|
wsmwk
:
approval-comm-esr102+
|
Details | Diff | Splinter Review |
Steps to reproduce:
1.) Create a zip archive with 2 or more files
2.) Encrypt zip archive (in my case I used gpg command line tools)
3.) Create an email, attach encrypted zip archive (no need to encrypt the actual message) and send.
I am on a mac, running Big Sur (11.6.7)
In my contrived test, I am running:
gpg (GnuPG/MacGPG2) 2.2.34
libgcrypt 1.8.9
Utilizing the standard mac compression tool.
It should be noted that I've also utilized Ubuntu 18.04, Python 3.8.2 (shutil.make_archive) with gnupg module and the issue remains (I don't think this is a mac problem).
Actual results:
1.) Right click on attachment, select "Decrypt and Save As"
2.) Decompress zip archive (this fails due to file corruption - Inappropriate file type or format)
Expected results:
A proper zip archive would be written to disk, which would permit decompression. It should be noted that if I right click on the attachment and select Save As, the gpg file will be written to disk, I can subsequently decrypt and then unzip the archive and it works fine.
FWIW, this issue is not present in Thunderbird 91.11.0 (64-bit) running on Ubuntu 18.04.
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
I can reproduce and have a fix.
Assignee | ||
Comment 3•2 years ago
|
||
Bug isn't specific to external gnupg - can be reproduced with internal RNP decryption, too.
Assignee | ||
Comment 4•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 5•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/0f3ed268cea0
Fix decryption of binary attachments. r=mkmelin
Assignee | ||
Comment 7•2 years ago
|
||
Comment on attachment 9286531 [details]
Bug 1780123 - Fix decryption of binary attachments. r=mkmelin
[Approval Request Comment]
Regression caused by (bug #): 1677088
User impact if declined: broken functionality
Testing completed (on c-c, etc.):
Risk to taking this patch (and alternatives if risky): low
Assignee | ||
Updated•2 years ago
|
Comment 8•2 years ago
|
||
Comment on attachment 9286531 [details]
Bug 1780123 - Fix decryption of binary attachments. r=mkmelin
[Triage Comment]
Approved for beta
Updated•2 years ago
|
Updated•2 years ago
|
Comment 9•2 years ago
|
||
Comment on attachment 9286531 [details]
Bug 1780123 - Fix decryption of binary attachments. r=mkmelin
[Triage Comment]
already on beta 104 via merge
Comment 10•2 years ago
|
||
Comment on attachment 9286532 [details] [diff] [review]
1780123-esr102.patch
[Triage Comment]
Approved for esr102
Comment 11•2 years ago
|
||
bugherder uplift |
Thunderbird 102.1.1:
https://hg.mozilla.org/releases/comm-esr102/rev/50216cc21b58
Description
•