Hacker News new | ask | show | jobs
by comfydragon 4 days ago
WebUSB lets web apps talk to USB devices that are attached to the host running the browser. It doesn't have the browser present an emulated USB device to the kernel (at least not to my knowledge).
1 comments

Nothing stopping webUSB flashing the firmware of a device to run this exploit though presumably.
If you give the site access to your device, sure. But ultimately so could any other firmware updater.
Which is part of why Mozilla has been so bearish on WebUSB/MIDI/etc.

Performing software updates of essentially soft USB devices in a microcontroller is pretty much the primary use case of WebUSB currently.

I don't support Mozilla stance.

It's about the alternative.

Manufacturer can either provide WebUSB page, so you can flash your device. Or they can provide you with UPDATE.EXE which will do the same, but additionally your entire system will be exposed to arbitrary executable file.

WebUSB is always safer route.

And if Mozilla afraid about users randomly clicking (like they can already randomly download whatever exe and click on them) hide these permissions and turn off them by default. That's what I do on fresh chrome installation anyway, I disable every possible permission by default which still allows me to enable selected permissions on specific website if I need it.

The difference for me is the difference in expectations between what a website can do to your computer, and what random .exes can do.