Closed Bug 1679756 Opened 3 years ago Closed 3 years ago

Thunderbird OpenPGP passes truncated data block to RNP when verifying UTF-8 clear signed text

Categories

(MailNews Core :: Security: OpenPGP, defect, P1)

Tracking

(thunderbird_esr78+ fixed, thunderbird84 affected)

RESOLVED FIXED
85 Branch
Tracking Status
thunderbird_esr78 + fixed
thunderbird84 --- affected

People

(Reporter: KaiE, Assigned: KaiE)

References

Details

Attachments

(1 file)

If we're processing a message that contains UTF-8 data, our conversion code from JS strings to ctypes data buffers is incorrect.

The conversion incorrectly uses the character length of the JS string, instead of the length after converting an UTF-8 string to a byte buffer.

Consequently a short data buffer is given to RNP, and the processing fails.

Severity: -- → S2
Priority: -- → P1

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/3b35e465086d
Truncated data block passed to RNP when verifying UTF-8 clear signed text. r=mkmelin

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/31da0d03aa5f
followup - fix linting. rs=eslint DONTBUILD

Comment on attachment 9190272 [details]
Bug 1679756 - Truncated data block passed to RNP when verifying UTF-8 clear signed text. r=mkmelin

[Approval Request Comment]
Regression caused by (bug #): no
User impact if declined: many OpenPGP messages shown with incorrect message status
Testing completed (on c-c, etc.):
Risk to taking this patch (and alternatives if risky): low

Attachment #9190272 - Flags: approval-comm-esr78?
Attachment #9190272 - Flags: approval-comm-beta?

Comment on attachment 9190272 [details]
Bug 1679756 - Truncated data block passed to RNP when verifying UTF-8 clear signed text. r=mkmelin

[Triage Comment]
This won't reach beta via uplift, unfortunately.
Approved for esr78

Attachment #9190272 - Flags: approval-comm-esr78?
Attachment #9190272 - Flags: approval-comm-esr78+
Attachment #9190272 - Flags: approval-comm-beta?
Attachment #9190272 - Flags: approval-comm-beta-
See Also: → 1669107
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: