Re:Google Docs Users Targeted by Phishing Scam
by johns on Friday March 14, 2014 @02:54PM
(#7400965)
If they use CSRF tokens, this wouldn't be possible.
[ Parent
| on HN ]
Re:Google Docs Users Targeted by Phishing Scam
by rabbidruster on Friday March 14, 2014 @03:02PM
(#7401017)
I don't see how CSRF tokens apply here. They can login as you on another machine.
Re:Google Docs Users Targeted by Phishing Scam
by hahainternet on Friday March 14, 2014 @03:47PM
(#7401306)
You did not read the parent comment. They cannot (or should not) be able to forward the login to Google's real form and trigger SMS 2FA because the real form should be protected by CSRF tokens.
No, CSRF isn't relevant. I'm an attacker and I have a server that's pretending to be a Google login form. I also have a client computer with a scripted browser pretending to be someone trying to login to Google. When you come to my page and login, I steal your data and immediately have my client program use it to login. If Google asks my client browser for a 2FA code, behind the scenes I forward that request to you and then when you answer, I forward the answer back to Google. From what Google can see, it just looks like someone logging in from a new computer.
None of this has anything to do with cross-site scripting. It's a MITM attack. CSRF doesn't come into play.
Re:Google Docs Users Targeted by Phishing Scam
by ntakasaki on Friday March 14, 2014 @04:51PM
(#7401774)
That's not what CSRF protects against and neither is it meant to. CSRF happens when you try to submit a form hosted on your site to a target site that the user has already authenticated to.
Here, the real form can be accessed from the attacker's browser, not the victim's, hence the attacker knows the CSRF tokens. CSRF doesn't protect against phishing.
Re:Google Docs Users Targeted by Phishing Scam
by ianhawes on Friday March 14, 2014 @03:51PM
(#7401331)
I think the parent is theorizing that they could emulate someone logging in through their own headless browser to see if the credentials are valid, then if they are and the account has 2FA, they could trigger the SMS.