News for hackers. Stuff that matters.
Re:Any way to get around 2FA on GitHub? by LorenDB on Thursday May 02, 2024 @11:47AM (#40237569)
Why would you want to bypass 2FA? Yes, it makes logins slightly more annoying, but the security benefits far outweigh the annoyance of typing in a six-digit code when you log into a new device.

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).

Re:Any way to get around 2FA on GitHub? by diego_sandoval on Thursday May 02, 2024 @02:29PM (#40239788)
One possibility is that maybe they don't care about their Github account that much.

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.

Re:Any way to get around 2FA on GitHub? by skydhash on Thursday May 02, 2024 @06:01PM (#40241852)
> I store my (encrypted) KeePassXC database on Github

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).

Re:Any way to get around 2FA on GitHub? by jjgreen on Thursday May 02, 2024 @11:53AM (#40237640)
GitLab supports but does not require 2FA.
Re:Any way to get around 2FA on GitHub? by rekabis on Saturday May 04, 2024 @02:05AM (#40255281)
> GitLab supports but does not require 2FA.

And that is coming back to bite everyone in the ass:

https://arstechnica.com/security/2024/05/0-click-gitlab-hija...

Re:Any way to get around 2FA on GitHub? by KomoD on Thursday May 02, 2024 @01:02PM (#40238535)
That'd defeat the point of it?
Re:Any way to get around 2FA on GitHub? by HenryBemis on Saturday May 04, 2024 @09:37AM (#40257573)
1) Depends on the risk assessment each of us does.

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.

Re:Any way to get around 2FA on GitHub? by moosemess on Monday May 06, 2024 @10:26AM (#40275076)
Check out beancount and plaintext accounting. So much better than spreadsheets, IMO.
Re:Any way to get around 2FA on GitHub? by verdverm on Thursday May 02, 2024 @01:43PM (#40239095)
Get a hardware key, which you just have to touch, rather than pulling out your phone and doing the 6-digit thing
Re:Any way to get around 2FA on GitHub? by rekabis on Saturday May 04, 2024 @01:52AM (#40255218)
“Any way to get around the legal requirement of wearing seatbelts in vehicles?”

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.

Re:Any way to get around 2FA on GitHub? by admissionsguy on Sunday May 05, 2024 @01:28PM (#40266554)
Men with guns will take your property if you don't wear a seatbelt, but you can easily use another provider of version control. The two cases are not alike.
Re:Any way to get around 2FA on GitHub? by qhwudbebd on Saturday May 04, 2024 @02:46PM (#40259494)
I guess there are two problems it causes that you might want to solve: the annoyance of the extra ceremony and the risk of losing access because you lose the key.

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.

Re:Any way to get around 2FA on GitHub? by noman-land on Saturday May 04, 2024 @06:12PM (#40260705)
Buy a Yubikey. The second factor takes one second.
Re:Any way to get around 2FA on GitHub? by swah on Saturday May 04, 2024 @06:54PM (#40260961)
For a few accounts I prefer convenience, my "2FA bypass" takes half a second typing - "`1", which expands to a call to https://github.com/rsc/2fa using Typinator and puts the code inline...
Re:Any way to get around 2FA on GitHub? by geekodour on Saturday May 04, 2024 @11:11PM (#40261989)
would you mind sharing how exactly? could be something i could use but i don't think I'll be using typinator but wanted to understand the process better
Re:Any way to get around 2FA on GitHub? by swah on Monday May 06, 2024 @07:23AM (#40273363)
Sure, take a look at the write-up here: https://github.com/rsc/2fa and once you have it working on command line, its just a little wrapper with AutoHotKey/Typinator I guess.

The idea came from https://www.raycast.com/cjdenio/two-factor-authentication-co... which is another "almost as fast" way to do the same.

Re:Any way to get around 2FA on GitHub? by moosemess on Monday May 06, 2024 @10:24AM (#40275059)
You can't, because Github like so many other bad companies have decided to externalize security on to users, forcing them into 2FA so they don't have to pay to support all the irresponsible people whose accounts get compromised. Make no mistake, this is 100% a financial decision that has nothing to do with any security.