7 ms·
Modifying Telegram's “People Nearby” feature to pinpoint people's homes
- bzb6 6y agoWhen an app asks for your location for the first time you can choose not to give an exact location. Doesn’t that fix this problem?
- BoumTAC 6y agoBy default you don't share your location with other. You have to activate it yourself in the setting.
- bzb6 6y agoWhat I mean is that when any app asks the user for the first time to grant geolocation privileges, the OS shows a dialog where you can choose not to share a precise location. If you use that they cannot triangulate you that easily.
- _flux 6y agoWhich OS? I think on Android such questions are only about energy preservation, e.g. low-resolution data can be provided via WiFi information, while more precise can require GPS. And if there happens to be more precise information available at the same time (e.g. you use Google Maps), then the app will receive that. I haven't seen such a dialog, though, so I'm uncertain if it reflects the regular Android location precision system.
- Terretta 6y agoiOS. Decent discussion with pic of dialog: https://9to5mac.com/2020/08/12/ios-14-precise-location/ https://9to5mac.com/2020/08/12/ios-14-precise-location/
- flyingfences 6y agoAndroid apps have to request [0] Location Permissions to access the device's location at all. There are different permissions for foreground and background access and for coarse and fine precision, but it does require some explicit permission no matter what. Now, the app's behavior when denied that permission (i.e., whether you will be allowed to use Tinder at all if you deny location permissions) are up to the developer. [0] https://developer.android.com/training/location/permissions https://developer.android.com/training/location/permissions
- est31 6y agoPrior discussion about the same subject (229 comments): https://news.ycombinator.com/item?id=25641399 https://news.ycombinator.com/item?id=25641399
- kawsper 6y agoIt's very interesting that you can use such a feature to triangulate a location, I never thought of that. I discovered a "secure" and "private" dating app, that just sent the location of the users directly through the API, and then it was up to the clients to do the calculation: http://kaspergrubbe.com/teazr-a-secure-dating-app-with-security-issues http://kaspergrubbe.com/teazr-a-secure-dating-app-with-secur...
- geek_at 6y agoyou're right, that _does_ look like a perfect location for a cozy couch
- fastball 6y agoTinder used to do that as well with location data. Also they used to send your raw birth date over the wire (in order to display your age to other users, calculated on the frontend) until I told them to stop.
- dylan604 6y ago>you can use such a feature to triangulate a location, I never thought of that. Of course this is exactly what people are going to do with that kind of feature. Sharing of location data is such an obvious thing to get exploited. It is part of the human base instinct is to take any new thing to the worst places it can go. There are certain aspects that the first question should be how can this get exploited for uses other than how we want to use it. If nobody in the room can come up with a way, then you need different people in the room.
- morpheuskafka 6y agoThe HelloTalk app works the same way. If a users chooses to share their location, it sends the raw GPS coordinates (afaik the only thing limiting them is the device's accuracy and if the user choose not to share "precise" location in iOS) to the server. Then, these get added to a sqlite database on the client and the way they get obscured is when you zoom in past a certain point on the map, their code turns off the dot that shows their position.
- lights0123 6y ago
- batch12 6y agoI wonder if the 100s issue can be addressed by spamming locations around the target and finding the center of the hole...
- coding123 6y agoI always felt that if I was going to provide a location that every time the query returns the result it would add randomness... but even then, with enough queries you'd be painting a circle over the user's actual location. So the real way to do this correctly is to lump people into the nearest intersection (like in the middle of a road intersection). And all queries related to that user would move them there. Then again, what about extremely rural people that have 1 intersection that pinpoints just them? There's no good way to return location data about other people.
- datfrojo 6y agoHere’s an interesting article on Tinder’s solution to this problem: https://robertheaton.com/2018/07/09/how-tinder-keeps-your-location-a-bit-private/ https://robertheaton.com/2018/07/09/how-tinder-keeps-your-lo...
- petre 6y agoIt can be easier. One could geohash the location with a certain precision, say 5 = ±2.4 km and only display people in that geohash and the neigbouring geohashes. https://en.m.wikipedia.org/wiki/Geohash https://en.m.wikipedia.org/wiki/Geohash
- deleted 6y ago[deleted]
- ericpauley 6y agoThe functional component of this technique is still just quantization (as in the parent). One might argue that this is actually more complicated.
- randyrand 6y agoThe article asks why they don’t just use grid snapping only. If you lived on a boundary it would be very clear because your location would change very often, perhaps just by walking to the kitchen.
- DevX101 6y agoTinder had a similar problem where you could triangulate a user's location to within 100 feet. https://techcrunch.com/2014/02/20/problem-in-tinder-dating-app-leaked-user-locations/ https://techcrunch.com/2014/02/20/problem-in-tinder-dating-a...
- flyingfences 6y agoI read an account a few years ago of somebody using this "feature" during a military training exercise to find the "enemy" camps and call in simulated "artillery" strikes. The people on the receiving end got hopping mad and couldn't figure out how he kept finding them so quickly.
- badwolf 6y agoSimilar account, but here's an article about Fitbit revealing soldiers/base information: https://www.washingtonpost.com/world/a-map-showing-the-users-of-fitness-devices-lets-the-world-see-where-us-soldiers-are-and-what-they-are-doing/2018/01/28/86915662-0441-11e8-aa61-f3391373867e_story.html https://www.washingtonpost.com/world/a-map-showing-the-users...
- brlewis 6y agoHi. I work for Fitbit, but don't speak for Fitbit. I am, however, curious about how people on HN talk about Fitbit, so I subscribe to HNWatcher alerts. Unfortunately, I only got an alert about this comment a week later. If I did officially speak for Fitbit, this reply would be more diplomatic. Personally, I'm losing patience with this lie being casually repeated so many times. If you would even bother to read the article you yourself linked to, you'd see that it was Strava that revealed this information, not Fitbit. Fitbit's role in the story was to display the "Are you sure?" message when soldiers explicitly chose to share their Fitbit data with Strava. There is no excuse for saying Fitbit did the revealing. If you were serious about privacy and security, you'd be careful about accusing the right party.
- andylynch 6y agoClever and fair game. A real opposing force would do the same given the chance.
- not2b 6y agoIf the author is here, they should look up geocaching tools; they will find programs that solve the trilateralization problem exactly using the same oblate spheroid model of the earth that GPS uses.
- tejado 6y agoI wrote few weeks ago a small app for this. So nearby users can be tracked anywhere. https://github.com/tejado/telegram-nearby-map https://github.com/tejado/telegram-nearby-map
- duxup 6y agoI wonder about the idea of providing a product and emphasizing security... and providing an option in it that undoes all that security. It seems like those are two incompatible / conflicting things.
- hughes 6y agoEven the author’s suggestion of “close”, “far”, “very far” would reveal enough information, even with noise being added, to more or less pinpoint someone’s location. Measuring the transition from “far” to “close” would give you a data point, and enough data points would let you model (and therefore subtract) any added noise. If your app really needs to have a feature like this, it needs to have aggressive rate limiting that makes it impossible to gather a statistically significant number of samples before someone changes their location.
- rtkwe 6y agoI'm not sure rate limiting is really an option to still make it useful. Most people are at the same place from more or less 9pm to 5-6am occasionally shifted for people doing late shift work but most people have a steady home so you could gather that data over many nights.
- hughes 6y agoDefinitely true. Although, if it took a month to gather the dozens of samples the author used in the article rather than minutes, a dedicated tracker would probably have more success using more traditional stakeout methods. And then, if you’re someone who is concerned about that kind of surveillance, you’re probably not someone who is sharing your location on an app like this.
- tzs 6y agoWould this work? 1. Overlay the world with a hex grid. 2. Make "close" mean in the same grid cell, "far" mean in an adjacent grid cell, and "very far" mean somewhere else. 3. In sparsely populated areas, merge groups of 7 cells into a larger cell. 4. Add some kind of random delay to people who are moving around to reduce the information you get if you are stationary and they cross a cell boundary. The idea here is that if you are not moving and they are "close" and then they change to "far", you would know that they just crossed one of your cell's boundaries. In many places there might only be a small number of places where people cross those boundaries, and so you'd be able to narrow them down quite a bit.
- ComodoHacker 6y ago>I believe that this is an exceptionally unneccessary feature for an app that prides itself with caring about their users' privacy. Does the author mean "for the sake of people's safety don't sell them kitchen knives"? This feature is intended for organizing outdoor events. And it proved itself quite useful, for example, during Hong Kong protests.
- pmontra 6y agoHow about replacing People Nearby with Friends Nearby where friends != contacts but a limited subset, maybe 10 so it's a list easy to keep control of, specifically enabled for this feature? You should offer a contact to track you and become (temporarily) a friend. The friend must agree to track you. Tracking is one way only. Unfriending somebody must be secret.
- hnarn 6y ago> One morning I woke up and found that Telegram implemented a new feature called “People Nearby”. If you choose to share your location publicly on Telegram, you’ll appear in a list for users who are physically close to you. As always, it feels like this "discovery", at least for the headline (which, let's be honest, it's what most people read anyway) is based on glancing over the fact that this feature is opt-in, and that 99,999% of Telegram users do not use it. There's nothing in the headline indicating whether this is a critical data leak or simply expected behavior. Sure, it definitely falls under unexpected usage of the data, but at the end of the day, the data was shared willfully through user action.
- folkrav 6y agoSecond paragraph : > If you’ve never heard of this feature and you suddenly feel the urge to delete your Telegram account forever, let me stress something very important: “People Nearby” is opt-in. By default, no one can see how far away you are on Telegram. You’ll only ever end up in other people’s lists by pressing the “Make Myself Visible” button. If you choose to try it out, remember to disable it once you’re done.
- eqtn 6y agoIf you have "Last Seen & Online" set to "My Contacts", then those people will see you in People nearby even if "Make Myself Visible" is turned off
- hnarn 6y agoDo you have a source for this claim? I don’t find this exception documented.
- eqtn 6y agoI don't know why i am being downvoted. I tested then and i also have test now. I thought this was the expected behavior. It shows me(who is in their contact list and on completely different network) as online 100m away
- spullara 6y agoIf only Fire Eagle had caught on. It's quantization method is much stronger than the way Telegram works. https://en.wikipedia.org/wiki/Fire_Eagle https://en.wikipedia.org/wiki/Fire_Eagle
- Animats 6y agoThen release the drones and target the user.
- war1025 6y ago> pinpoint people's homes In the context of a city, I guess it makes sense that this is fairly anonymous. In my moderately more rural part of the world, where owning a home is much more common, a person's house is part of the public record, and very easy to look up. Granted that doesn't work for people renting, but the number of people renting instead of owning drops pretty dramatically once you start looking at demographics older than 25-30 around here.
- babesh 6y agoI wonder if this would work. Divide up the world into a grid. Once you have the cell associated with your GPS location, randomly pick a nearby cell. Stick with this mapping from cell to cell forever and keep this mapping only on the phone. Don’t send GPS coordinates. Send the cell instead. Have the server define nearness by cell nearness. The server should never send cells to other users, just their nearness. This way, your actual location as fuzzy as how randomly you pick cells and the size of cells. You are also introducing a skew that the other party cannot compensate for. It’s your secret and by not repeatedly recalculating it, you aren’t vulnerable to the other party calculating the mean cell. So if each cell is say 1 mile across and you pick randomly from say a 3 by 3 grid around your cell, then your location can only be localized to within a 3x3 mile square. The tradeoff is that near isn’t so near but the tradeoff can at least be tuned by cell randomness and nearness. If you want to be more private, pick randomly from a larger number of nearby cells. If you want to know more people, widen the circle that you define to be near. Most people probably want defaults. One difficulty may be when there are cells that are less likely to be populated. It may make sense to chop up the world into varying size cells based on a combination of area and population density.
- filoleg 6y agoWow, this is quite a throwback, because that's almost the exact same way of triangulating a location that me and a few of my classmates discovered in regards to Tinder around 6-7 years ago (which got patched up shortly after). Just a note, it was done purely out of academic interest and was not ever used in any capacity other than just finding out that it was possible. Basically, Tinder used to give you only the distance to a user in the UI, but the exact coordinate location of the user in their API responses. They patched it up and made it so that it only returns the distance in the API as well. And that's when it became really similar to the current Telegram situation. This was before we got our hands on this. However, reading older articles and blog posts about those "times before us" was what gave us the idea. Mostly because it seemed like their fix was not sufficient enough to prevent anyone (assuming they know basic trigonometry) from pinpointing the location just as easily, but with a few extra steps added. Knowing the distance between you and another user, you could quickly spoof your GPS location to 3 different coordinates that would create 3 circles all intersecting in one small area. You could easily pick coordinates for those circle centers based on the change in distance to the user, so if you picked a bad coordinate for one of the circles, you can adjust and pick a better one based on the feedback you got. E.g., if the first circle center coordinate was 1 mile away, but the second one was 5 miles away, and the third one was even further away, you should probably try re-picking the 2nd and 3rd circle better, since the goal is to not move those far away, but to have them have a similar distance to the user location, just from different directions. Shortly after, Tinder fixed it in a much smarter way. Instead of assigning each user to a precise location and reporting a distance to them in the API response, they would break up the map into a grid of roughly 1mile by 1mile squares (or maybe hexes or maybe slightly different size? I am very rusty on the actual details of their fix, but the principle is still the same), and then assign each user to one of those squares. So the API would instead give you the distance between the center of the square you are assigned to and the center of their square. AFAIK, that last approach they used to solve the issue is still unbeaten, and it makes sense as to why, since it is logically pretty robust at its core (plus/minus minor optimizations and improvements, of course).
- JumpCrisscross 6y ago> Tinder used to give you only the distance to a user in the UI, but the exact coordinate location of the user in their API responses Wasn’t there another one that just sent out coordinates and left the distance finding to the client?