kryptco / kr-u2f

DEPRECATED A Browser extension that lets you use your phone as a U2F/WebAuthN Authenticator for strong, unphishable 2FA.
https://krypt.co
125 stars 36 forks source link

Setting up Krypton with Twitter appears to be broken. #36

Closed obra closed 4 years ago

obra commented 5 years ago

Over the past day or so, I've tried to set up Krypton with Twitter from both Chrome and Firefox on Linux about a dozen times. I can't make it go. :/

The Krypton app on iOS believes that setup works ok. In Chrome, I don't get any indicator that something happened. In Firefox, Twitter's auth dialog says " Invalid response, try again "

Is there anything I can do to give you more information to help fix this issue?

obra commented 5 years ago

PR #30 resolves this issue for me on Firefox. On Chrome, there's something else weird going on, though.

image

EuForisch commented 4 years ago

I see this issue too, on firefox & chrome mac, what are the other issues you see?

protobits commented 4 years ago

Any plans to fix this?

agrinman commented 4 years ago

Fixed in version 1.0.18! Just released a Krypton for Firefox update with this fix: https://addons.mozilla.org/en-US/firefox/addon/krypton-authenticator/

DarwinAwardWinner commented 4 years ago

Well, the "Invalid response, try again" issue seems to be fixed, but I still can't get it to work with Twitter. I get to "Add the security key to your Twitter account" and Krypton pops up the notification for me to approve. I click Approve and the app says it's registered with twitter.com, but Twitter goes to a screen that says "Touch the security key one more time to verify this is really your security key", and I don't know how to do that with Krypton. There's no notification or prompt on the phone, so I'm just stuck and I have to cancel out of the process.

Edit: This is in Firefox on MacOS

protobits commented 4 years ago

I just tried and it worked for me :shrug:

agrinman commented 4 years ago

@DarwinAwardWinner: it should automatically request your device, i.e. there should be two popups one for registering and one for auth

DarwinAwardWinner commented 4 years ago

I only get one prompt. The only other Krypton notification is "Registered with twitter.com", which has no approve button on it (of course).

agrinman commented 4 years ago

Any console errors? Can you also confirm you’re on v1.0.18 (bottom of extension pop up window)

DarwinAwardWinner commented 4 years ago

Yes, I definitely updated, because the first time I tried I got the invalid response, and then I realized the extension wasn't updated yet and force-updated the extension and checked the version number. The behavior I describe is with version 1.0.18. I'll check for console errors.

DarwinAwardWinner commented 4 years ago

This console error looks possibly suspicious?

Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). u2f_security_key_verification_page.ebf22294c589815f452f1c9d6af08489d88d6af0.js:1:57428

I guess I'll see if there's anything blocking certain scripts from running (maybe uBlock or FF's own tracking protection).

DarwinAwardWinner commented 4 years ago

Ok, doesn't look like tracking protection or uBlock has any effect. I'm not familiar with what Content Security Policy refers to, and I don't know if that error is even relevant.

agrinman commented 4 years ago

Can you re-pair your phone?

DarwinAwardWinner commented 4 years ago

Ok, re-pairing my phone seems to have fixed it. I successfully completed the setup process.