Activity Stream content page can navigate to file: or other protocols
Categories
(Firefox :: New Tab Page, defect, P1)
Tracking
()
People
(Reporter: Mardak, Assigned: Mardak, NeedInfo)
References
Details
(Keywords: sec-want, Whiteboard: [adv-main60-][post-critsmash-triage])
Attachments
(1 file)
|
2.79 KB,
patch
|
k88hudson
:
review+
|
Details | Diff | Splinter Review |
| Assignee | ||
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
| Assignee | ||
Comment 4•8 years ago
|
||
| Assignee | ||
Comment 5•8 years ago
|
||
| Assignee | ||
Comment 6•8 years ago
|
||
| Assignee | ||
Updated•8 years ago
|
Comment 7•8 years ago
|
||
| Assignee | ||
Comment 8•8 years ago
|
||
Comment 9•8 years ago
|
||
| Assignee | ||
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
| Assignee | ||
Comment 12•8 years ago
|
||
| Assignee | ||
Comment 13•8 years ago
|
||
Updated•8 years ago
|
Comment 14•8 years ago
|
||
Updated•8 years ago
|
Comment 15•8 years ago
|
||
Comment 16•8 years ago
|
||
| Assignee | ||
Comment 17•8 years ago
|
||
Updated•8 years ago
|
| Assignee | ||
Comment 18•8 years ago
|
||
| Assignee | ||
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Updated•7 years ago
|
Updated•6 years ago
|
| Assignee | ||
Comment 19•6 years ago
•
|
||
Looks like bug 1599368 wants to change this Null principal to openTrustedLinkIn, which uses System principal, to support SameSite cookies. To not regress this bug, I would guess we need to do explicit protocol / url checks instead of relying on the principal?
Comment 20•6 years ago
|
||
(In reply to Ed Lee :Mardak from comment #19)
Looks like bug 1599368 wants to change this
Nullprincipal toopenTrustedLinkIn, which usesSystemprincipal, to support SameSite cookies. To not regress this bug, I would guess we need to do explicit protocol / url checks instead of relying on the principal?
Yes. I couldn't find this bug when doing the archaeology for the other bug (in a slack discussion with Scott). We need system principal in order for it to count as a samesite navigation.
In terms of safe protocols - http/https, for sure, but after that I'm not sure. What was the rationale for blocking about: and file: links? I don't actually see much in this bug, perhaps the discussion happened elsewhere?
Comment 21•6 years ago
|
||
The reason for being careful is that page has lots of sources of input and we don't know which of them might be compromised or gamed in some future iteration of the code. Some about: pages are privileged, and some take parameters that cause things to happen (hopefully not both). file: URLs had, until recently, an ability to read other unrelated files stored nearby and potentially exfiltrate them (multi-stage attack -- you'd have to get a malicious file downloaded first). It's not a system-privileged page because we don't trust it as much as system privileged pages and it's safest to implement a consistent set of security rules (in this case wrt what pages can link to).
All the Pocket urls will be web links (http/https), and top user sites should be, too. I can't think of any other scheme we're likely to need. Any scheme we don't surface on the newtab page can still be made into a real bookmark and launched from there.
Description
•