5 ms·
I'd always thought that the application specific passwords would allow for a loophole, although I hadn't come up with a mechanism. Surely the fix from Google w
by rkangel 14y ago
I'd always thought that the application specific passwords would allow for a loophole, although I hadn't come up with a mechanism.
Surely the fix from Google would be pretty simple? Just make sure that any and all access to the 'Two Factor Authentication Settings' page required a two factor token.
I thought it already did, but I've just tried it and the OP is right, you just need a password.
- Piskvorrr 14y agoIf the attacker is SSLstripping the connection, two-factor auth wouldn't help much - the attacker is already between the user and Google, and could present the (second) two-factor prompt for accessing the settings page e.g. as a "login failed" page.
- rkangel 14y agoYes, you could MITM the attempt to load the settings page, but it would require Alice to be attempting to load the settings page. This is a MUCH rarer activity than just opening her inbox.
- JackC 14y agoI think Piskvorr is saying that you could trick Alice into entering the code for the settings page from her email inbox. Once Bob visits the settings page and gets to the two-factor prompt, he pops up a javascript box in Alice's gmail inbox like "Oops, something went wrong with your authentication. You have been sent a new code to enter here: [ ]" Alice says "WTF Google?" and enters the second code, and Bob grabs the code and uses it to access settings. But even if we assume that Alice is totally hosed once Bob completes a MITM attack, I think you're right that there needs to be two-factor auth to create an app-specific password. It wouldn't protect from MITM, but it would protect from watching over Alice's shoulder, keyloggers, and all sorts of other ways that Bob might get Alice's password without being MITM. (Edit: Google does require two-factor auth to access www.google.com/account and generate new app-specific passwords, doesn't it? I thought it didn't when I first tried, but that's just because I've already authorized this computer. If that's the case, then I'm inclined to believe that Google has done all it can do. If an attacker controls your secure communications with Google's server, you are out of luck period. If an attacker only has your password, then two-factor auth will keep them out of your email like it's supposed to.)
- Piskvorrr 14y agoYup, just what I was trying to say. Thank you for laying it out in greater detail and more clearly than I've managed.
- deleted 14y ago[deleted]