Closed Bug 1863705 Opened 2 years ago Closed 2 years ago

Show the OpenPGP signature date when the signature is rejected because of its date

Categories

(MailNews Core :: Security: OpenPGP, enhancement)

enhancement

Tracking

(thunderbird_esr115 fixed)

RESOLVED FIXED
121 Branch
Tracking Status
thunderbird_esr115 --- fixed

People

(Reporter: KaiE, Assigned: KaiE)

References

Details

Attachments

(1 file)

The work in bug 1775628 was insufficient to understand when a failure is rejected because of the signature time.

We currently require that the difference between the OpenPGP signature date and the message date must be at most one hour.

If it's more, we display the signature as invalid.

Unfortunately, in that scenario, the status info doesn't show the date, so it's difficult to understand the reason.

I would like to add a minimal fix for the 115 branch, that shows the date.

We could do better, and also show a better explanation, but that will require new strings, which we probably cannot add to the 115 branch. So I'll split that enhancement into a separate bug.

Blocks: 1863707
Depends on: 1775628
Assignee: nobody → kaie
Status: NEW → ASSIGNED

I've manually tested this shared code still works for scenarios in which no signature date is available at all, for example, if the signature data block is missing or corrupted.

I'd like to add, I was motivated to fix this scenario, because I received an email that had this problem, and without having this information, it took too much time to debug.

Interesting. Did you figure out how/why it had happened?

As I understand it, an email message was prepared manually, and was given later to an email software. I'm guessing it was done to prepare multiple similar messages, maybe with a script.

The message seemed legitimate to me, email sender and signer were the same person.

The difference was 1.5 hours, so just slightly above the threshold of 1 hour that Thunderbird currently tolerates.

Target Milestone: --- → 121 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/8876813fc665
Show OpenPGP signature timestamp for rejected signatures. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

Comment on attachment 9362553 [details]
Bug 1863705 - Show OpenPGP signature timestamp for rejected signatures. r=mkmelin

[Approval Request Comment]
Regression caused by (bug #): incomplete fix in bug 1775628
User impact if declined: difficult to diagnose bad signature
Testing completed (on c-c, etc.):
Risk to taking this patch (and alternatives if risky): low

Attachment #9362553 - Flags: approval-comm-esr115?

Comment on attachment 9362553 [details]
Bug 1863705 - Show OpenPGP signature timestamp for rejected signatures. r=mkmelin

[Triage Comment]
Approved for esr115

Attachment #9362553 - Flags: approval-comm-esr115? → approval-comm-esr115+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: