News for hackers. Stuff that matters.
Re:Ask HN: Developer abused “sign in with GitHub”? by kstenerud on Friday December 09, 2022 @01:22AM (#33918198)
There could be cause for legal action against Github over this, since one could not reasonably expect that using Github's own "Sign in with Github" could allow the site you are logging into to automatically cause actions on your behalf that would result in your account being banned. Contact a lawyer.

Another possible legal angle is that by providing these powers to websites with little or no oversight and "people wil just gloss over it" UX, they are facilitating the very star farming they are banning over.

Re:Ask HN: Developer abused “sign in with GitHub”? by yashap on Friday December 09, 2022 @01:49AM (#33918365)
It probably wasn’t actually a standard “sign in with GitHub”, minimal SSO flow, it was likely an OAuth2 authorization code flow, where OP granted them explicit access to do things like star repos. Like, the button on the nopecha site may have said “sign in with GitHub”, but it actually kicked off and authorization code flow with GitHub, where you’re granting nopecha access to do GH things on your behalf. And OP just didn’t read things carefully enough, clicked through without looking.

This is a dead giveaway:

> i logged in, clicked through a bunch of pages because its the same drill everytime

For SSO, “login with GitHub” type flows, there’s no “clicking through a bunch of pages” post sign-in - you aren’t granting them access to your GH account, you’re just letting GH tell the site “yup, this is person X”. What OP describes sounds like explicitly granting a 3rd party access to your GitHub account, and OP was just being sloppy - I’d strongly bet the pages said things like “do you want to grant nopecha access to star repos on your behalf”, and OP clicked “yes”. If there’s any lesson here, it’s to read things more carefully, and not just freely give out access to your accounts to sketchy websites.

Re:Ask HN: Developer abused “sign in with GitHub”? by vintermann on Friday December 09, 2022 @04:19AM (#33919321)
Now I haven't gone through this process with github, but for other pages where I have gone through it, the issuer doesn't just hand out scopes like candy.

It's not enough that the user gives an app permission to act on my behalf, the issuer (in this case github) also has to give the app permission to ask for these scopes in the first place.

Github definitively messed up in giving the nopecha app permission to ask users for permission to star on their behalf.

If stars are important enough for them to ban users over, they should be very careful about letting third party apps request this scope from their users.

Re:Ask HN: Developer abused “sign in with GitHub”? by execveat on Friday December 09, 2022 @04:44AM (#33919481)
For context, in order to star projects on user's behalf you'd need to request public_repos scope[1], so the UI will look like this: https://github.com/login/oauth/authorize?client_id=33a703d01... (I used a random client_id from google search). As you can notice, the UI does not mention stars at all.

[1] public_repo: Limits access to public repositories. That includes read/write access to code, commit statuses, repository projects, collaborators, and deployment statuses for public repositories and organizations. Also required for starring public repositories. (https://docs.github.com/en/developers/apps/building-oauth-ap...)

Re:Ask HN: Developer abused “sign in with GitHub”? by jrochkind1 on Friday December 09, 2022 @08:57AM (#33921249)
I believe github doens't even have a scope that gives read access but not write access. So we users have been trained to just grant that scope to people who really only need read access, because it's the only thing that works. And in general trained not to even pay attention to those scopes anymore -- on github specifically -- because they are such a mess, and third-parties routinely need scope overreach to do what they want.

So I do think github is broken here in a way that predictably leads to problems like above. They need better more granular scopes (and have for years; I don't understand why with their resources they haven't prioritized it), and then they need a better UI for making sure the user understands what they are granting, differentiating between read vs write, etc.

Without that... it's only a matter of time until something much worse happens, like someone abuses a scope to insert malware in someone else's repo. I would not be surprised if it's happened already but hasn't been publicly known.

BUT, also... you sign up for a service that will for-pay get around captchas for you so you can automate access to a site where the captchas are intended to prevent automated access, and then you're just shocked that this service would do something unethical...

Re:Ask HN: Developer abused “sign in with GitHub”? by Borgz on Friday December 09, 2022 @07:52AM (#33920660)
Wow, this is really bad. The words "read and write" are hidden unless you click on the arrow next to "Repositories".

I'm surprised this hasn't been used for malicious purposes until now.

Re:Ask HN: Developer abused “sign in with GitHub”? by ilyt on Friday December 09, 2022 @05:53AM (#33919953)
That [1] is how "ask only for e-mail", "proper" "just" SSO looks like.

While sure it isn't immediately expected to access "stars" feature when you give public repo access...

...you're giving it fucking repo access. That's WAY more (on a "how bad it can be if you get hacked") permissions than just starring.

Re:Ask HN: Developer abused “sign in with GitHub”? by xgbi on Friday December 09, 2022 @08:44AM (#33921126)
> That includes read/write access to code [on public repos owned by the user]

What the hell, imagine logging-in with your account, you as a maintainer of a large public repo, and failing to understand clearly that you are giving a 3rd party the possibility of commiting on your behalf.

Seriously there should be a big red warning on all scopes apart from the "none" one.

Re:Ask HN: Developer abused “sign in with GitHub”? by sbergot on Friday December 09, 2022 @05:48AM (#33919922)
No this is standard procedure. You have to register the permissions you are going to request to github. But github is not going to inspect your app and checks that they are indeed required.

Github's responsibility is to ask consent to the user and display all the requested permissions. If the user accepts then Github has done its work.

This is how all oidc providers work.

Re:Ask HN: Developer abused “sign in with GitHub”? by vintermann on Friday December 09, 2022 @06:15AM (#33920097)
It is not how Oauth2 needs to work, or should work. OIDC is (or should be) about the user's identity only. It's for third partiets to know who you are, not for third parties to act on your behalf.

If the screen to give a 3rd party permission to identify you, looks like the screen to give a 3rd party sweeping permission to act on your behalf, that's github's responsibility and problem.

It would also be a good reason for responsible 3rd parties to ditch github for identity, if they don't address it.

(Another matter is that the big public OIDC providers' eagerness to let you use them might be a lot about tracking.)

Re:Ask HN: Developer abused “sign in with GitHub”? by 9wzYQbTYsAIc on Friday December 09, 2022 @07:03AM (#33920364)
OAuth is definitely about scope.

See the latest draft for OAuth Rich Authorization Requests (“work in progress”): https://www.ietf.org/archive/id/draft-ietf-oauth-rar-18.html

edit: you might be mixing up / conflating Open Authorization (an authorization standard - authorization scopes are in scope) with Open Identity (an authentication standard - authorization scopes are out of scope)

edit 2: It probably doesn’t help disambiguate which auth is which when the same company is providing both the authentication service and the authorization service.

Re:Ask HN: Developer abused “sign in with GitHub”? by vintermann on Friday December 09, 2022 @07:23AM (#33920482)
Why is everyone linking this draft? It's got very little to do with what we're discussing.

Yes, of course OAuth is about scopes! But OIDC is a protocol built on top of OAuth2 which is for identity only. You get no permission to act on the user's behalf from the OICD scopes, only read access to information you need to identify them.

This whole problem only happened because

1. Github is an OIDC provider, allowing you to identify yourself to websites around the world.

2. Github ALSO uses OAuth2 to delegate permissions to the user's stuff on their own site.

3. The one looks too much like the other. OP probably thought he was just showing ID, but what he was doing was giving the site sweeping permission to act on his behalf, which the site promptly misused.

The problem here starts already at 2. That anyone can create an integration and ask for OICD scopes, is one thing, but why do they make it so easy to hand out their own scopes? There are not that many third party apps that have a legitimate need to act on the user's behalf. Maybe some continuous integration stuff? But even that should only have access to the user's own repositories. Nothing I can think of has a legitimate need to go around starring random repositories.

Re:Ask HN: Developer abused “sign in with GitHub”? by 9wzYQbTYsAIc on Friday December 09, 2022 @07:55AM (#33920698)
> That anyone can create an integration and ask for OICD scopes, is one thing, but why do they make it so easy to hand out their own scopes?

That was probably one of the advantages of shoe-horning authentication (OpenID) with the existing authorization standard (OAuth).

> Why is everyone linking this draft? It's got very little to do with what we're discussing.

> … Github ALSO uses OAuth2 to delegate permissions to the user's stuff on their own site

> … But even that should only have access to the user’s own repositories.

Seems like Rich Authorization Requests are exactly what we are discussing.

Give it a skim (or a read).

Re:Ask HN: Developer abused “sign in with GitHub”? by vintermann on Friday December 09, 2022 @08:17AM (#33920890)
You don't need RARs to limit access. It's just a proposal to standardize very fine-grained control access.

This is not very fine-grained. It would be perfectly possible to gate access to social features of github (such as starring) behind a plain old scope. Distinguishing "access to all your own repositories" from "access to anything else on github, as you" also is not a fine-grained difference.

Re:Ask HN: Developer abused “sign in with GitHub”? by 9wzYQbTYsAIc on Friday December 09, 2022 @08:38AM (#33921071)
Sure, but the extra “location” and “action” objects within the proposed “authorization_details” JSON object do seem compelling when compared to just a single “scope” string.
Re:Ask HN: Developer abused “sign in with GitHub”? by BlueTemplar on Friday December 09, 2022 @08:28AM (#33920983)
Speaking of shoehorning things, it doesn't look particularly "Open" to me that website owners are free to pick a limited number of authenticating authorities, instead of letting the user to pick their own.

(Imagine if e-mail adresses were considered "invalid" in forms if not from Gmail or Outlook !)

It was especially bad with last years Advent of Code, where going through OpenID (or was it OAuth ?) was the ONLY way to join, and with only 3 options listed, none of which I wanted to use !

Re:Ask HN: Developer abused “sign in with GitHub”? by osigurdson on Friday December 09, 2022 @09:17AM (#33921424)
It is interesting though, most people use it just to avoid creating a new username/password on a random site. Usually there is no intention to grant access to any data maintained on the IDP's site. I know the concept of granting such access is the whole point of OAuth but honestly seems like a rarely needed use case.
Re:Ask HN: Developer abused “sign in with GitHub”? by anon84873628 on Friday December 09, 2022 @09:53AM (#33921800)
The website (oauth client) has to tell the IdP (oauth provider) what level of access they want to have on the user's behalf. OIDC is an extension of oauth that focuses on the basic identity aspects. (It basically just standardizes the user info and how to ask for it).

So an app could request only the non-data-access OIDC scope, or an IdP could enforce that it only allows apps the OIDC info.

On top of that is the user consent. What has been pointed out in threads here is that the IdPs are making the UX for basic OIDC consent too similar to the UX for consenting to privileged data access.

And of course if an oauth token is being abused, the IdP should ban the client app first, not the user...

Re:Ask HN: Developer abused “sign in with GitHub”? by osigurdson on Friday December 09, 2022 @10:12AM (#33922053)
Yes, I know how it works. My assertion is it really should not work this way by default. Providing identity (i.e. email address) to a random website is much different from providing them with access to sensitive data (often subtly shown in the signup dialog).

It is good to take a step back from the tech and think about it from the user's perspective.

Re:Ask HN: Developer abused “sign in with GitHub”? by sbergot on Friday December 16, 2022 @05:00AM (#34012760)
OIDC is build on top of OAuth and OAuth is all about scopes and authorizations. You can split the two but OIDC is designed to request id info and access authorization in the same transaction.
Re:Ask HN: Developer abused “sign in with GitHub”? by mavelikara on Friday December 09, 2022 @06:26AM (#33920161)
> This is how all oidc providers work.

No. When an app is registered with them, a provider does check if the scopes requested have a reasonable business purpose. Many registration forms even ask you to explain why you need the scopes requested. This is similar to how Apple App store does review.

Many OAuth providers also check periodically if one of their registered apps is used for any pattern of abuse.

Re:Ask HN: Developer abused “sign in with GitHub”? by 9wzYQbTYsAIc on Friday December 09, 2022 @07:02AM (#33920347)
Furthermore, a client can omit scope and leave it up to the server to decide whether to fall back to a default scope or fail the oauth request.
Re:Ask HN: Developer abused “sign in with GitHub”? by anon84873628 on Friday December 09, 2022 @09:28AM (#33921512)
This patently false. Google for example requires an oauth app registration and approval process. It's one of their annoying faceless processes that developers must go through, but exists for good reason.
Re:Ask HN: Developer abused “sign in with GitHub”? by 9wzYQbTYsAIc on Friday December 09, 2022 @04:58AM (#33919582)
> the issuer doesn't just hand out scopes like candy

GitHub isn’t doing the handing out, it is the user doing the handing out.

I don’t blame the user, as a rule, but in this type of scenario, the user (a consumer of development tools) shouldn’t be excused, in my opinion.

This would be like a doctor complaining for getting sued for malpractice by a patient of a nurse under the doctor, while the doctor neglected to review the patient chart and neglected to take the time to speak with the nurse.

caveat emptor

All that said, I would hope that bad actors that get caught, effectively phishing for GitHub credentials, using a technique like this end up being banned from GitHub.

Re:Ask HN: Developer abused “sign in with GitHub”? by vintermann on Friday December 09, 2022 @05:39AM (#33919854)
As I said, before the app even can ask for a scope, github has to give that app permission to ask for a scope.

I have written some integrations against altinn, the Norwegian government's portal for basically anything official. Getting approval for a scope there is a process, as well it should be. If I write an app that lets users send construction applications to the local municipality on the user's behalf, do you think I can just sneak in a request for permission to change the user's address, name and bank account registrations as well? No. There are scopes for that (I assume), but my app won't get to request them, no matter how much the user would be willing to give them.

And "caveat emptor" is not the threat model you can get away with on the web. Sure, it would be great for me as a dev if I could just disavow responsibility for cross site scripting attacks and other attempts to misuse the user's credentials. But I'm a user too, and it would NOT be fun as a user.

Re:Ask HN: Developer abused “sign in with GitHub”? by 9wzYQbTYsAIc on Friday December 09, 2022 @06:27AM (#33920167)
> And "caveat emptor" is not the threat model you can get away with on the web.

Caveat emptor is not a threat model, it is a risk mitigation.

It is arguably the only mitigation directly in the hands of the consumer.

And that the modern phrase is from a 2000+ year old “dead language” should certainly speak to the longevity, utility, and effectiveness of that mitigation.

> it would be great for me as a dev if I could just disavow responsibility for cross site scripting attacks and other attempts to misuse the user's credentials

thankfully there are standards and RFC’s that indicate best practices that recommend that these security risks be considered and mitigated

edit: see Rich Authorization Requests <https://www.ietf.org/archive/id/draft-ietf-oauth-rar-18.html> for the “work in progress”

Re:Ask HN: Developer abused “sign in with GitHub”? by vintermann on Friday December 09, 2022 @06:34AM (#33920197)
When you run a service on the web, it's not enough to protect yourself. You must protect your users to the best of your ability. Threats against your users must be part of your threat model.

If not, you won't keep them. They will leave. And saying "caveat emptor" will be about as effective at preventing that as saying "wingardium leviosa".

Re:Ask HN: Developer abused “sign in with GitHub”? by 9wzYQbTYsAIc on Friday December 09, 2022 @06:46AM (#33920253)
> When you run a service on the web, it's not enough to protect yourself

Nothing but agreement there.

Can you identify a specific recommendation by the IETF or W3C that was ignored, in this case?

> And saying "caveat emptor" will be about as effective at preventing that as saying "wingardium leviosa".

I had to look up that apparent reference to Harry Potter, but I disagree.

Educating your users about phishing risks, aka “caveat emptor” in this context, is explicitly a best practice for mitigating these kinds of security risks on the open web.

Re:Ask HN: Developer abused “sign in with GitHub”? by samus on Friday December 09, 2022 @06:15AM (#33920098)
Github is not the Norwegian government though. Github is not a gateway to public bureaucracy or to public services. It provides repository hosting, project management, and integration with build tools and similar services. Fostering a wide ecosystem is a core part of their business strategy, and as such applications are only validated superficially. Also, it operates at a scale that makes such validation infeasible.

Furthermore, the audience of Github is decidedly more technical than a government website or social media platforms. IMHO it can be expected that its users step through authentication flows a bit more carefully.

Github should act more decisive when applications turn out to be malicious though. The Laissez-faire policy of frictionless integration of applications has to be balanced with effective procedures to react to malicious uses.

Re:Ask HN: Developer abused “sign in with GitHub”? by anon84873628 on Friday December 09, 2022 @10:05AM (#33921961)
GitHub is Microsoft. And as a provider of developer tools, weird to see such apologism for their inability to structure oauth scopes correctly and provide effective unambiguous UX for user consent.

Let alone banning the user instead of the client app...

Re:Ask HN: Developer abused “sign in with GitHub”? by winkeltripel on Friday December 09, 2022 @08:18AM (#33920901)
> Also, it operates at a scale that makes such validation infeasible.

It's a choice to be at such scale that github cannot validate 3rd party auth. Gothub should accept fault for these incidents if they are not going to validate their partners.

It's the exact same as third party sellers shipping counterfeits on Amazon. Choosing to achieve massive scale leaves quality, validation, and consumer protection behind.

Re:Ask HN: Developer abused “sign in with GitHub”? by K0balt on Friday December 09, 2022 @07:22AM (#33920474)
Did you see how apparently inoffensive the permission granting sign in is? It looks very similar to a standard login. It would be very easy for anyone, regardless of knowledge, to blow right by that. The lack of distinctive labeling as not a standard sign in operation is really irresponsible on the part of GitHub here.
Re:Ask HN: Developer abused “sign in with GitHub”? by Already__Taken on Friday December 09, 2022 @05:24AM (#33919750)
API scopes could totally use some mandatory standards. You can't make a digital ocean token to simply edit DNS without full delete-all-your-VM's & charge thousands access.

Similarly we shouldn't bill for service accounts, especially when they're documented as the way to limit API token access. It's self-defeatist like taxing longer passwords.

Re:Ask HN: Developer abused “sign in with GitHub”? by 9wzYQbTYsAIc on Friday December 09, 2022 @06:06AM (#33920045)
Sounds like a good use case for Rich Authorization Requests <https://www.ietf.org/archive/id/draft-ietf-oauth-rar-18.html>
Re:Ask HN: Developer abused “sign in with GitHub”? by danuker on Friday December 09, 2022 @05:36AM (#33919832)
Finetuned permissions cost to implement. GitHub doesn't have them (maybe we wouldn't have seen this post if it had).

Therefore if you want them, pay up or do it yourself.

Re:Ask HN: Developer abused “sign in with GitHub”? by masklinn on Friday December 09, 2022 @08:55AM (#33921232)
> Finetuned permissions cost to implement. GitHub doesn't have them (maybe we wouldn't have seen this post if it had).

They exist for github apps, and they're being rolled out for PATs alongside forced expiration: https://github.blog/2022-10-18-introducing-fine-grained-pers...

Not sure there's any way for them to happen for oauth apps though. And even if they do, they're opt-in for the app and the old broad scope will remain. At best the broad scopes would only be accessible to old apps grandfathered in but that ain't much (there's probably a billion abandoned oauth applications you could purchase for that grandfathering).

Re:Ask HN: Developer abused “sign in with GitHub”? by Already__Taken on Sunday December 11, 2022 @01:54PM (#33946167)
Fine, put that behind my $x/mo account + service accounts.

$x/mo * Service accounts is dumb.

Re:Ask HN: Developer abused “sign in with GitHub”? by josephcsible on Friday December 09, 2022 @01:08PM (#33924483)
That's not a practical suggestion, since GitHub isn't self-hosted or open-source.
Re:Ask HN: Developer abused “sign in with GitHub”? by ilyt on Friday December 09, 2022 @05:54AM (#33919960)
Well, it is PITA to implement so I'm not surprised really...
Re:Ask HN: Developer abused “sign in with GitHub”? by piscataway on Friday December 09, 2022 @09:23AM (#33921463)
If stars are so important that any program that can auto-check stars is inherently fraudulent, then why allow any official third party API the ability to click on stars? Shouldn't that always be something you explicitly have to click?
Re:Ask HN: Developer abused “sign in with GitHub”? by Aeolun on Friday December 09, 2022 @02:06AM (#33918472)
Giving a website access to star repos through the API for my convenience is not anything I should be banned over though.
Re:Ask HN: Developer abused “sign in with GitHub”? by rendall on Friday December 09, 2022 @03:56AM (#33919178)
> Giving a website access to star repos through the API for my convenience is not anything I should be banned over though.

Sorry, hard disagree. You have responsibility, here. We all do. Be extremely wary of what privileges you are giving away, and do not hesitate to forgo sign-in when the privileges are unreasonable.

Why would anyone click "yes" to a random site that wants control over their Github starring privileges without a clear explanation as to what they will be using it for?

We can excuse the naïve, but this is a tech-related site. If you don't know, now you know.

Re:Ask HN: Developer abused “sign in with GitHub”? by theN00t on Friday December 09, 2022 @04:42AM (#33919474)
The issue here is that the OP did not abuse anything, tried to correct the mistake once discovered and was 'still' the one being punished for someone else's shady practice.
Re:Ask HN: Developer abused “sign in with GitHub”? by prepend on Friday December 09, 2022 @05:29AM (#33919783)
I think it’s because from GitHub’s standpoint, OP looks just like a bad actor who took $5 to allow someone to use their account to Star 500 repos, and says the same things.

GitHub is taking the “ban them all and let God sort ‘em out” approach to figuring out if OP is telling the truth.

Re:Ask HN: Developer abused “sign in with GitHub”? by anon84873628 on Friday December 09, 2022 @10:26AM (#33922246)
You realize that the oauth token is tied to the client app, right? Not only can GitHub see that this action was taken by/through a third party service, they can also see all actions taken by that service across all users. So there are much better ways to detect and correct the abuse.
Re:Ask HN: Developer abused “sign in with GitHub”? by prepend on Monday December 12, 2022 @07:20AM (#33953911)
All oauth tokens are authorized by users. So GitHub sees the app and sees the users who authorized the app. Users are responsible for all the bots that act in their names.

Otherwise it would be quite simple to write a malbot and then claim innocence because it was the bot doing it, not me.

I think the approach to automation is best when the authority and responsibility always ties back to an individual or group.

Re:Ask HN: Developer abused “sign in with GitHub”? by 9wzYQbTYsAIc on Friday December 09, 2022 @05:28AM (#33919780)
Presumably the OP would also have been aware that they were giving this third-party app the ability to rewrite the code on any of their public repos.

I automatically decline the moment I see any app trying to authorize with that scope.

Nonetheless, perhaps this is pointing to Microsoft’s Window’s UAC moment for GitHub.

Bright yellow or red UX with warnings that if you click “agree” then you might as well have given away your computer to a malicious actor.

Re:Ask HN: Developer abused “sign in with GitHub”? by boarush on Friday December 09, 2022 @04:32AM (#33919403)
Exactly.

We keep asking that users must be asked for explicit permissions and granular scopes are for the good and then users themselves skip reading on these permission grants.

Github has always (in my experience) been clear about what permissions are being granted to the site you're signing into, and if you don't agree, you can easily cancel the sign-on flow.

Re:Ask HN: Developer abused “sign in with GitHub”? by execveat on Friday December 09, 2022 @04:58AM (#33919575)
It's not clear at all. The scope UI says 'Repositories - Public repositories'. It does not sound dangerous and only reveals that the access is r/w (not r/o) after expanding the dropout. It does not mention stars at all.

An example requesting the 'public_repo' scope (the client_id is a random one from the internet): https://github.com/login/oauth/authorize?client_id=33a703d01...

Re:Ask HN: Developer abused “sign in with GitHub”? by 9wzYQbTYsAIc on Friday December 09, 2022 @05:06AM (#33919634)
Sounds like the basis for an argument for refining the scopes such that it is abundantly clear which scopes write data and which ones do not.

No one should be surprised that allowing an untrusted program to write files and permissions through an operating system could lead to a security exploit.

Many would likely be cognizant of the risk of becoming a member of a botnet.

Allowing untrusted programs to control your digital services is not fundamentally different, in my current perspective.

Re:Ask HN: Developer abused “sign in with GitHub”? by Aeolun on Friday December 09, 2022 @05:58AM (#33919997)
Of course. When you grant someone read/white you expect that they may delete all your repositories for shits and giggles.

What I would not expect is Github banning me in some misplaced form of victim blaming.

Re:Ask HN: Developer abused “sign in with GitHub”? by 9wzYQbTYsAIc on Friday December 09, 2022 @06:14AM (#33920092)
Truly though, wouldn’t you expect that your IP might be banned if your computer was compromised by a ddos botnet?

Your GitHub user account was compromised by a bad actor, so it shouldn’t be surprising nor considered victim blaming.

Of course, GitHub might cross the line to being unreasonable if they become aware of this as a potential security issue and fail to mitigate the phishing risks that they are exposing their customers to.

edit: restoring your user account to good standing, if absolutely necessary, is certainly something to strive for, but be aware that it can take years or never, from anecdotes that I’ve heard about Google, Apple, Twitter, etc. Microsoft/GitHub/LinkedIn won’t likely be any different, in that regard

Re:Ask HN: Developer abused “sign in with GitHub”? by krisoft on Friday December 09, 2022 @07:49AM (#33920648)
> Your GitHub user account was compromised by a bad actor, so it shouldn’t be surprising nor considered victim blaming.

But GitHub sees where did the request to create the stars come from. The requests all came with authentication tokens associated with the given malicious site. They have all the data to see how the account got “compromised”, and they also can see that the account owner is unlikely to have knowingly participated in the “star farming”.[1]

The obvious and correct solution is to delete all stars created through tokens associated with the malicious site[2], disable access for the malicious site and write a letter to the compromised users.

1: further absurdity is that by deciding that the stars were farmed Github already made the decision that they are not comming organically from users. Because if they were comming organically from the users then it wouldn’t be star farming, just a popular repo. So why are they punishing the users then?

2: one more absurdity is that stars don’t cost github anything. It is just a number in a DB. It is not like they incurred a cost due to this attack. Github decided that they care about some stupid stars, and make the farming of them a bannable offense.

Re:Ask HN: Developer abused “sign in with GitHub”? by Aeolun on Friday December 09, 2022 @07:34PM (#33928413)
If you lend someone your wallet so they can buy milk, and they go on a buying spree with your credit card, that’s still a crime.

You can blame the person handing out the wallet for being naive, but ultimately the bad actor is the other.

Re:Ask HN: Developer abused “sign in with GitHub”? by nurettin on Friday December 09, 2022 @04:36AM (#33919430)
Yes, we should be careful, thanks a lot for this hindsight, but giving developers the ability to request for a permission and banning users who click it by accident or doubt is kind of a dick move. Why not remove the permisson and ban the developer instead? To teach people a lesson? Would you like a leash and a whip with that?
Re:Ask HN: Developer abused “sign in with GitHub”? by winkeltripel on Friday December 09, 2022 @08:33AM (#33921021)
I believe that the individual responsible for these bans should be transferred as punishment: working on the weird photo editor in PowerPoint, or the msvc++ compiler.
Re:Ask HN: Developer abused “sign in with GitHub”? by stonemetal12 on Friday December 09, 2022 @11:21AM (#33923054)
>without a clear explanation as to what they will be using it for?

No one lies on the internet? Those Nigerian princes are very clear what they are going to do with the money you send them, but it doesn't make it true. Providing 3rd party access to an account should come with over sight abilities.

Re:Ask HN: Developer abused “sign in with GitHub”? by rendall on Friday December 09, 2022 @11:53AM (#33923509)
Asking "What if this other thing that didn't happen, but could happen, happened?" and then using that to excuse reckless behavior.

I'm going by what the guy wrote. He "clicked through a bunch of pages". If you "click through a bunch of pages" and get scammed, you suffer consequences. Play stupid games, win stupid prizes.

The whole story is suss, tho.

[dead]
Re:Ask HN: Developer abused “sign in with GitHub”? by wikfwikf on Friday December 09, 2022 @10:47AM (#33922572)
What would the 'completely valid and compelling reason' be in this case? I can't think of one.
Re:Ask HN: Developer abused “sign in with GitHub”? by horsawlarway on Friday December 09, 2022 @11:05AM (#33922820)
I'd like to login to a 3rd party site to determine that their DOM structure hasn't changed - because I develop an extension that interacts with it.

It's great when you can get a test account for this, but often companies will simply tell you "create a throw away account and test there" (ex: google does this).

That's not malicious - I'm well within my terms of service - I'm not doing anything with the service other than ensuring that behavior that is not contractually guaranteed still works (because unlike an API, most sites change their DOM often and with no warning).

It's not something I can fake with self-hosted content or mocks, because my version won't change when their DOM does.

---

I've investigated captcha solutions for this exact reason. Not to mention ways to automate 2fa. I understand the overlap with malicious intent here, but just because there is overlap does not imply that OP was malicious.

Re:Ask HN: Developer abused “sign in with GitHub”? by rendall on Friday December 09, 2022 @10:32AM (#33922348)
Not really necessary to curse at someone, even if you strongly disagree, my guy. You've been around HN long enough to know better.
Re:Ask HN: Developer abused “sign in with GitHub”? by the_only_law on Friday December 09, 2022 @10:34AM (#33922373)
> You've been around HN long enough to know better.

I’m sorry which rule covers that?

Re:Ask HN: Developer abused “sign in with GitHub”? by shkkmo on Friday December 09, 2022 @11:01AM (#33922767)
If falls pretty squarely under these guidelines:

>Be kind. Don't be snarky. Have curious conversation; don't cross-examine. Please don't fulminate. Please don't sneer, including at the rest of the community. Edit out swipes.

>Comments should get more thoughtful and substantive, not less, as a topic gets more divisive.

>When disagreeing, please reply to the argument instead of calling names. "That is idiotic; 1 + 1 is 2, not 3" can be shortened to "1 + 1 is 2, not 3."

https://news.ycombinator.com/newsguidelines.html

Re:Ask HN: Developer abused “sign in with GitHub”? by horsawlarway on Friday December 09, 2022 @11:13AM (#33922925)
For what it's worth - this is the same colloquial language I would use with close coworkers when discussing topics.

None of the cursing is directed at the person, but the topic under discussion. At no point have I cursed at him, or even been snarky to him. I have used emphatic language outside of a formal setting.

Personally - the existence of a curse word alone is not enough to invalidate an argument.

And in this case - it reflects my true opinion on the topic: It's bullshit to blame the user here, when the tech exists precisely to allow more accurate determinations of cause. It literally exists to prevent EXACTLY the sort of grey area the commenter above me seems to take for granted. I absolutely should be able to allow an oauth app to interact with a service and not be held accountable for malicious actions of that app if the actions are the result of abuse by the app and not my intent.

Otherwise why fucking bother with the rigmarole of the oauth app registration in the first place? Just hand the user a personal access token and let them plug it in where ever they'd like if you're going to ban them anyways...

Re:Ask HN: Developer abused “sign in with GitHub”? by ThrowawayR2 on Friday December 09, 2022 @10:54AM (#33922678)
It's the very first guideline regarding comments:

"Be kind. Don't be snarky. Have curious conversation; don't cross-examine. Please don't fulminate. Please don't sneer, including at the rest of the community. Edit out swipes."

Re:Ask HN: Developer abused “sign in with GitHub”? by the_only_law on Friday December 09, 2022 @11:12AM (#33922913)
My bad. I misread the initial interaction.
Re:Ask HN: Developer abused “sign in with GitHub”? by gernb on Friday December 09, 2022 @03:28AM (#33918991)
from github's pov you starred the repos. You signed up for a service the stars repos. it could have been starallthereposforme.com and you signing up a granting them permission to star repos is exactly what you wanted. So girhub is correctly assuming you wanted those repos starred.

If you didn't want them starred you shouldn't have given the site permission to star

Re:Ask HN: Developer abused “sign in with GitHub”? by tgsovlerkhgsel on Friday December 09, 2022 @03:59AM (#33919195)
GitHub should be able to tell that this was an abusive service doing it though.

Legally they might be in the right, but punishing victims of social engineering further doesn't seem like a fair or smart business decision.

Re:Ask HN: Developer abused “sign in with GitHub”? by wikfwikf on Friday December 09, 2022 @10:45AM (#33922547)
But an 'abusive service' might still involve misconduct by the user in question.

Suppose there is a service which allows you to watch free porn videos as long as you hand over permissions to star a bunch of repos using your account. Clearly, the service is abusive and should be banned. But isn't it also quite fair for Github to penalize the users? They knew they were handing over something of value when they authorized the access. Either they chose to exchange their genuine 'Github clout' for something they wanted, or their accounts are spammy in the first place (for example, if they created an account solely to access that service).

Re:Ask HN: Developer abused “sign in with GitHub”? by olabyne on Friday December 09, 2022 @05:16AM (#33919698)
yep, it is easy for them to know if the star was the user itselft OR a third party app through the API...
Re:Ask HN: Developer abused “sign in with GitHub”? by Aeolun on Friday December 09, 2022 @05:48AM (#33919918)
What you give the site access to is something like ‘Full-repository access’, the permissions aren’t granular enough to specify starring.
Re:Ask HN: Developer abused “sign in with GitHub”? by bee_rider on Friday December 09, 2022 @03:29AM (#33918996)
If you gave the owners of some website permission to star repos on your behalf, then you are trusting them; you are still the one responsible for your endorsements. Whether endorsing the wrong repo ought to ban worthy is definitely up for debate. But the question of whether you endorsed manually or delegated it seems unrelated.
Re:Ask HN: Developer abused “sign in with GitHub”? by thriftwy on Friday December 09, 2022 @04:59AM (#33919586)
Why have repo-starring API if you don't want users starring repos via API?
Re:Ask HN: Developer abused “sign in with GitHub”? by bee_rider on Friday December 09, 2022 @10:42AM (#33922503)
You will have to find someone who’s suggested that they don’t want users starting repos via API to ask them that. I’ve instead suggested that repos started via clicking and API should be treated the same way.
Re:Ask HN: Developer abused “sign in with GitHub”? by encryptluks2 on Friday December 09, 2022 @03:32AM (#33919013)
How far does this extend though? Should people not be banned for granting access to any app, and doesn't the screen where you grant access present some kind of disclaimer or warning?
Re:Ask HN: Developer abused “sign in with GitHub”? by yashap on Friday December 09, 2022 @02:09AM (#33918496)
That I do agree with.
Re:Ask HN: Developer abused “sign in with GitHub”? by contravariant on Friday December 09, 2022 @05:59AM (#33920006)
Getting your account hijacked and engaged in suspicious behaviour is cause for Github to suspend the account. You're not free from blame when you let your account be abused, at best you might be able to ask Github to help get control over your account back.
Re:Ask HN: Developer abused “sign in with GitHub”? by anon84873628 on Friday December 09, 2022 @10:29AM (#33922299)
Except GitHub allowed the abusive service to integrate in the first place, and knows every request it created...
Re:Ask HN: Developer abused “sign in with GitHub”? by iforgotpassword on Friday December 09, 2022 @02:01AM (#33918441)
I've always had at least one confirmation page where it stated what data would be shared with the 3rd party and what kind of access they get to my account.
Re:Ask HN: Developer abused “sign in with GitHub”? by yashap on Friday December 09, 2022 @02:09AM (#33918503)
True, there’s often a “GitHub will have access to your email address” type confirmation in SSO flows, as that’s basically what SSO is (it’s GH telling a 3rd party “yup this is [email protected], feel free to log them into your site as [email protected]”).

However, what you won’t see in a standard SSO flow is anything along the lines of “GitHub will be able to star repositories on your behalf.” If you’re seeing those kind of messages, you aren’t doing a minimal SSO flow (just having GH vouch for your identity), you’re granting access to a 3rd party to do things with your GH account.

Re:Ask HN: Developer abused “sign in with GitHub”? by grumple on Friday December 09, 2022 @07:27AM (#33920507)
Github does not separate starring. It falls under the public_repo scope, which is one of the fundamental scopes. Source: https://docs.github.com/en/developers/apps/building-oauth-ap...

"public_repo Limits access to public repositories. That includes read/write access to code, commit statuses, repository projects, collaborators, and deployment statuses for public repositories and organizations. Also required for starring public repositories."

Re:Ask HN: Developer abused “sign in with GitHub”? by masklinn on Friday December 09, 2022 @08:59AM (#33921269)
FWIW under the new fine-grained permission model (used by github apps, and the fine-grained personal access tokens currently in beta) "starring" is its own account-level permission: https://docs.github.com/en/rest/overview/permissions-require...
Re:Ask HN: Developer abused “sign in with GitHub”? by nailer on Friday December 09, 2022 @02:24AM (#33918619)
> probably wasn’t actually a standard “sign in with GitHub”, minimal SSO flow, it was likely an OAuth2 authorization code flow

This is accurate, but oauth2 is the standard sign in with GitHub. oauth is literally designed as an authorisation mechanism to allow people to do things on your behalf, the ability to authorise access was later repurposed into an authentication mechanism.

Re:Ask HN: Developer abused “sign in with GitHub”? by 2Gkashmiri on Friday December 09, 2022 @02:11AM (#33918512)
if i go with your argument, "what wrong did i commit" if i allowed an application a legitimate action of managing stars? how did i know beforehand the app was going to abuse this very action because there are other commenters saying that stars manage action is a legitimate, non-sinister action in itself so where was i sloppy?
Re:Ask HN: Developer abused “sign in with GitHub”? by yashap on Friday December 09, 2022 @02:18AM (#33918571)
I agree you should not have been banned - I think GH was wrong there. You got taken advantage of, you weren’t being malicious.

However, getting banned is pretty minor compared to the other bad things that can happen if you grant sketchy websites access to your accounts without reading what you’re granting.

Re:Ask HN: Developer abused “sign in with GitHub”? by dbt00 on Friday December 09, 2022 @03:11AM (#33918893)
I'm sorry you lost access to your github account, but let's be fair. This is not a legitimate application for managing your stars, this is a page that was committing fraud and probably requested access to your account in exchange for committing further fraud on your behalf. You were already logged in. Why did you log in again with github? Because it asked you to, and promised you more rewards if you did?
Re:Ask HN: Developer abused “sign in with GitHub”? by machinawhite on Friday December 09, 2022 @03:22AM (#33918951)
> Why did you log in again with github?

Sorry I'm somone else but I'd just go and assume it was because they are human, not a terminator, and their eyes do not have an integrated HUD talking with GitHub's backend with status indicators showing each currently authenticated account??? You want this kind of correctness you have to write software in Rust or something. "You're holding it wrong" lol

Re:Ask HN: Developer abused “sign in with GitHub”? by fknorangesite on Friday December 09, 2022 @03:56AM (#33919174)
It's a bog-standard oauth2 authentication flow. I'm positive GitHub showed OP the list of permissions that this sketchy third-party app was requesting, and OP granted those permissions.

Yes, you are supposed to read the dialogs. OP really got got, and that sucks. But it's literally why that permissions checklist step - that they ignored - exists.

Re:Ask HN: Developer abused “sign in with GitHub”? by machinawhite on Friday December 09, 2022 @04:54AM (#33919546)
And they're a bog-standard human. Very buggy, get all kinds of tired and sleepy and drunk and high. I don't have the patience to be terrorized with some dumb ass permission lists when I want to access something. My brain is there to process the experience of eating tasty food and making children with an another human or whatever, I'm not an API. Just ask yourself if the UI would confuse your demented grandmother, if it would then it's shit and I hate it. oauth, shmoauth, who cares?

If the same happens to me I'm positive I'm /punching the screen, locating whoever set that bullshit up and taking a dump into their physical mailbox./

Re:Ask HN: Developer abused “sign in with GitHub”? by lucumo on Friday December 09, 2022 @05:11AM (#33919664)
> And they're a bog-standard human. Very buggy, get all kinds of tired and sleepy and drunk and high. I don't have the patience to be terrorized with some dumb ass permission lists when I want to access something.

None of those things are an excuse. The dialog is there as a gateway to protect your data and GitHub's platform from the third party. If you're not going to review a clear dialog describing the permissions, then there is nothing that GitHub can do, other than decide that you cannot be trusted with this responsibility.

Also, drunk and high? You chose to be in those states. If you can't make the decision correctly in whatever state you currently are, then shouldn't be making decisions in that state. Take some responsibility for yourself.

Re:Ask HN: Developer abused “sign in with GitHub”? by machinawhite on Friday December 09, 2022 @05:47AM (#33919916)
All of those things are an excuse. The dialog is dumb and annoying. And excuse me but who are you exactly to tell what I can be trusted with? What responsibility? I'm not responsible for shit, it's a dumb website with bad UI and if I close my eyes then it disappears, that's how irrelevant it is to my life.

I don't really believe you "choose to be in states", what an absurd way to think about the behavior of hairless apes. Sorry but I will continue having the illusion of making decisions in whatever state I please. What now?

Maybe have some kids or smoke a joint because you're going to end up in a looney bin with this kind of expectations towards your fellow idiot humans

Re:Ask HN: Developer abused “sign in with GitHub”? by lucumo on Friday December 09, 2022 @06:41AM (#33920224)
> Maybe have some kids Got those. I teach them responsibility for their actions.

> smoke a joint Done that. Didn't use it as an excuse.

> What now? Consequences don't care about your defiance. Nor should GitHub or whatever party has to deal with you.

Normal people make mistakes. Decent people care about limiting the damage to others. Assholes blame everybody else and deny all responsibility.

Re:Ask HN: Developer abused “sign in with GitHub”? by eproxus on Friday December 09, 2022 @12:27PM (#33923980)
That doesn’t mean the inverse is true though: “if someone else is to blame you’re an asshole.”
Re:Ask HN: Developer abused “sign in with GitHub”? by lucumo on Friday December 09, 2022 @02:06PM (#33925223)
Many things are untrue. Including "if someone else can be blamed, I am blameless".

But that's getting a bit off track. I responded to the attitude where someone should not be expected to read a simple and clear dialog because they were a hairless ape that could be drunk.

Re:Ask HN: Developer abused “sign in with GitHub”? by machinawhite on Friday December 09, 2022 @11:33PM (#33929879)
> someone should not be expected to read a simple and clear dialog because they were a hairless ape that could be drunk

FINALLY you said something reasonable :-D I'm sorry for being an idiot, I wanted to give a different perspective, I guess I'm passionate about nice and human UI. What happened to OP is what I call a Huge Dick Move. I will defend them to the grave because I like to cut people a big big piece of slack. Because yeah they could be drunk, or just tired, which is cool, you know.

What's not cool at all though is so called "engineers" ebgineering shit like OP described which makes me ashamed of my profession everytime I watch my grandpa painstakingly wade through crap like this all the time.

I will cope, I'm a dev, many people will not and there goes their UX. Straight to trash \o/

I don't want to get absolved of my responsibilities or whatever, I want UI that doesn't suck dick and ideally doesn't star 500 repos by itself

Re:Ask HN: Developer abused “sign in with GitHub”? by 2Gkashmiri on Friday December 09, 2022 @04:41AM (#33919465)
>You were already logged in. Why did you log in again with github? Because it asked you to, and promised you more rewards if you did?

when was i already logged in? there was only 1 action of "sign in with github". thats it

Re:Ask HN: Developer abused “sign in with GitHub”? by nullfield on Friday December 09, 2022 @08:34PM (#33928866)
Maybe, just maybe, if companies like GitHub would read the fucking RFC’s for “OAuth is not for authentication” they’d get somewhere.

We at least/even have OIDC for that now.

Re:Ask HN: Developer abused “sign in with GitHub”? by 2Gkashmiri on Friday December 09, 2022 @02:00AM (#33918437)
no i did not because when i click on “sign in with GitHub” flow, that is the only thing i expect to happen. whatever the dev added to the workflow is what i assumed to be needed for the login to happen
Re:Ask HN: Developer abused “sign in with GitHub”? by yashap on Friday December 09, 2022 @02:11AM (#33918513)
As I said, it’s a lesson to read more carefully. If you’re granting a sketchy website broad access to your accounts without even reading what you’re granting, bad things are guaranteed to happen.

Also, seems like you’re probably a developer? If so, SSO, OAuth2, OIDC, etc. are worth learning about. You seem to be confusing/conflating SSO and OAuth2 authorization code flows, when they’re reasonably different things.

Re:Ask HN: Developer abused “sign in with GitHub”? by netheril96 on Friday December 09, 2022 @02:54AM (#33918798)
GitHub could not control what lies other websites tell. They can have a button saying “Sign in with GitHub”but totally not signing in with GitHub.

That said GitHub should have banned that website for lying and abusing instead of OP.

Re:Ask HN: Developer abused “sign in with GitHub”? by easyorgmode on Friday December 09, 2022 @03:52AM (#33919149)
This proves the point that these third party "Sign in with" buttons are really dangerous.

It makes a possibly dodgy website look more secure and legit by using a well known provider like Github for the login process.

In addition, it potentially exposes data from that well known provider, which is often sensitive data, as in the case of Github.

Re:Ask HN: Developer abused “sign in with GitHub”? by vel0city on Friday December 09, 2022 @08:29AM (#33920988)
When I double click on free_cookies.exe which I got from totallyawesomenotavirus.com I expect my computer to start giving me chocolate chip cookies.

Or maybe I shouldn't just take everything at face value and pay attention to what I'm doing.

Re:Ask HN: Developer abused “sign in with GitHub”? by scarface74 on Friday December 09, 2022 @11:05AM (#33922816)
And how has that worked out for the last 40 years.
Re:Ask HN: Developer abused “sign in with GitHub”? by Aeolun on Friday December 09, 2022 @02:07AM (#33918485)
That’s kinda your own fault. You could have known they were going to be able to star repos on your behalf if you’d read carefully.

What is strange is that you are banned for an action someone else took. That doesn’t make any sense.

Re:Ask HN: Developer abused “sign in with GitHub”? by BoorishBears on Friday December 09, 2022 @02:01AM (#33918443)
I was with you until the last two sentences.

I'll honestly never get that point of view: it's an evolutionary disadvantage to not fall for these kinds of attacks. Our intelligence is largely predicated on how easily we can pattern match and filter out "excess" information.

So OP being bombarded with a list of harmless permissions along with one deceptively dangerous one (deceptive because they wouldn't expect to lead to being pwn'd anyways, since it's stars) and granting is not being sloppy, it's being an intelligent person.

Github is large enough to have UX experts who know this stuff, and at the very least if stars are grounds for being banned, they should be grouping it with dangerous permissions and using more confirmations.

And even better... they should just rate limit starring! How often is someone going to star 500 of someone's repos legitimately that rate limiting would ruin everyone's day?

Re:Ask HN: Developer abused “sign in with GitHub”? by yashap on Friday December 09, 2022 @02:13AM (#33918529)
FWIW, I agree GH shouldn’t have banned OP. But … I’m pretty sure they weren’t giving out access to control OP’s account through a standard SSO flow, as OP assumed. Massively more likely, OP just didn’t pay attention, and granted said access explicitly during an OAuth2 authorization code flow.
Re:Ask HN: Developer abused “sign in with GitHub”? by BoorishBears on Friday December 09, 2022 @08:21AM (#33920919)
My entire point is that they did explicitly grant the permissions and that if you see a dialog like this: https://i.stack.imgur.com/Iol8j.png

And you're ready to hand over even the first 3 items there, you're not likely to assume or even notice that github stars about to get you knocked out of orbit.

I know this is a place of hubris but it almost comes across as a strange lack of self-awareness that this many people actually think they'd have caught that.

Re:Ask HN: Developer abused “sign in with GitHub”? by sennight on Friday December 09, 2022 @02:19AM (#33918577)
> ..is not being sloppy, it's being an intelligent person.

No, that is being an intelligent ape reacting to a twitching bush by running up a tree on the chance that a predator is behind the bush. The tables have turned since then. Back then the analytical ape would have gotten eaten and not passed his genes on, but there is no longer a biological imperative to mindlessly react to things.

Re:Ask HN: Developer abused “sign in with GitHub”? by BoorishBears on Friday December 09, 2022 @08:16AM (#33920880)
That's... not how evolution works at all? I almost want to think this is satire.

Modern humanity hasn't existed for an eye blink compared to the everything that led up til now, so there's two kinds of people:

- People who understand we all have these blind spots and understand account for them

- People who don't even realize how often they run into these blind spot.

You're much better off learning to be the former, but I'm sure it feels good to proclaim from on high how you're just sloppy for not checking every dialog you come across...

Re:Ask HN: Developer abused “sign in with GitHub”? by sennight on Saturday December 10, 2022 @04:16AM (#33931200)
That is exactly how evolution works. Now if you wanted to argue that evolutionary pressure no longer applied due to modern medicine and safety regulations... you'd still be wrong, but at least you'd look less silly. So there's two kinds of people:

- People who've heard about about the marshmallow impulse control study + the effects that medieval-plagues/cousin-marriage has had on the human gene pool

- People who say silly things like "Modern humanity hasn't existed for an eye blink compared to.."

You're much better off reading a long term study on the life trajectories of people who had their impulse control quantified as children - spoiler: they do not do well in the modern world relative to everyone else enjoying a reduced probability of incarceration.

Re:Ask HN: Developer abused “sign in with GitHub”? by smolder on Friday December 09, 2022 @03:28PM (#33926090)
There's an incentive to ignore the trivial BS that other humans relentlessly waste your time with. Reading EULAs and watching ads are not the path to success. People are trained to ignore information constantly.

Intelligent apes surrounded by wiggling bushes stop paying attention to wiggling bushes and get munched on by a predator eventually, no?

Re:Ask HN: Developer abused “sign in with GitHub”? by sennight on Saturday December 10, 2022 @06:11AM (#33931644)
> Reading EULAs and watching ads are not the path to success.

Agreed, but unlike a login prompt, those things are there for the benefit of others - not you. To continue the analogy: blowing through a login (or changing traffic signal, regardless of color) is like an ape exposing his belly to any silhouette vaguely shaped like a trusted member of the troop.

> ..stop paying attention to wiggling bushes..

Dunno, he could also have a breakdown - lab rats are known to practically lay down and die when you suddenly reverse the role of external stimuli in a system of punishment and reward. But I don't see how that fits here, the user isn't being plagued by nonsensical login prompts constantly springing into existence.

Re:Ask HN: Developer abused “sign in with GitHub”? by smolder on Wednesday December 14, 2022 @07:40PM (#33993227)
My point was just that whatever mental heuristics we use to decide whether information is worth parsing or not are built up over our lives. As with all such approximating things, there is trade-off between false positives and false negatives. The large amount of junk information one encounters in modernity could lead to aggressively-tuned heuristics, resulting in more false positives relative to negatives, effectively sending useful information to a mental spam folder.
Re:Ask HN: Developer abused “sign in with GitHub”? by Biganon on Friday December 09, 2022 @02:37AM (#33918687)
And now I want to listen to Running up that Tree, by Ape Bush
Re:Ask HN: Developer abused “sign in with GitHub”? by sennight on Friday December 09, 2022 @02:45AM (#33918749)
You got me, I thought for a moment that I accidentally channeled Weird Al instead of Pearl Jam's Do the Evolution.
Re:Ask HN: Developer abused “sign in with GitHub”? by bryanrasmussen on Friday December 09, 2022 @02:47AM (#33918758)
I find this an interesting question - if you have a private repo with code in it and you get banned in this way can you export that repo? There could be situations arising where you don't have your code anymore because of the banning and that would probably be actionable.
Re:Ask HN: Developer abused “sign in with GitHub”? by anubiskhan on Friday December 09, 2022 @11:20AM (#33923020)
Hopefully OP can recover any lost work(Or simply get unbanned), but I will venture a guess that buried in GH's TOS is something that amounts to "You agree to these rules, and if you violate them and get banned that is on you" and they can point at this/these clause/s and say, "Hey, OP broke the rules and that's that"
Re:Ask HN: Developer abused “sign in with GitHub”? by 2Gkashmiri on Friday December 09, 2022 @03:40AM (#33919062)
i do have public and private repos that i would love to get the data from but all the links are dead as of now
Re:Ask HN: Developer abused “sign in with GitHub”? by bryanrasmussen on Friday December 09, 2022 @03:47AM (#33919113)
well then I would consider it might be worth talking to a lawyer, you have placed work into these repos, github no longer wants your business cool enough,

They don't have to provide you the service, that is totally their right - but it seems unlikely they would be allowed to keep your intellectual property at the point of service cancellation, especially given the reason for cancellation. They should provide a way to download the repos you want to keep for a reasonable time frame, if for example they send you an email

We no longer want your business, please get your stuff by this date or it will be deleted.

Then that would be one thing, but if they're saying

We no longer want your business, and you can never have your stuff back because that is our policy.

That's opening up a can of worms that their lawyers probably don't want opened either.

on edit: Were any of these repos paid for - then they really better solve it, even so they evidently derive benefit as a business for offering free repos so they should still provide a way to get your repo on service cancellation.

Finally they argue that reusing your code in training things like CoPilot is fair use - have your public repos been used in such a way and if so they are continuing to derive business benefit from your code while not allowing you access to it. Even bigger can of worms.

Considering the rather unfair cancellation (and basically any situation that relies on arguing you should have been more careful or you wouldn't have been taken advantage of is unfair) I think they should reach out, give you your code and say Good-day, sir (or madam, no offense meant).

But even if you were the person doing the starring of repos they would be in an iffy place to keep your intellectual property and not have a limited time, get your stuff back solution (which for all I know they have, I've never researched the matter)

Re:Ask HN: Developer abused “sign in with GitHub”? by 2Gkashmiri on Friday December 09, 2022 @03:52AM (#33919151)
cool. i will be mentioning that in my "strongly worded letter" as i wrote in another comment
Re:Ask HN: Developer abused “sign in with GitHub”? by kstenerud on Friday December 09, 2022 @03:59AM (#33919200)
Before you send that letter, talk to a lawyer. They have an army of lawyers. If you consider the account and its contents valuable, you should hire a professional who knows how to get the best results. DIY legal work is foolhardy.
Re:Ask HN: Developer abused “sign in with GitHub”? by pjc50 on Friday December 09, 2022 @05:30AM (#33919795)
GDPR "data access request" ought to get them to give you a copy.
Re:Ask HN: Developer abused “sign in with GitHub”? by bryanrasmussen on Friday December 09, 2022 @09:12AM (#33921377)
if they're in EU, if in EU there are a bunch of other things that might be considered problematic legally with this behavior of github's so...
Re:Ask HN: Developer abused “sign in with GitHub”? by pjc50 on Friday December 09, 2022 @10:27AM (#33922263)
I've not seen any cited legal argument that says they can't ban you under their TOS?
Re:Ask HN: Developer abused “sign in with GitHub”? by eproxus on Friday December 09, 2022 @12:30PM (#33924016)
No, but it doesn’t matter how “banned” your are according to the service, they still have to provide all your private data upon request.
Re:Ask HN: Developer abused “sign in with GitHub”? by quickthrower2 on Friday December 09, 2022 @05:13AM (#33919675)
They should require you to log into Github and use the full Github UI for any app permissions beyond saying knowing which github account it is.

I.e. the flow is

1. Auth by Github

2. App says "thanks, now please log into your github account and grant the following permissions, X, Y Z"

3. User logs into github.com, goes to account page and grants whatever they fell is necessary

4. App now has permissions.

Re:Ask HN: Developer abused “sign in with GitHub”? by user3939382 on Friday December 09, 2022 @10:21AM (#33922189)
> Contact a lawyer

Unless you have a couple million dollars burning a hole in your pocket and 5-10 years you'd like to spend in court, good luck suing Microsoft. The US Justice Dept couldn't even get a meaningful result in their antitrust case. The courts exist to protect these multinationals, not for you.

Re:Ask HN: Developer abused “sign in with GitHub”? by kelnos on Friday December 09, 2022 @03:15PM (#33925969)
> There could be cause for legal action against Github over this

I'm sure there isn't. No one has any inherent right to a GitHub account, and their ToS allows them to ban you for pretty much any reason.

I don't quite get why you're talking about "legal angles"; there's nothing here related to the legal system. Yes, it's stupid that GH makes it so easy to give full access of your account to other entities. Yes, it's stupid that they're going to then ban you for what those entities do with that access. But GitHub has no legal or contractual obligation to not ban user accounts for stupid reasons.

Re:Ask HN: Developer abused “sign in with GitHub”? by Kiro on Friday December 09, 2022 @02:08PM (#33925242)
What laws are they breaking? Can't GitHub ban you without a reason? What about HN? Are they not allowed to ban whoever they see fit? Seems scary that I could face a lawsuit if I ban someone I think is obnoxious on my forum.
Re:Ask HN: Developer abused “sign in with GitHub”? by JohnFen on Saturday December 10, 2022 @10:57AM (#33933657)
It wouldn't be a matter of laws being broken. It would be a matter of contract violation of some sort.
Re:Ask HN: Developer abused “sign in with GitHub”? by Kiro on Saturday December 10, 2022 @04:04PM (#33936780)
So of you don't have anything you sign on account creation you're safe? E.g. Hacker News is just name/password.
Re:Ask HN: Developer abused “sign in with GitHub”? by nigamanth on Friday December 09, 2022 @07:26AM (#33920499)
No, probably not. Here's the thing, GitHub integrations always ask the user whether they authorize the integration, they provide the list of permissions that the integration is asking for.

It's not GitHub's fault if the user doesn't read the permissions and authorizes the application.

Re:Ask HN: Developer abused “sign in with GitHub”? by anon84873628 on Friday December 09, 2022 @10:37AM (#33922412)
Yeah but it is GitHub's fault for banning the user instead of the abusive application. You realize the oauth token is connected to the client_id, right?
Re:Ask HN: Developer abused “sign in with GitHub”? by 2Gkashmiri on Friday December 09, 2022 @01:26AM (#33918223)
damn. i am one. haha. waiting for their support to respond to my "response". i would be sending them a strongly worded legal letter if they don't let up but yeah, around 500 people are suffering and i want to talk about them en masse
Re:Ask HN: Developer abused “sign in with GitHub”? by sneak on Friday December 09, 2022 @02:29AM (#33918643)
Not really. Your GitHub account doesn't belong to you: it belongs to Microsoft. They let you use it as long as it pleases them, but it's their database and their servers and they don't have any obligation to continue to do so.

Use Gitea instead. It's great and doesn't add eyeballs to this giant corporate SPOF. It even has a feature to push everything in your repo to a remote (eg GitHub) as a mirror automatically. (Or set up a repo as an automatically pulled mirror for the inverse.)

Re:Ask HN: Developer abused “sign in with GitHub”? by nix23 on Friday December 09, 2022 @04:24AM (#33919356)
In Europe the account is not yours but the attached/coupled data (from email to code), since your are banned you also cant delete it, that is a legal problem...at least in europe.
Re:Ask HN: Developer abused “sign in with GitHub”? by BlueTemplar on Friday December 09, 2022 @08:58AM (#33921256)
A bigger legal problem here is that, being a US company asking for personal data, GitHub/Microsoft is effectively illegal in EUrope :

https://en.wikipedia.org/wiki/Max_Schrems#Schrems_I

Re:Ask HN: Developer abused “sign in with GitHub”? by chii on Friday December 09, 2022 @02:59AM (#33918835)
Using gitea doesn't work if you are doing things for some existing repo in github, esp. if it's non-git related such as reviewing PR, issues, etc.
Re:Ask HN: Developer abused “sign in with GitHub”? by sneak on Friday December 09, 2022 @03:27AM (#33918982)
If you put .patch on the end of any GitHub commit URL you get a diff format patch and it usually has the committer's email the top. You can then email them your diff.

It's not perfect and it's not social/collaborative but it gets the job done in the absence of a mailing list.

Re:Ask HN: Developer abused “sign in with GitHub”? by carstenhag on Friday December 09, 2022 @03:21AM (#33918947)
Laws are different in the world. I'm pretty sure in Germany the account would have to be restored.
Re:Ask HN: Developer abused “sign in with GitHub”? by nextlevelwizard on Friday December 09, 2022 @07:03AM (#33920359)
There is no legal action you can take.

If you give random websites access to your account that is 110% on you. This just goes to show that people have extremely poor login practices. You need to actually read what popups say before accepting/authorizing.

Also if I understood correctly this was some scammy captcha bypass thing anyway so OP was doing shady shit anyway.

Re:Ask HN: Developer abused “sign in with GitHub”? by jagged-chisel on Friday December 09, 2022 @07:13AM (#33920416)
> ... OP was doing shady shit anyway.

Curiosity and analysis should never be considered "shady." Proximity to "shadiness" doesn't make one "shady."

You stopped off an a random Dairy Queen on a roadtrip, got our M&M Blizzard, and attmepted to go along your merry way. But the local cops have stopped you because "obviously" you were doing shady shit by stopping into the DQ that's "known" to deal in nefarious things.