News for hackers. Stuff that matters.
Re:Chrome 56 adds Web Bluetooth API by GeneralMaximus on Monday February 06, 2017 @03:46AM (#13577670)
This article is poorly researched. The Web Bluetooth API does not allow a webpage to request a list of all Bluetooth devices that your browser can see.

The API allows a webpage to ask for access to a device in response to a user action only. At this point the user has to give the page permission to access Bluetooth devices. The browser then prompts the user to choose a device from a list of available devices, and the webpage is granted access to whichever device the user picks. That's all. There's no "list every Bluetooth device in the area" API (at least not yet), unless I'm missing something.

More reading: https://medium.com/@jyasskin/the-web-bluetooth-security-mode...

And also: https://medium.com/@urish/is-now-a-good-time-to-start-using-...

And also also: https://developers.google.com/web/updates/2015/07/interact-w...

Re:Chrome 56 adds Web Bluetooth API by diodesign on Monday February 06, 2017 @01:36PM (#13582498)
Got it - hear you loud and clear. The article wasn't worded correctly. We've corrected the explanation and linked to the APIs directly (which we should have done from the start).

Yeah, we're a tabloid and, yes, we're rude. But at The Reg, we do take accuracy extremely seriously. We want to be right. If you spot anything wrong, [email protected] goes straight to our editors: it's a great way to get things fixed fast. Thanks.

Re:Chrome 56 adds Web Bluetooth API by GeneralMaximus on Tuesday February 07, 2017 @04:20AM (#13588184)
Thank you for fixing the error :)
Re:Chrome 56 adds Web Bluetooth API by homakov on Monday February 06, 2017 @04:07AM (#13577784)
It's a shame many people would make their opinions about Bluetooth API on such poor journalism as The Register offers. Zero credibility!
Re:Chrome 56 adds Web Bluetooth API by moonbug on Monday February 06, 2017 @06:46AM (#13578565)
Given it's the intersection of two such perennially dismal technologies, I'd say pessimism is justified.
Re:Chrome 56 adds Web Bluetooth API by pitaj on Monday February 06, 2017 @02:03AM (#13577203)
...that the user has to opt into by selecting a device in the popup, and not hitting cancel.
Re:Chrome 56 adds Web Bluetooth API by rasz_pl on Tuesday February 07, 2017 @01:05PM (#13591218)
sure, like plugins

oh wait, where did my plugins configuration go? why cant I disable plugins I dont want?

Re:Chrome 56 adds Web Bluetooth API by lm2s on Monday February 06, 2017 @03:28AM (#13577584)
You'd prefer that any website had full access to the Bluetooth stack and could see all your nearby devices?!
Re:Chrome 56 adds Web Bluetooth API by tehbeard on Monday February 06, 2017 @04:04AM (#13577766)
I think parent comment replied when the title on HN matched the article title (which called it "Bluetooth snitch API")
Re:Chrome 56 adds Web Bluetooth API by lm2s on Monday February 06, 2017 @09:45AM (#13579823)
Oh! Thanks!
Re:Chrome 56 adds Web Bluetooth API by 0x0 on Monday February 06, 2017 @03:32AM (#13577604)
This is annoying security-wise. Looks like a single click/touch/keydown event will allow javascript to start scanning for devices. Remember what happened the last time Chrome added support for odd hardware APIs? https://googleprojectzero.blogspot.no/2016/02/racing-midi-me...
Re:Chrome 56 adds Web Bluetooth API by pitaj on Monday February 06, 2017 @04:49PM (#13584480)
JavaScript doesn't scan. It opens a native modal for selecting a device. JS can provide filters, which are simply strings, they don't get any information about devices.
Re:Chrome 56 adds Web Bluetooth API by 0x0 on Monday February 06, 2017 @05:11PM (#13584737)
But the native modal obviously runs a whole lot of native code including calling into the bluetooth stack and starting the radio etc. Even just exposing a way to "start scan" could be enough to shake out 0days in the native OS bluetooth stack. I'd much rather have a way to disable chrome.app from even as much as loading the corebluetooth dylib.

Also, is scanning for devices a 100% passive receive-only operation, or would it be possible to design a custom beacon device that identifies hosts that try to scan the beacon?

Re:Chrome 56 adds Web Bluetooth API by pawadu on Monday February 06, 2017 @06:05AM (#13578400)
Chrome 87 will add the ability to control your hearth implant from the web. Because it then can order new batteries when you are browsing on amazon, and lets be honest what could possibly go wrong?

Now don't worry, it will be opt out. Your browser will loose the ability to download files altogether if you disable this but such is the price of being a tinfoil-hatter.

Re:Chrome 56 adds Web Bluetooth API by _pdp_ on Monday February 06, 2017 @05:17AM (#13578159)
Can you abuse this API? Maybe! It needs to be researched before making bombastic claims. From what I can tell the API is opt-in only and there is no way to enumerate all devices.

EDIT: One way to abuse the API (keep in mind that this is a documented risk in the spec) is in case of XSS accessing devices which are already granted permissions for. For example, if your health app has access to your heart rate monitor, an XSS vector will potentially have the power to pull this information straight from the device or abuse it in some other way if the device suffers from input validation problems. The former is not such a big deal because in case of XSS it is assumed that access to private information is granted. The later is slightly more interesting but you need scale to pull an interesting exploitation. It can be done but it is limited at present IMHO.

Re:Chrome 56 adds Web Bluetooth API by r721 on Monday February 06, 2017 @02:28AM (#13577320)
Re:Chrome 56 adds Web Bluetooth API by IshKebab on Monday February 06, 2017 @11:14AM (#13580809)
This was actually possible before using origin trials. I've used it and it works quite well. The security implications are more or less non-existent (despite what everyone claims).

The only problem is BLE on Android is still a hilariously buggy mess. Maybe they can rewrite the stack again...

Re:Chrome 56 adds Web Bluetooth API by digi_owl on Monday February 06, 2017 @05:54AM (#13578337)
Why do we keep trying to make web sites into a UI toolkit?!
Re:Chrome 56 adds Web Bluetooth API by fb03 on Monday February 06, 2017 @08:28AM (#13579193)
:( my face about the current state of computing and the whole 'app' re(de?)volution.

[!] You have a perfectly good computer running in front of you, with powerful hardware, geometry translation and audio rendering devices ready to be bent to your will.

[!] You have excellent (paid and free) tools and the Internet provides documentation on everything....

[?] Why shove more and more functionality into the browser, which can't even be considered a single proper 'platform' or 'target', since you have to account for several cross-browser/os combinations... In the end, we need frameworks which must patch and shoehorn lots of stuff in our actual code just to deal with cross-browser/os .

[..] In the end, we achieve better and better performance per cycle on one side and waste it more and more on the other. Of course, power efficiency and other important metrics on our increasingly mobile world go out of the window as well.

[.] We could be improving our tooling and languages to enable programmers to achieve good cross-compilation performance everywhere, and making most interfaces properly standard (opengl, communication stack) would make all this accessible and easy.

I leave you with two questions:

positive mindset: is this about lowering the entry bar to 'app' development?

negative (realist?) mindset: is this about vendor lock-in, hardware sales and consumerism?

Re:Chrome 56 adds Web Bluetooth API by pitaj on Monday February 06, 2017 @04:48PM (#13584471)
The browser is just easier. Accessing an app is as simple as entering a URL. The browser is more secure.
Re:Chrome 56 adds Web Bluetooth API by rasz_pl on Monday February 06, 2017 @08:50AM (#13579354)
because 20 year old 'developers' grew up with 3GHz laptop CPUs. Fast computers make stupid ideas, like python or ruby, sound ok for production.
Re:Chrome 56 adds Web Bluetooth API by mrsirduke on Monday February 06, 2017 @03:02AM (#13577464)
Obviously this can be used in a malicious manner, but is that not a problem of ui and not "let's not have the browser talk to Bluetooth devices at"?

Allowing every site access to quietly scan for devices would be pretty horrible, but that's not the case from my understanding.

Re:Chrome 56 adds Web Bluetooth API by dhaya on Monday February 06, 2017 @02:08AM (#13577226)
tl;dr: click-bait title. The ability to access Bluetooth peripherals is opt-in and requires an explicit user interaction.
Re:Chrome 56 adds Web Bluetooth API by lm2s on Monday February 06, 2017 @03:27AM (#13577575)
Why is it click-bait? It just says that support for the Bluetooth API was added. Why would anyone extract from that that there were no safeguards in place against abuse?!
Re:Chrome 56 adds Web Bluetooth API by saintfiends on Monday February 06, 2017 @03:43AM (#13577658)
The article title:

  Chrome 56 quietly added Bluetooth snitch API
  Trust us, says Google, we understand privacy
Re:Chrome 56 adds Web Bluetooth API by zafiro17 on Monday February 06, 2017 @10:53AM (#13580548)
I agree the fact that an explicit user interaction is required doesn't necessarily constitute a safeguard. How many times has my Android phone updated an app, which inexplicably now requires additional permissions. Formerly it only needed access to my media. Now it needs access to my phone logs, GPS, address book, etc. etc. Confirm? [Yes] [Cancel]. Like most users, I update the app every time. So when this Bluetooth system says "This web app needs access to your Bluetooth Home Thermostat system. [Accept] [Stop using App] people will more than likely press accept, and away we go.
Re:Chrome 56 adds Web Bluetooth API by joahua on Monday February 06, 2017 @03:30AM (#13577589)
Will admit my first thought was web fingerprinting opportunity…