Lurker News

Comments (376) 84 threads

Show all comments

Showing thread 69 of 84

throwaway0x7E62 replies#
neat tool. I would encrypt the payload type and extension tho

>Some browsers disable window.crypto on local files and non-TLS servers
which ones do that?

mprime11 reply#
Brave and Safari that I know of.

i.e. if you run the creator with a simple HTTP server on localhost:8080 it'll block the fetch to localhost:8080/foo

throwaway0x7E61 reply#
for local files as well?
mprime12 replies#
Yes.

If that wasn't the case, then "HTML virus" would be a thing: I send you an HTML file and, if you open it, it read files from your hard drive and uploads them to my server.

jefftk3 replies#
The problem with your scenario is the reading the local files without permission, not the use of the crypto API.

Continue this thread — 3 replies

throwaway0x7E6#
I should have clarified - I mean I was wondering if any browsers block fetch to remote URLs from local files

I do vaguely recall encountering some problem I didn't expect when I was making a tool contained in a local html file, but I dont remember which browser I was using at the time