4 ms·
There are 2 worlds on the web, what a page can access simply by going to it and what a page can access when you grant it permissions after it asks. The latter i
by zamadatix 7y ago
There are 2 worlds on the web, what a page can access simply by going to it and what a page can access when you grant it permissions after it asks. The latter is where WebUSB falls, I call it the realm of the web app, and is no more risky (arguably less due to design) than the current "do you want to download and run nativeusbapp.exe" permission.
- JohnFen 7y ago> is no more risky (arguably less due to design) than the current "do you want to download and run nativeusbapp.exe" permission. I'm nervous about justifying one thing based on the fact that a different, objectively terrible, thing is allowed already.
- vbezhenar 7y agoWhat's so terrible about using USB devices? I have my crypto token with USB interface and I'm using it to interact with website. The only alternative is to store private key in file and it's worse.
- JohnFen 7y agoThe terrible thing I was referring to was the prompt asking users if they want to execute a binary they just downloaded.
- viraptor 7y agoIt moves the target for user education yet again though. You know how we get the "allow notifications" popup everywhere now? Recently someone spotted a page which tries "to verify you're human, click allow on the notification". If we spam users with requests like that and lose control of simple things, there's no chance for us to ask a meaningful question about webusb. I've seen this on my mom's mobile phone. It's full of news notifications that annoy her - because she defaulted to clicking "allow", because she's a typical user.
- zamadatix 7y agoThe WebUSB popup asks you to select the USB device per session not allow/disallow all devices for all sessions.
- BoorishBears 7y agoSo I know of a very popular keyboard controller than can be made to run unsigned code by sending it the right HID data. Said code persists after reboot. Please point out if this attack is not viable: Ask for permission to use your keyboard. No matter how scary the warning, non-technical users will allow a website to use the keyboard because "of course it needs a keyboard" Upload a malicious payload to keyboard. Remember, now it can present itself as any USB device. Or maybe stay simple with a keylogger, maybe with heuristics to get juicy data (what are the first 20 characters typed at boot and after "www" is typed) Game over?
- zamadatix 7y agoNope, the first 3 (plainly written) sections of the standard will tell you why if you're curious https://wicg.github.io/webusb/#introduction https://wicg.github.io/webusb/#introduction The upcoming WebHID API considers and mitigates this attack as well https://wicg.github.io/webhid/#introduction https://wicg.github.io/webhid/#introduction
- BoorishBears 7y agoExcuse me, what? Please explain your reasoning. (And yes I read the section 3 of the standard before writing the comment above, see my other comment in this thread) WebHID even says it more plainly: > In general, these types of attacks are device-specific and cannot be mitigated at the API level. Both documents you linked literally go: "We know these attacks exist, we don't care as long as we show a prompt, device manufacturers fix your shit it's not our problem" - I can't reply for some reason but: I didn't see any mention of HID devices not being listed, not was it immediately apparent that a HID device would already be held in the kernel context I also still don't see blocking input from trusted devices, I see the same language I called out: "Device manufacturers should watch out" - "I think it works like this, why doesn't it" is a great way to learn things, except when the reply is a low effort: "here's that thing you read, did you actually read it?"
- BoorishBears 7y agoIt's very different because way more users (not all users) will pick up on the fact "this website wanted to run an unannounced exe after a totally unrelated action, and that is bad" Than will pick up on "this website wants to use your keyboard" Your tech illiterate users fall for the former, but many people with just average technical knowledge would fall for the latter. "This website uses your keyboard directly to secure your password, press yes when presented with the dialog"