Live data from Hacker News

How I Could Have Hacked Any Instagram Account

thezerohack.com

81–90 of 138 posts

Re: How I Could Have Hacked Any Instagram Account

#81

Is this reset mechanism conceptually flawed? Even with one attempt before invalidating the code, you have a 1:999,999 shot of stealing someone's account by lotto. Not bad odds for an automated process. It's like every account on Instagram has an alternative six digit password.

a 6 digit password that is only valid for 10 minutes

Re: How I Could Have Hacked Any Instagram Account

#82
post #46

Using a phone number for password reset seems like a terrible idea in general, especially if you have SMS-based 2FA. Phone numbers are way to easy to social engineer, and if your second factor can reset your first one, you don't have 2FA. Also if I am reading it correctly, it sounds like the rate limiting was being done per-IP, which sounds strange. Why wouldn't Instagram just allow a fixed number of tries (some low…

Also for people who don't have mobile phone signal at home (hello us), it's almost impossible to use these 2FA systems. There are a few systems including the UK government's own "Verify" scheme for submitting tax returns that I quite literally cannot use. Not that mobile phone 2FA is actually secure. Fraudsters in the UK have discovered that it's possible to take over phone numbers rather easily because that relies o…

A lot of carriers support wifi calling. You should see if yours done and turn it on.

Re: How I Could Have Hacked Any Instagram Account

#84

Why do they not lock the account after n number of tries say 5? The user will need to use a different way to authenticate if they can't enter the correct code in 5 tries

It gets tricky to implement lockouts, so the next article very well could be "How I DOSed all of Instagram"

[Obvisouly, there are ways just easy to screw up]

Re: How I Could Have Hacked Any Instagram Account

#85
Seems like a lot of improvements could have been made here. After you get the code wrong, it should reset and send you a different code. If you get more than 3 wrong in some pre-determined time, it should lock the person out for some other pre-determined time. You could even use exponential backoff time in both scenarios. Keeping the code the same after getting it wrong just seems really stupid.

Re: How I Could Have Hacked Any Instagram Account

#86
post #37
post #34

Earlier quoted context omitted.

> Why wouldn't Instagram just allow a fixed number of tries (some low limit, like 25) from any IP before invalidating the code? This could makes it very easy to perform a DOS attack against a user. You could constantly send failed attempts and make it impossible for the user to type in the real code before you invalidate it.

Add a captcha then.

Still not hard to manually DOS. And to do it at scale you only have to pay 2.5 cents per invalidation.

Re: How I Could Have Hacked Any Instagram Account

#87
post #78
post #75

Earlier quoted context omitted.

You probably get access to at least one of them, not definitely

There is a 36.7%(or ~1/e) chance that you don't get any of them.

In case anyone is wondering that can also be derived like in the birthday problem - (999999/1e6)^1e6 .. which is not 0 but 0.36787

Re: How I Could Have Hacked Any Instagram Account

#88
post #51

Earlier quoted context omitted.

He didn't really explain it, but I think what was going on is the rate limiting is done per account, and the race condition was a way to circumvent that. He has to make all the requests very quickly because the first thing all the requests are doing is determining if new requests for this account should be ignored. All the requests are received around the same time, they all make this check and decide they are valid…

I think you are dead on, yeah it’s the quick rate of large numbers of requests that avoid the per-account rate limiting. Curious how they resolved this— run all authentication requests for a given user serially and in a consolidated fashion at some point. Exclusive lock the relevant db record before checking the code and recording the failure?

You could pipe the requests into a FIFO without back pressure so excessive requests are dropped by default.

Re: How I Could Have Hacked Any Instagram Account

#89

Earlier quoted context omitted.

I have turned off phone 2FA on all services that permit me to do so after getting hacked by someone using that exploit. Typically I use Google 2FA via Authy or Authy itself

you should be aware that Authy can by default be taken over with just your sim card. I believe with the right settings you can disable this behaviour

Yes, you have to disable “multiple devices”. You just have to remember to re-enable it if you want to install Authy on a new phone and reinstall from backup.

Re: How I Could Have Hacked Any Instagram Account

#90
post #43

I quite recently learnt about “Residential proxies”, for a scraping idea I had. Seems like that can be useful for attacks like this. It’s surprisingly cheap to get access to services which fan out your requests over millions of normal residential IPs, making them (I assume) hard to block. Of course their use can be highly objectionable, as well as how they got the proxies installed in homes of people in the first pla…

This has to be provided by a botnet or some other malware, right? They claim 30M residential IP addresses.. How would this be done otherwise? There's no info on the site about "signing up" to be a proxy, just about using them..

I believe "Hola VPN" did something similar as a browser extension. (You join our free VPN, you act as a node in our commercial residential IP pool (botnet).)
Post reply on HN