Open Bug 1982675 Opened 3 months ago Updated 20 days ago

Unable to save attachment signed with OpenPGP

Categories

(MailNews Core :: Security: OpenPGP, defect)

Thunderbird 141
defect

Tracking

(Not tracked)

People

(Reporter: olyx32, Assigned: mkmelin)

References

(Blocks 1 open bug)

Details

(Whiteboard: [mailsec-broken-fixwanted])

Attachments

(1 file)

2.36 KB, application/x-zip-compressed
Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0

Steps to reproduce:

I have a signed (OpenPGP) message that was composed in Apple Mail. It contains some forwarded email as an attachment. Inner message is shown correctly in the viewer. When I press "Save" on the attachment, a Folder selection dialog appears but the attachment is not saved on the disk.

I use an updated release version of Thunderbird for Windows.

I created a test email for this bug, you can find it in the file "message.eml". Open it and try to save the attachment "Sample.eml".
The test email contains an incorrect signature, just like the original one. Anyway, the signature verification result does not affect the bug. If you want, you can sign the test email manually:

  1. extract data to sign (or you can use "blob.txt" I filed to the report)
  2. sign: gpg -sa --detach-sign -r "<your_key_id_here>" blob.txt
  3. edit From header, use your email address from the pgp key
  4. edit Date header: run date --rfc-email to get the correct date
  5. substitute the signature with the contents of the blob.txt.asc

Actual results:

Attachment is not saved

Expected results:

Attachment should be saved correctly

Component: Untriaged → Security: OpenPGP
Product: Thunderbird → MailNews Core
Summary: Unable to save attachment → Unable to save attachment signed with OpenPGP

Confirmed, I get

NS_BASE_STREAM_CLOSED: Component returned failure code: 0x80470002 (NS_BASE_STREAM_CLOSED) [nsIInputStream.available] NetUtil.sys.mjs:445
    readInputStream resource://gre/modules/NetUtil.sys.mjs:445
    buffer resource:///modules/AttachmentInfo.sys.mjs:270
    onStopRequest resource://gre/modules/NetUtil.sys.mjs:124
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [mailsec-broken-fixwanted]
Assignee: nobody → mkmelin+mozilla
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: