Closed Bug 1382893 Opened 7 years ago Closed 6 years ago

WebAuthn RP-IDs should enforce HTTPS and be permissive for alternative TCP ports

Categories

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

defect

Tracking

()

RESOLVED WONTFIX
Future
Tracking Status
firefox57 --- disabled
firefox58 --- fix-optional

People

(Reporter: jcj, Assigned: jcj)

References

(Blocks 1 open bug)

Details

(Whiteboard: [webauthn][webauthn-wd07])

Attachments

(1 file)

The WebAuthn Relying Party domain strings are defined as being restricted to https (enforced by [SecureContext]), meeting the "Is Registrable Domain Suffix Of Or Equal To" algorithm (already implemented), and being generic to all TCP ports on a host.

The last should be enforced by the nsIURI parsing code in use, but is not covered by tests. Add tests and make sure that's working properly.

[1] https://w3c.github.io/webauthn/#relying-party-identifier
Assignee: nobody → jjones
Status: NEW → ASSIGNED
Are we planning to do this in 57?
Flags: needinfo?(jjones)
No. Updating to 'Future' as it's still undetermined what the schedule will be.
Flags: needinfo?(jjones)
Target Milestone: mozilla57 → Future
Version: 55 Branch → Trunk
Thanks. I've made a few other flag changes here to clarify the situation.
I've made a website to test this: 

https://webauthn.bin.coffee:8443/

And, as expected, manual tests pass.

I've also produced a patch that adds an automated test, but it doesn't work as our mochitest webserver needs to support ports other than 443 for HTTPS. 

I'll attach the patch for posterity, but I think we can leave this without an automated test. The code path for this functionality runs through nsURI, and that is unlikely to change substantially enough to cause a regression.
Keywords: stale-bug
Whiteboard: [webauthn] → [webauthn][webauthn-wd07]
Marking this wontfix for now, pending further discussions.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: