Open Bug 1448687 Opened 8 years ago Updated 1 year ago

certificate linter: warn if the server certificate has invalid DNSNames/IPAddresses etc.

Categories

(Core :: Security: PSM, defect, P3)

61 Branch
defect

Tracking

()

People

(Reporter: steefy389, Unassigned)

References

Details

(Whiteboard: [psm-backlog])

Attachments

(5 files)

Attached file cert_with_key.pem —
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 Steps to reproduce: I created a testing certificate (attached; with the tool at https://8gwifi.org/SelfSignCertificateFunctions.jsp). Actual results: On accessing the local server in Firefox, I received the certificate warning page, as expected. But somewhere the parsing of the certificate went wrong, as the message contains the output "The certificate is only valid for <a id="cert_domain_link" title=""></a>" (full output attached). To rule out a problem with my own server implementation, I could reproduce it with a Python 2 server (based on https://www.piware.de/2011/01/creating-an-https-server-in-python/). I reproduced this error with 59.0.1 (20180315233128), 60.0b6 (20180322152034), 61.0a1 (20180325130758) (all on Windows 10), as well as Firefox for Android 59.0.1 (20180316061515). Expected results: The page should either suppress the line or parse the certificate successfully.
Attached file Cert (Text output) —
Attached file Full message —
This report seems a bit hard to reproduce and I don't know what the expected result should be for your scenario. As initial triage, I think this belongs to Security: PSM. Dana, what do you make of this?
Component: Untriaged → Security: PSM
Flags: needinfo?(dkeeler)
Product: Firefox → Core
I can re-produce this Issue on Firefox 54.0 (64-bit)
Thank you Anish, Based on comment 4, I am marking the bug as New.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Huh - looks like this was fixed in Nightly recently. Maybe bug 1415279 fixed it? Steef - can you still reproduce this using a recent version of Nightly?
Flags: needinfo?(dkeeler) → needinfo?(steefy389)
With the current nightly, the HTML artifacts are gone, but there is still no text. I'm not sure what the correct behavior should be, but I lean towards showing the common name or some kind of "Empty text" hint.
Flags: needinfo?(steefy389)
The text is empty because you have an empty DNS name in the subject alternative names extension of that certificate. A feature we've been meaning to implement for a long time is a certificate linter that would catch this sort of thing, but we're a long way off from that shipping.
Priority: -- → P3
Summary: Invalid text in certificate error page → certificate linter: warn if the server certificate has invalid DNSNames/IPAddresses etc.
Whiteboard: [psm-backlog]
Severity: normal → S3
Duplicate of this bug: 1936869
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: