Any way to get around 2FA on GitHub?
This is really annoying and it won't let me skip it anymore. Is there a way to get rid of it without enabling or logging out of my account?
(
17 comments
| 2 points
| on HN
)
As far as I know there is no way to bypass 2FA on GitHub (with the possible exception of deleting all your repositories, but I don't know if they'd let you turn it off at that point).
I stopped using Twitch when they started forcing 2FA. I didn't really care about my account. I only created it so that I would have a list of the streamers I follow on the left side. But logging in with 2FA was too much work just to be able to see the list, so I stopped using Twitch altogether.
Another use case is to disable Github 2FA so that I can enable 2FA on my email account:
I store my (encrypted) KeePassXC database on Github, but on a new computer I need to log into my email to be able to 2FA into Github, so I have to disable email 2FA because I store the TOTP codes on the KeePassXC database.
If Github didn't have 2FA, I would just login with my password, download the KeePassXC db, decrypt it, and be able to generate TOTP codes for my email.
Why not signup for a cloud storage provider, and store the encrypted password there? Then shorten the link and printout both versions for you to use (the longer is if the shortened version no longer work).
And that is coming back to bite everyone in the ass:
https://arstechnica.com/security/2024/05/0-click-gitlab-hija...
2) Security <> Convenience
I invest with a couple of different brokers. Some require only username+password. Some have the extra SMS/2FA. There is one where I get an automated phone-call and I have to answer, and type the digits shown on the screen. Every 1st of the month I do 'the rounds' in every account I have (bank, broker, cash) and write down on a spreadsheet my 'net worth' so I can track progress, forecast, see with a nice line how much up or down it goes, etc. (friendly suggestion - all people should be doing that); so it amuses me to see so many different authentication mechanisms across the Finance world.
That’s a pretty decent metaphor, replacing online safety with physical safety.
2FA is trivial and non-annoying if integrated with a password manager like 1Password or ButWarden. Not sure what your problem is, unless you truly like doing risky things like racing motorcycles without any safety gear. You know what they call people like that? Organ donors. Your online presence leaks all sorts of data that can seriously affect your meatworld existence.
Edit: I mean, JFC -- GitLab just popped an exploit that can see accounts without 2FA trivially exploited and taken over(https://arstechnica.com/security/2024/05/0-click-gitlab-hija...), with the only possible mitigation being TOTP (verification codes, third-party 2FA). Attackers can still conduct full password resets, but without access to 2FA the original owner can still keep attackers out and retain control of their account.
If you don't need more security on top of your existing (presumably high entropy) password, the latter problem might be solved by publishing the totp key. The GitHub bio box is public, mostly pointless and a sensible size...
The former might be solved with a bookmarklet that embeds the key and fills out the relevant form automatically. If you're going to publish the key, presumably publishing this in as convenient a form as possible also makes sense.
The idea came from https://www.raycast.com/cjdenio/two-factor-authentication-co... which is another "almost as fast" way to do the same.