4 ms·
Why would a yubikey prevent this? They can still send the 2FA code to Google to start your session...
by acchow 10y ago
Why would a yubikey prevent this? They can still send the 2FA code to Google to start your session...
- jamescrowley 10y agoIt's a different protocol. Not an expert but as I understand it U2F isn't totally out of band - the browser communicates the URL so the token you give wouldn't be accepted by Google when it is replayed
- jamescrowley 10y ago@extrapickles describes it better further down: https://news.ycombinator.com/item?id=13376402 https://news.ycombinator.com/item?id=13376402
- jlebar 10y agoNo, they cannot with the U2F protocol (as implemented by yubikey). The simplified version is, Google sends the browser a one-time key, which the browser forwards to the HW token to sign with its private key. Then the browser sends this back to the web server to verify, using its copy of the HW token's public key. This would be vulnerable to MITM attacks, as you say. So what the protocol actually does is concatenate the nonce sent by the web server with the origin of the web page as seen by the browser and have the HW token sign that. This way the server can verify that the HW token signed the right nonce for the right origin. See https://docs.google.com/document/d/1SjCwdrFbVPG1tYavO5RsSD1QpJwj8_im6sl-VWjJ6k0/edit https://docs.google.com/document/d/1SjCwdrFbVPG1tYavO5RsSD1Q..., search for "origin".
- acchow 10y agoOh I think I've never used this feature with my Yubikey - it's just been essentially an external keyboard that types rather quickly.
- AlexCoventry 10y agoIt's only available on newer yubikeys.