Closed Bug 1399334 Opened 7 years ago Closed 7 years ago

Intermittent dom/u2f/tests/test_register_sign.html | /tests/dom/u2f/tests/frame_register_sign.html: Register attestation signature verified

Categories

(Core :: DOM: Device Interfaces, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox57 --- fixed
firefox58 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: jcj)

References

Details

(Keywords: intermittent-failure, Whiteboard: [webauthn] [webauthn-test][stockwell unknown])

Attachments

(3 files)

Hi J.C., is this recently-rose-up intermittent failure on your radar?
Flags: needinfo?(jjones)
It wasn't, but it is now. Thanks!
Flags: needinfo?(jjones)
OS: Unspecified → All
Priority: -- → P2
QA Contact: mwobensmith
Hardware: Unspecified → All
Whiteboard: [stockwell needswork:owner] → [stockwell needswork:owner] [webauthn] [webauthn-test]
Assignee: nobody → jjones
Status: NEW → ASSIGNED
I've a test to print the whole certificate that is offensive whenever it comes up.
Keywords: leave-open
Marking checkin-needed w/ leave-open so we can see what the real failure is
Keywords: checkin-needed
I have no way of landing patches from Phabricator at the moment. Please attach it here or to MozReview instead.
Flags: needinfo?(jjones)
Keywords: checkin-needed
Here goes!
Attachment #8909606 - Attachment is obsolete: true
Flags: needinfo?(jjones)
Attachment #8909919 - Flags: review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/0902f7275334 Add more debugging to see why certificates aren't valid. r=ttaubert
Keywords: checkin-needed
I've dug through this and am still not clear on what the cause is. This failure is new simply because I added the check of whether the certificate's signature was valid to this test relatively recently. There are other tests that check that out, particularly all of the equivalent webauthn tests. I'm tempted to go remove the check again. We don't ship the soft token, it's purely for testing...
I think this bug is in PKI.js, but I haven't isolated where. Most of the certificates reported in brasstacks are truncated by the logger (oops), but some are complete, and those which are complete verify fine with OpenSSL and NSS, so whatever is wrong is a false positive. I'm going to remove the call to attestationCert.verify() --- it's not even testing anything relevant to U2F.
Examples for posterity: https://treeherder.mozilla.org/logviewer.html#?repo=mozilla-beta&job_id=133848683&lineNumber=4971 -----BEGIN CERTIFICATE----- MIIBMTCB2aADAgECAgUAq02MeTAKBggqhkjOPQQDAjAhMR8wHQYDVQQDExZGaXJl Zm94IFUyRiBTb2Z0IFRva2VuMB4XDTE3MDkyNzE2MDAzN1oXDTE3MDkyOTE2MDAz N1owITEfMB0GA1UEAxMWRmlyZWZveCBVMkYgU29mdCBUb2tlbjBZMBMGByqGSM49 AgEGCCqGSM49AwEHA0IABH4RcxsrUCg09aLnYY3Bi6kUqjiQ1WtZkjpRs+gxyTKW Tg4DIWRket4Ok8gv+a4W6JaIzt//orbJ3bo0uWKDUVAwCgYIKoZIzj0EAwIDRwAw RAIgAORpKjwu9wKJkhIxMYiTHC0WzTb99G58EkQ5ejteHMUCIFYa6ilDjW3BAtm4 fJNr3yK/K2QnP3EfMqO+c+el9C4O -----END CERTIFICATE----- openssl verify -purpose any -CAfile /tmp/cert.pem /tmp/cert.pem /tmp/cert.pem: /CN=Firefox U2F Soft Token error 10 at 0 depth lookup:certificate has expired OK https://treeherder.mozilla.org/logviewer.html#?repo=mozilla-central&job_id=134282931&lineNumber=2673 -----BEGIN CERTIFICATE----- MIIBMTCB2aADAgECAgUA55x6LTAKBggqhkjOPQQDAjAhMR8wHQYDVQQDExZGaXJl Zm94IFUyRiBTb2Z0IFRva2VuMB4XDTE3MDkzMDE5MjIzMloXDTE3MTAwMjE5MjIz MlowITEfMB0GA1UEAxMWRmlyZWZveCBVMkYgU29mdCBUb2tlbjBZMBMGByqGSM49 AgEGCCqGSM49AwEHA0IABIWu4L8ky7s8I7qVv+JwMRHpippH4b6h7rN0jlKpFbHK hnEwaCPLrTx04Eh9xT4GK9JWuuP759hnAxsWD5wk0H0wCgYIKoZIzj0EAwIDRwAw RAIgRIeRcn6LkwU8VOmX+mdQ3jUQrUOp5f2xH/qBECGi5EcCIADBjsm/EDKkAwLZ pGdX7+N+kgf9No4uuLV4dsNVJ1pa -----END CERTIFICATE----- openssl verify -purpose any -CAfile /tmp/cert2.pem /tmp/cert2.pem /tmp/cert2.pem: OK
Comment on attachment 8914437 [details] Bug 1399334 - Workaround buggy pki.js cert verifier implementation https://reviewboard.mozilla.org/r/185742/#review190690 Seems reasonable. Maybe file a bug wherever pki.js tracks its issues with a certificate that fails to verify?
Attachment #8914437 - Flags: review?(dkeeler) → review+
That's https://github.com/PeculiarVentures/PKI.js ; good idea, will do!
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/42e5371334d9 Workaround buggy pki.js cert verifier implementation r=keeler
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Attachment #8909606 - Attachment is obsolete: false
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: