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)
Core
DOM: Device Interfaces
Tracking
()
RESOLVED
FIXED
mozilla58
People
(Reporter: intermittent-bug-filer, Assigned: jcj)
References
Details
(Keywords: intermittent-failure, Whiteboard: [webauthn] [webauthn-test][stockwell unknown])
Attachments
(3 files)
Comment hidden (Intermittent Failures Robot) |
Comment 2•7 years ago
|
||
Hi J.C., is this recently-rose-up intermittent failure on your radar?
Flags: needinfo?(jjones)
Assignee | ||
Comment 3•7 years ago
|
||
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 | ||
Updated•7 years ago
|
Assignee: nobody → jjones
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•7 years ago
|
||
I've a test to print the whole certificate that is offensive whenever it comes up.
Keywords: leave-open
Assignee | ||
Comment 5•7 years ago
|
||
Marking checkin-needed w/ leave-open so we can see what the real failure is
Keywords: checkin-needed
Updated•7 years ago
|
Attachment #8909606 -
Flags: review+
Comment 6•7 years ago
|
||
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
Assignee | ||
Comment 7•7 years ago
|
||
Here goes!
Attachment #8909606 -
Attachment is obsolete: true
Flags: needinfo?(jjones)
Attachment #8909919 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
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
Comment 9•7 years ago
|
||
bugherder |
Comment hidden (Intermittent Failures Robot) |
Updated•7 years ago
|
status-firefox57:
--- → affected
status-firefox58:
--- → affected
Assignee | ||
Comment 11•7 years ago
|
||
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...
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 13•7 years ago
|
||
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.
Assignee | ||
Comment 14•7 years ago
|
||
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 hidden (mozreview-request) |
![]() |
||
Comment 16•7 years ago
|
||
mozreview-review |
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+
Assignee | ||
Comment 17•7 years ago
|
||
That's https://github.com/PeculiarVentures/PKI.js ; good idea, will do!
Keywords: leave-open → checkin-needed
Comment 18•7 years ago
|
||
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
![]() |
||
Comment 19•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Comment 20•7 years ago
|
||
bugherder uplift |
Comment hidden (Intermittent Failures Robot) |
Updated•7 years ago
|
Attachment #8909606 -
Attachment is obsolete: false
You need to log in
before you can comment on or make changes to this bug.
Description
•