Chrome: trick users into giving access to all files on local disk (2016)
bugs.chromium.org
bugs.chromium.org
I question the utility of having this delay behaviour by default, worst that can happen is you accidentally start a download AFAIK, which you can just quickly delete/cancel afterwards.
And, there's browser.download.manager.alertOnEXEOpen too.
I much prefer Chrome's behaviour of starting the download and you instantly can see the filename and size in the bottom as soon as it starts and can then choose to either open it or show it in the file manager.
There's a potential DLL hijacking attack:
1. Accidental download of kernel32.dll
2. Ignore, who cares, do something else
3. Download actually_wanted_installer.exe, which finds malicious kernel32.dll in current directory instead of SYSTEM32
There are a few DLLs whitelisted for protection for this, but drive-by downloads are a real attack vector.
Also in the past, exploitable bugs in the thumbnailer if you browse to your Downloads directory (e.g. CVE-2017-11421 and others on Linux).
That said, starting the download and immediately getting it out of the user's face, requiring interaction to open them is a very good solution. It leads to some problems on Windows, but then, what doesn't?
https://chromium.googlesource.com/chromium/src/+/HEAD/docs/l...
Security: Read all local files using minimal user interaction and gesture laundering
The title here on HN should include some combination of "bug", "security", "fixed", and "gesture laundering". The way it's written now sounds like Chrome's designers are _trying_ to trick users into giving file access permissions. That's not the case.
> This is one of our oldest open security bugs (480 days). We really need to get progress on it.
It has the countdown before you can click OK, so with the user holding down Enter for 5 seconds, you'd not even get a handful of files, and it blocks the file dialog from "untrusted" sites.