Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

harden default web preferences #80

Merged
merged 1 commit into from
Oct 25, 2016
Merged

harden default web preferences #80

merged 1 commit into from
Oct 25, 2016

Conversation

diracdeltas
Copy link
Member

and prevent local files loaded in webviews from reading other files unless
explicitly allowed by a webview attribute.

fix brave/browser-laptop#4906

auditors: @bridiver

@@ -205,6 +205,8 @@ const attachGuest = function (embedder, elementInstanceId, guestInstanceId, para
zoomFactor: params.zoomFactor,
allowDisplayingInsecureContent: (ref1 = params.allowDisplayingInsecureContent) != null ? ref1 : false,
allowRunningInsecureContent: (ref1 = params.allowRunningInsecureContent) != null ? ref1 : false,
allowFileAccessFromFileUrls: (ref1 = params.allowFileAccessFromFileUrls) != null ? ref1 : false,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we actually need these? We only ever set it to true for the main window

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess not

and prevent local files loaded in webviews from reading other files unless
explicitly allowed by a webview attribute.
fix brave/browser-laptop#4906

auditors: @bridiver
@bridiver bridiver merged commit 3e23ba1 into master Oct 25, 2016
diracdeltas added a commit to brave/browser-laptop that referenced this pull request Oct 25, 2016
requires brave/muon#80

Auditors: @bridiver

Test Plan: n/a
@bsclifton bsclifton deleted the fix/local-file-js branch June 18, 2018 18:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[HackerOne] local files should not have read-access to other local files
2 participants