News for hackers. Stuff that matters.
Re:Chrome's geolocation fails daily due to API limit by Flammy on Tuesday August 08, 2017 @09:28PM (#14964768)
Heh, so Google's own projects run into Google rate limits too.
Re:Chrome's geolocation fails daily due to API limit by Scaevolus on Wednesday August 09, 2017 @01:57AM (#14965908)
Rate limits are how services prevent even legitimate clients from accidentally destroying them!
Re:Chrome's geolocation fails daily due to API limit by blaisio on Wednesday August 09, 2017 @02:18AM (#14965999)
It's pretty weird in this case.

Google serves web pages and adds rate limits to keep people from taking their servers down (or, at least, from making them use way more servers than normal, which would make providing the services too expensive, which would force them to take the servers down). If their servers go down, then users can no longer use their web pages properly. But, here we see the rate limiting is itself keeping users from using web pages properly. So the rate limiting is effectively disabling services even though the whole point of the rate limit is to protect them!

I wonder if there are other feedback loops in Chrome where, in order to be able to keep serving web pages, Google could sometimes accidentally prevent Chrome users from viewing web pages?

Re:Chrome's geolocation fails daily due to API limit by londons_explore on Wednesday August 09, 2017 @08:20AM (#14967829)
The API key built into Chrome isn't exactly super secure - anyone can reverse engineer the binary to extract it.

One might imagine that an evil user has done exactly that, and started sending billions of requests to the API, exhausting the quota.

It is better to have the quota exhaust, effectively blocking all Chrome users, than have the service fail due to overload which would block all users (for example, maps.google.com, and iOS and Android)

The long term fix is probably to issue temporary per-user keys to each signed in user, so that anyone who misuses the key will only block themselves. Since Chrome allows non-signed in users, there will be considerable complexity and difficulty with that approach.

Re:Chrome's geolocation fails daily due to API limit by mseebach on Wednesday August 09, 2017 @05:20AM (#14966855)
This is not a feedback loop, nor is it representative of any kind of systemic failure. The geocoding API is an external dependency, and in implementing their integration of this dependency, the Chromium developers failed to respect the contract of the dependency, specifically to secure a sufficiently large quota, and this resulted in a bug.

This is amusing and all because it comes from the same company, but Google is a huge company, and it's unlikely that the Chromium team's relationship with the geolocation API team is that much different than any other enterprise customers'.

Re:Chrome's geolocation fails daily due to API limit by zspitzer on Wednesday August 09, 2017 @02:28AM (#14966048)
I've been told this has been addressed.

If you want to test POSITION_UNAVAILABLE, IE 11 always fails after the first request.

For anyone interested, the location emulation in Chrome Dev Tools is also buggy, Chrome also fires two callbacks on failure, TIMEOUT and POSITION_UNAVAILABLE https://bugs.chromium.org/p/chromium/issues/detail?id=542923

Re:Chrome's geolocation fails daily due to API limit by ncr100 on Wednesday August 09, 2017 @02:17PM (#14972078)
Comment 9 by [email protected], Today (33 minutes ago) Status: Started Thank you for reporting. We have adjusted API limits that should ease this immediately. Our monitoring is clearly not sufficient and we will follow up with process improvements to avoid this recurring.
Re:Chrome's geolocation fails daily due to API limit by gondo on Tuesday August 08, 2017 @11:13PM (#14965226)
does this mean that technically (not legally) one can extract API credentials form chromium/chrome and use them in other project?
Re:Chrome's geolocation fails daily due to API limit by TorKlingberg on Wednesday August 09, 2017 @06:11AM (#14967106)
Lots of mobile apps ship with API credentials in the binary. The whole thing runs on the honour system basically.
Re:Chrome's geolocation fails daily due to API limit by KekDemaga on Tuesday August 08, 2017 @11:21PM (#14965279)
You can do that for practically any API you can imagine if you are creative enough.
Re:Chrome's geolocation fails daily due to API limit by jpatokal on Wednesday August 09, 2017 @01:17AM (#14965739)
You can apply on server-side restrictions on Google API keys:

https://developers.google.com/maps/documentation/javascript/...

https://developers.google.com/maps/faq#keysystem

The most secure approach is to get a premium plan with a cryptographic key and sign your requests serverside. This is complicated/not feasible for some APIs and client-side applications though.

Disclaimer: Googler, used to work on Google Maps, nothing to do with Chrome.

Re:Chrome's geolocation fails daily due to API limit by ec109685 on Wednesday August 09, 2017 @10:31AM (#14969284)
That still doesn't really protect the underlying API from abuse because the intermediate server could be abused by someone who stole that intermediate server's API Key from the app. The benefit is that folks wouldn't have full access to the underlying API, but it may be enough depending on the evil doers purposes.
Re:Chrome's geolocation fails daily due to API limit by gondo on Wednesday August 09, 2017 @01:13AM (#14965723)
i don't understand what do you mean. how can i do that? f.e. how would i do that with AWS API?

the thing with chromium is: it is open source (you can find the credentials), it is meant to be used on any computer via any IP (you can't whitelist API requests)

Re:Chrome's geolocation fails daily due to API limit by ktta on Wednesday August 09, 2017 @02:24AM (#14966026)
>the thing with chromium is: it is open source (you can find the credentials)

No, you have to get your own API keys via Google Cloud API Manager before building chromium. That's the reason why Chromium on Windows doesn't let you log in.

I presume Chromium on linux distros will use an API key of the package maintainer.

Also, in most closed source binaries (which chrome is a part because it has binary blobs not present in Chromium - see Google Cast, etc) you will have to sign a EULA where you agree to no disassemble and use that API key, so doing so is illegal too.

Re:Chrome's geolocation fails daily due to API limit by Gaelan on Wednesday August 09, 2017 @02:24AM (#14966028)
Chromium != chrome. It doesn’t add much security, but I bet the API keys are added as part of whatever process google uses to build chrome from the chromium source
Re:Chrome's geolocation fails daily due to API limit by spaniard_dev on Wednesday August 09, 2017 @08:22AM (#14967849)
I'm almost sure this also happens with the translation API. Some days when I try to translate websites I get 403 errors and I have to wait for some time until I can use the feature again.
Re:Chrome's geolocation fails daily due to API limit by xpaulbettsx on Tuesday August 08, 2017 @09:42PM (#14964832)
Re:Chrome's geolocation fails daily due to API limit by wehere1 on Tuesday August 08, 2017 @09:45PM (#14964849)
you posted this in the chromium thread too and ... it's not relevant
Re:Chrome's geolocation fails daily due to API limit by berg43w2t3t on Wednesday August 09, 2017 @12:53AM (#14965644)
I think it might be relevant, this seems to indicate that google is hardcoding their API keys in the shipped chrome binaries. These exceeded, and broke functionality in the app. This seems like a bad security practice and it is very relevant to call it out here.
Re:Chrome's geolocation fails daily due to API limit by NateyJay on Wednesday August 09, 2017 @01:16AM (#14965734)
There's really no practical alternative but to ship binaries with baked in API keys.

Maybe you dynamically provision API keys, but the binary needs a baked in permission to access that API to start with...

Re:Chrome's geolocation fails daily due to API limit by captn3m0 on Wednesday August 09, 2017 @01:37AM (#14965820)
so every release goes out with its own API key?
Re:Chrome's geolocation fails daily due to API limit by dbbk on Wednesday August 09, 2017 @06:50AM (#14967308)
Well, they're obviously going to have to hardcode something into the binary, I think you're imagining an issue that doesn't exist.
Re:Chrome's geolocation fails daily due to API limit by mastax on Wednesday August 09, 2017 @12:47AM (#14965623)
Interesting... if you make a chromium derivative, you need to pay for user's google API access. Or replace them with something else.
Re:Chrome's geolocation fails daily due to API limit by cpeterso on Wednesday August 09, 2017 @03:55AM (#14966412)
You can use Mozilla's free geolocation service based on crowd-sourced location data for hundreds of millions of Wi-Fi access points, cell towers, and Bluetooth beacons. The website has a zoomable world map of network location coverage:

https://location.services.mozilla.com/map

Re:Chrome's geolocation fails daily due to API limit by ktta on Wednesday August 09, 2017 @02:26AM (#14966042)
Or 'reverse engineer' it to make your own server side software.