• 0 Posts
  • 64 Comments
Joined 3 years ago
cake
Cake day: August 17th, 2023

help-circle
  • Yeah, Chromium’s implementation is IMO very elegant and genuinely improves security for most people. That’s why I’m a little miffed by comments that paint it as an obviously terrible feature, just like happens with the “read/write to a specific local folder” API.

    These days, new browser features often aren’t in the users best interest, I understand and share the commonly discussed concerns on those. But compared to the alternatives, these specific APIs genuinely improve safety for most users AND make things more accessible for newbies and pros alike. Blocking them on principle (& without specific technical concerns) will not protect users when their remaining option gives malicious actors far more access without any exploits!


  • I do understand your concerns regarding safety, but not having WebUSB does not guarantee that malicious websites can’t access your USB devices. Both Firefox and Chromium already interact with your USB devices to provide features like debugging over USB, so malicious websites that exploit browser bugs are able to talk to your devices either way. And if we don’t count browser bugs, you can simply set your browser to block WebUSB by default to arrive at the same outcome.

    Of course there is a chance that specific exploits could work in one case and not the other, but that’s something the real-life statistics haven’t shown to be an issue so far. Browsers are generally pretty safe these days due to multiple layers of sandboxing, so I’d be surprised to see major WebUSB-specific security exploits appearing in the future.


    Edited to add:

    Sorry, when I said “sky is falling” I meant a general erosion of user security and privacy, when using our “own” devices.

    Same here, I hate the direction things are already clearly heading towards on mobile, and I expect desktops to get enshittified as well soon enough. But I see WebUSB as a major positive in that context (since it allows users to take control of their devices in a much easier and safer manner, & mostly guarantees backwards compatibility of such tools for many years to come). And although I’ve read comments similar to yours many times - this topic gets brought up fairly often - nobody has explained concrete technical issues that are likely to bite us.


  • I’m afraid of the sky falling (it is).

    Somehow, I must’ve missed all these cases where bad actors abused the WebUSB API. So what did they do? What’s the worst damage the victims have suffered?

    That’s general - in this specific case, by my reckoning, it can never be safe for a website to understand, in any depth, the hardware of the machine requesting it.

    You still haven’t explained: why? When the options are “website” or “untrusted binary”, the website is objectively much safer. Sure, you can sandbox untrusted binaries - but then you can just sandbox the browser.

    Yes, there are security concerns, but these fears haven’t been confirmed in real life, and they don’t disappear if we ban WebUSB! Instead, people have to run untrusted code with access to far more hardware than WebUSB allows.







  • The Wayland story for such tools was pretty bad for a while, but AFAIK the necessary protocols are now in place, so it should be possible to build this now (though probably not with all features due to security).

    But I’d love something like AHK with a saner scripting language, maybe Lua or JS (through QuickJS)!