Brave Software · Report #377206
`settingcontent-ms` files lacks "mark of the web" => execute code by dbl click in Downloads toolbar
How it was found
Summary:
settingcontent-ms files allow launching any binary with any params.
Brave doesn't mark settingcontent-ms files with "mark of the web", so the file could be executed by double click in "Downloads" toolbar. Launched settingcontent-ms file could lead to code execution with user-level privileges.
Products affected:
Brave: 0.23.19 Muon: 7.1.3 OS: 10.0.17134 (the image was downloaded today from the MS virtualbox images page) Chromium: 67.0.3396
Steps To Reproduce:
- Download
twitter.settingcontent-msfrom attachments. - Dbl click on the item in "Downloads" toolbar.
- Calculator opens (but as I said, it's possible to launch anything).
PoC/Screencast additionally leverages #375259.
Supporting Material/References:
- FF patched this somewhere between 60-62 version
- This bug still works in Edge. As far as I know, that's 1-day.
- Chrome downloads
settingcontent-msfiles only after a confirmation from the user. - This problem is already popular, so you could easily find more info.
PoC + screencast attached. Live PoC: (not sure that it works, it'd be better to test it locally)
Impact
Launched settingcontent-ms could lead to code execution with user-level privileges.
Marked as "high", because it's a native OS feature, all Win users are affected.