-
Notifications
You must be signed in to change notification settings - Fork 975
[HackerOne] local files should not have read-access to other local files #4906
Comments
Do we want to implement a preference setting / commandline flag or just turn it off for now? I think that if we just wanted to disable it we could toggle it in brave/electron's |
they can default to false to match chrome. They are explicitly enabled in browser-laptop when required |
Thanks for the quick reply @bridiver. browser-laptop/js/stores/appStore.js Line 278 in 497ecf8
|
that is a requirement to work at all and doesn't affect the tabs |
Whoops. Yes, definitely don't want to change it there :-). Thanks! |
@willy-b should i assign this one to you? |
@diracdeltas, sure! I'll hop on it now |
actually, no need to wait on me. we already discussed the one line change above and the latest |
i tried toggling the flags in https://github.com/brave/electron/blob/master/atom/browser/atom_browser_client.cc#L138 but it didn't work |
i think i figured it out in brave/muon#80. will add a test once that is merged. |
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
requires brave/muon#80 Auditors: @bridiver Test Plan: n/a
this appears to have regressed |
nvm, #14642 appears to be new, not a regression |
for instance, this is disallowed in Chrome unless http://peter.sh/experiments/chromium-command-line-switches/#allow-file-access-from-files is set
PoC:
0.
echo 'hello world' > /tmp/test.txt
the alert should not happen
cc @bridiver
The text was updated successfully, but these errors were encountered: