improved logging when certificate errors are encountered
Categories
(Thunderbird :: Security, defect)
Tracking
(thunderbird_esr115 fixed)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr115 | --- | fixed |
People
(Reporter: achowe, Assigned: mkmelin)
References
Details
(Whiteboard: [TM 115.3.1])
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-esr115+
|
Details | Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0
Steps to reproduce:
Have a private / personal CA (CA:true, keyUsage: keyCertSign enabled). Generated a new host certificate used for SMTP STARTTLS, IMAPS, and POPS. (this is a yearly cert renewal).
Manually testing with openssl s_client -connect host:993 -CAfile /etc/openssl/cert.pem (containing a copy of the private root CA) shows no issue / error with the host certificate (Verify return code: 0 (ok)).
The private CA has been manually added to TB's Certificate Authorities list.
Start (Windows) TB and it attempts to connect to the IMAPS accounts. Clicking on a message to read also attempt to re-connect and fails.
Actual results:
TB fails to connect to IMAPS.
-
Activity Manager and Error Console provide no information / insight WRT certificate issues.
-
Does not appear to compare the host's Issuer CA against the private root CA that TB has knowledge of.
-
Does not prompt for a server security exception.
-
Impossible to manually add server security exception via Manage Certificates.
From host's maillog, very few details:
Jun 22 18:09:51 mx imapd[7405]: imaps SSL service init from 108.162.xxx.yyy
Jun 22 18:09:51 mx imapd[7405]: imaps SSL service init from 108.162.xxx.yyy
Jun 22 18:09:51 mx imapd[7405]: Unexpected client disconnect, while reading line user=??? host=some.host.name [108.162.xxx.yyy]
Jun 22 18:09:51 mx imapd[7405]: Unexpected client disconnect, while reading line user=??? host=some.host.name [108.162.xxx.yyy]
Expected results:
-
More informative logging.
-
Given a manually added private CA Authority, the Issuer CA should match.
-
Alternatively should have prompted for a server security exception.
-
Should be able to manually server security exception:
- Manually adding an exception assumes the mail host has a
https://server.https://host:993/does not work. - does not support
imaps://host
- Manually adding an exception assumes the mail host has a
Workaround:
- Config Editor
- Create string entry
network.security.ports.banned.overridevalue 993 - Repeat to manually add server security with
https://host:993now works!
| Assignee | ||
Comment 2•2 years ago
|
||
If you click "Get messages" and there is an overridable cert problem, you will get prompted. This is generally working.
| Reporter | ||
Comment 3•2 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #2)
If you click "Get messages" and there is an overridable cert problem, you will get prompted. This is generally working.
Never had to do that before, typically I'm prompted when TB first connects or when I try to read a message and it needs to connect.
Anyway I tested the above suggestion. I removed my previous server exception; restarted TB just to be sure; and clicked Get Messages. This method did work and was prompted for a security exception.
However, there are still the other related issues outlined above that need addressing.
| Assignee | ||
Comment 4•2 years ago
|
||
I'll grab this bug to make the logging more informative.
| Assignee | ||
Comment 5•2 years ago
|
||
Make the logging more informative, and make sure connections are closed on receiving bad certs.
| Assignee | ||
Updated•2 years ago
|
Pushed by solange@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/099a27e606a8
make bad cert logging more informative. r=babolivier
Comment 8•2 years ago
|
||
I backed this out. It's breaking browser_attachmentReminder.js somehow.
Backout:
https://hg.mozilla.org/comm-central/rev/f80c2fb1d090b762d472e5729b0ff5e68518de21
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/9c628be72556
make bad cert logging more informative. r=babolivier
| Assignee | ||
Comment 10•2 years ago
|
||
Comment on attachment 9352447 [details]
Bug 1840244 - make bad cert logging more informative. r=babolivier
[Approval Request Comment]
User impact if declined: more difficult to debug invalid cert issues
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): safe, but could still well bake for a 115 dot.dot release
Updated•2 years ago
|
Comment 11•2 years ago
|
||
Comment on attachment 9352447 [details]
Bug 1840244 - make bad cert logging more informative. r=babolivier
[Triage Comment]
Approved for esr115 after two weeks on beta
Comment 12•2 years ago
|
||
Comment on attachment 9352447 [details]
Bug 1840244 - make bad cert logging more informative. r=babolivier
[Triage Comment]
Approved for esr115 after two weeks on beta
Comment 13•2 years ago
|
||
| bugherder uplift | ||
Thunderbird 115.3.2:
https://hg.mozilla.org/releases/comm-esr115/rev/8771283f8b85
Description
•