Need to validate Host and Origin headers for remote agent websockets connection
Categories
(Remote Protocol :: Agent, defect, P2)
Tracking
(firefox-esr91 wontfix, firefox95 wontfix, firefox96 wontfix, firefox97 fixed)
People
(Reporter: jgraham, Assigned: jdescottes)
References
Details
(Keywords: sec-moderate, Whiteboard: [failures could end up being sec-high][bidi-m2-mvp][post-critsmash-triage][adv-main97+])
Attachments
(2 files, 1 obsolete file)
Otherwise it may be posibble for websites to connect to the remote agent c.f. https://bugzilla.mozilla.org/show_bug.cgi?id=1648964. Checxks should go in https://searchfox.org/mozilla-central/source/remote/server/WebSocketHandshake.jsm#76
Updated•3 years ago
|
Updated•3 years ago
|
Comment 1•3 years ago
|
||
We'll call this sec-moderate
for now because we don't know of a specific exploitable case at the moment and not many users run this, but like bug 1648964 failures are likely to be of the sec-high
type
Updated•3 years ago
|
Comment 2•3 years ago
|
||
As discussed in our triage meeting checking headers should actually be easy. But it might be harder to figure out what we actually need here. So we could start simple with just allowing localhost/127.0.0.1 even without IPv6 support which would reduce the points to just 2.
But for now lets add to our M2 milestone because it would be bad to tell Selenium folks to not use our BiDi implementation for logging because it totally unsecure.
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 3•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
Depends on D132561
Updated•3 years ago
|
Comment 5•3 years ago
|
||
Comment 6•3 years ago
|
||
WebDriver Bidi is not enabled by default on release branches. And as such no testing is done. Therefore we aren't considering an uplift to beta.
Comment 7•3 years ago
|
||
Same applies also to the esr91 branch.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 8•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•2 years ago
|
Description
•