Live data from Hacker News

Telegram publishes users' locations online

blog.ahmed.nyc

81–90 of 241 posts

Re: Telegram publishes users' locations online

#81
post #25
post #18

so i know some people around me who are using telegram and very likely most of them did not change anything about their privacy settings as usual. However, i do not see any of them in the list and it even shows me users some 10km away. When viewing this list on the top it has a button to make yourself visible so i assume if you don't do it voluntarily its not broadcasted at all which appears to be a non issue then, l…

Yeah its very much opt in so Im not sure what the real issue is apart from being somewhat granular. How granular telegram makes it is the question. From the article the way they asked didn't sound like it was "do you live at 123 something st" but instead are you by, which even if you were a few blocks off someone might say yes. For all we know Telegram is doing some rounding. Gonna need to test some more to see I gue…

If they don't want to fix this issue (maybe they find it's advantageous to let benign users find each other precisely), some kind of warning when you opt-in like "Warning: By enabling this setting, anyone around the world may be able to determine your location, such as your home address, even if they live in a different region or country." would be nice.

Not sure of the best way to word it, but making it clear that someone in a different continent may be able to see your location and address would at least make the full implications clear. Most users probably assume the risk is limited to people in their city (or a smaller area within it) seeing their location, and also may not necessarily be thinking about the address disclosure (even if that's arguably already obvious to some).

Re: Telegram publishes users' locations online

#82
post #55
post #6

>[Line] fixed it by adding a random number to the user's destination This is a imperfect solution. There's two possibilities: the offset (aka "random number") is dynamic, or it's fixed. If it's the former all you have to do is sample enough times to get through the noise. If it's the latter, it's not vulnerable to the previous attack, but if you have a known point of reference (so you can deduce what the offset is),…

Map cells are the best solution available for 90% of locations, but they don't help with the 10% that's close to map borders. If an user randomly jumps between two map cells you know they live at the boundary. Generally there is often noise in GPS signals so it's likely that person will jump around. Furthermore, if a person uses multiple services, and each service has its own cell layout, you can check all services a…

I'm just spitballing here, but couldn't this be resolved by using coarse sampling and a moving average? As in infrequently sampling locations. I guess you could get fancier and adjust this with the speed at which the user is moving. I'd also imagine that just using low precision GPS would help add ambiguity so a person can't be exactly located. Of course, there's a relevant xkcd[0]. In the "neighborhood" seems like the most precision you'd want for something like this (of course you could expose this to the user), but I'm also not even interested in this feature so there's a bias.

[0] https://xkcd.com/2170/

Re: Telegram publishes users' locations online

#83
post #6

>[Line] fixed it by adding a random number to the user's destination This is a imperfect solution. There's two possibilities: the offset (aka "random number") is dynamic, or it's fixed. If it's the former all you have to do is sample enough times to get through the noise. If it's the latter, it's not vulnerable to the previous attack, but if you have a known point of reference (so you can deduce what the offset is),…

Would showing something like “5 mins away“ instead of “800 m” be a simple solution?

Isn't this the same thing? The problem I see in the telegram screenshot is it says the first user is 863 meters away. Even 10m is fairly revealing and if you're max range is 7mi, 1m is extremely precise. Though this seems like programmers using the maximum precision they have but not necessarily the maximum meaningful precision (an all too common event).

Re: Telegram publishes users' locations online

#84
post #6

>[Line] fixed it by adding a random number to the user's destination This is a imperfect solution. There's two possibilities: the offset (aka "random number") is dynamic, or it's fixed. If it's the former all you have to do is sample enough times to get through the noise. If it's the latter, it's not vulnerable to the previous attack, but if you have a known point of reference (so you can deduce what the offset is),…

Personally my preferred approach would be to bucket users into names of countries and states and just publish that as a string. Less vulnerable to sampling, triangulation, and other attacks.

Re: Telegram publishes users' locations online

#85
post #41

It's a shame that people still use Telegram when Signal is so much better, and has better credentials all around.

Signal is terrible. I use the app still, but it’s horribly buggy. The disappearing messages, a hallmark feature, is fundamentally broken in some way that I can’t fully comprehend. Totally unreliable. Telegram is better in every way... except security.

I'm curious as toileting what you see as "horribly buggy" and what brokenness you see in disappearing messages?

I use Signal on iOS, and it's pretty much flawless. Extremely rare for me to even hear friends (many of which I communicate with using Signal) talking about problems, I vaguely recall having something go wrong a long time back, but can't even recall what it was now, only that it went away and started working properly fairly quickly/easily.

(I disagree with Moxie's choice to use real phone numbers as an underlying hard requirements, and also with the choice to notify people when other people from their contact lists start using Signal - but I understand why he made those choices (to piggyback pre existing social graphs) and respect how he implanted it without needing to grab my contact list and have it vulnerable on their servers...)

Re: Telegram publishes users' locations online

#86
post #33
post #4

Hmm...So I have Telegram installed via F-Droid (so presumably without Google Play Services). I do NOT have the "People Nearby" feature. I am curious if that means my location is not published?

I can't find the feature at the described location either, but apparently if you go to contacts there is a "find people nearby" button. If I click it it asks me to share the location, which I have disabled. So I guess I'm safe? It's mentioned in this changelog item: https://github.com/Telegram-FOSS-Team/Telegram-FOSS/blob/847... It usually takes some time for Telegram to be published on F-Droid, so the newest version…

This has been a feature in Telegram since at least March 2020 when I first used it.

Re: Telegram publishes users' locations online

#87
post #23
post #6

>[Line] fixed it by adding a random number to the user's destination This is a imperfect solution. There's two possibilities: the offset (aka "random number") is dynamic, or it's fixed. If it's the former all you have to do is sample enough times to get through the noise. If it's the latter, it's not vulnerable to the previous attack, but if you have a known point of reference (so you can deduce what the offset is),…

If it's a fixed offset for a particular person, then isn't that just another variable in a simultaneous equation? You'd just need one more sample to solve for it.

With a fixed offset, a person who walks around outside and makes at least a few turns could easily have their fixed-offset location trace template-matched to OSM or other street data to determine the offset. (If you live in NYC it might take slightly longer.)

Re: Telegram publishes users' locations online

#88
post #8

The ability to find user locations via triangulation is overlooked in a lot of products - it's easy to not think twice when showing a user the distance between themselves and someone else. In my own products I fix this by aggressively rounding/adding noise before the distance calculation is performed, and then rounding again afterwards, or quantizing into ranges (e.g. '0-10 miles'). Other solutions can be storing loc…

Quantizing is much safer. Adding random noise is useless because one can just average multiple samples.

If you want to be extra safe, quantize the user's lat/lon before computing the distance, and then quantize the distance again.

(Quantizing only the distance can theoretically allow an attacker to travel in one direction until they see the transition from one bucket to the other which would tell them exactly when they are precisely 10 miles from the target.)

Re: Telegram publishes users' locations online

#89
post #55
post #6

>[Line] fixed it by adding a random number to the user's destination This is a imperfect solution. There's two possibilities: the offset (aka "random number") is dynamic, or it's fixed. If it's the former all you have to do is sample enough times to get through the noise. If it's the latter, it's not vulnerable to the previous attack, but if you have a known point of reference (so you can deduce what the offset is),…

Map cells are the best solution available for 90% of locations, but they don't help with the 10% that's close to map borders. If an user randomly jumps between two map cells you know they live at the boundary. Generally there is often noise in GPS signals so it's likely that person will jump around. Furthermore, if a person uses multiple services, and each service has its own cell layout, you can check all services a…

Maybe overlapping regions would be a fix?

Re: Telegram publishes users' locations online

#90

Earlier quoted context omitted.

Like... Facebook can read all your messages? The encryption only protects you from entities that are not Facebook. With that out of the door, it's not really worth it to even consider other angles of attack, since you now depend on the goodwill of a billion dollar company whose sole purpose and reason for existence is to extract and monetize your data. WhatsApp is a nice chat tool, but it's nothing you should ever us…

that's incorrect. WhatsApp is end to end encrypted using the signal technology as confirmed by moxie. are you suggesting Facebook tricked the signal team into believing that WhatsApp is using end to end encryption when it isn't? a source: https://signal.org/blog/there-is-no-whatsapp-backdoor/

Honest question, then: outside of things like ethical concerns about supporting Facebook, and some missing features like enabling a passphrase to open the app, why should anyone use Signal over WhatsApp? Given that WhatsApp has a better UI/UX and that the people you want to talk to are much more likely to have it, and it supports some things that Signal is known for like disappearing messages (though limited to 7 day expiry).

I love Signal and all the work Moxie and his team have put into it and the protocol, so this isn't a diss to them, but just wondering what the disadvantages would be for someone just looking for an E2EE communication app.

One difference I suppose would be that Facebook would have all the message metadata; just not the contents.

Post reply on HN