5 ms·
Looks like this is the "To match users to their friends by phone number, you need an API which can take as input a phone number, and return information about if
by londons_explore 6y ago
Looks like this is the "To match users to their friends by phone number, you need an API which can take as input a phone number, and return information about if that number has an associated account" problem.
There is no way to let a user find their friends on a service without such an API. Yet if you have such an API, someone can simply brute force all phone numbers worldwide (there are only 10^10), and now they have a database of all users...
Rate limits can help defend, but considering many users might have 1000 phone numbers in their address book, you can't set the rate limit very low without impacting user experience. Attackers can reduce the search space dramatically by only checking phone numbers that resolve to an active line (using VoIP stuff to test a number).
The only real solution is for your app not to have a "Here is a list of your friends already in the app" screen... But as you can imagine that means you won't get any user growth or VC funding...
- Scoundreller 6y agoAnd now you know how those cell phone farming programs were able to pay people a couple bucks a month to run crap on arrays of dozens of phones.
- amluto 6y agoThis is the same fallacy that leads to apps asking for permission to access your whole picture library. Facebook could have an API by which an app can prompt its user to show a list of all of that user’s friends who have the app installed. The app would only learn the identities of people whom the user explicitly selects, and phone numbers would not be part of that identity.
- progval 6y agoIt works for photos because the threat model is about protecting local files against malicious apps. But for phone numbers, you about protecting Facebook API (which is publicly available via the internet) against arbitrary devices, which Facebook has no way to tell from legitimate ones
- amluto 6y agoWhat I mean is: Facebook should remove that API entirely. Apps do not need a way to look up a phone number in Facebook’s database. The “find my friends using this app” feature does not require this capability.
- progval 6y agoWhat you are proposing is that third-party apps should ask Facebook's app to find the friends, right? But Facebook's app needs to access Facebook's database somehow; and anyone can impersonate Facebook's app and query that database too.
- varispeed 6y agoI think it should be illegal for apps to help find friends. If you genuinely meet someone offline, then they could generate you a token that then you could enter on the site to "connect".
- amluto 6y agoFacebook’s phone app does not need to access the database. The whole thing could be implemented on the backend.
- progval 6y agoThis is what I meant. Replace "database" with "backend" in my previous message and it still stands.
- noxer 6y agoTelegram had this issue too and they made a setting "who can find me by my number" you set it to "my contacts" so only mutual contacts can find each other.
- noobquestion81 6y agoThis is a genius fix because in order to enforce your own privacy you must betray the privacy of n+ friends. Awesome.
- noxer 6y agoI think you misunderstood that. This setting isn't about privacy of your friends number its about who can find you with your number. For example by brute-forcing numbers. Whether you upload your address book or not is another story and it does ask if you want to do that. Obvious if you decline and then set to above setting to "my contacts" then no one will be able to find you by your number (which is exactly what I personally want) There is absolutely no need to upload your address book to make you number unsearchable.
- Someone 6y agoI think there are way more than 10^10 phone numbers in the world. I think there are 10^10 combinations in the USA alone (filtering by unused area code, etc will decrease that number, but even then https://www.ck12.org/c/probability/permutation/rwa/Wrong-Number/ https://www.ck12.org/c/probability/permutation/rwa/Wrong-Num... says almost 8×10⁹ remain) Also, at least some countries have longer phone numbers (Germany, the UK and China have 11-digit ones, for example), and the international public telecommunication numbering plan says plan-conforming numbers are limited to a maximum of 15 digits, excluding the international call prefix (https://en.wikipedia.org/wiki/E.164 https://en.wikipedia.org/wiki/E.164), so the search space, potentially, is a lot larger.
- Scoundreller 6y ago> I think there are 10^10 combinations in the USA alone Canada and USA share the same numbering plan and that's sometimes overlooked. I always "press 1" to interact with the 'your social has been criminally suspended blah blah' or 'card-services' robo-calls. When I have time I share circular stories about my grand-kids that don't visit me anymore, but when I don't, I just respond in French with something like "Je pense vous etes une pamplemousse." Most recently, one responded with "NO HABLOS ESPANOL". lordy lordy...