News for hackers. Stuff that matters.
Re:Dependency Confusion: How I Hacked Into Apple, Microsoft ... by PartiallyTyped on Wednesday February 10, 2021 @05:26AM (#26087505)
Different access tokens have different permissions, you can't just do whatever you want.
Re:Dependency Confusion: How I Hacked Into Apple, Microsoft ... by tomashubelbauer on Wednesday February 10, 2021 @05:34AM (#26087557)
Yeah, but at least with PATs (not sure about other token types), you can't scope them to a particular repo, so whenever you need to allow something to even see a private repo or write to a public repo, the token you supply to allow that can do that for all repos and that alone is potentially really destructive. I am not sure if there is a good reason for why PATs can't be scoped to a repository, because if they were allowed to be, it would do a lot for security I think.
Re:Dependency Confusion: How I Hacked Into Apple, Microsoft ... by RyJones on Wednesday February 10, 2021 @05:39AM (#26087582)
Worse: you can’t even scope it to an org, and some integration points are only available to org owners!

GitHub is terrible.

Re:Dependency Confusion: How I Hacked Into Apple, Microsoft ... by seg_lol on Wednesday February 10, 2021 @06:38AM (#26087957)
That explains why at a place I worked we had multiple github orgs for different subteams, and/or they were really cheap ... yeah confused now.
Re:Dependency Confusion: How I Hacked Into Apple, Microsoft ... by RyJones on Wednesday February 10, 2021 @06:43AM (#26087987)
We also have multiple orgs, but we hit the requirement that you only have one bot account. It would be super nice if GitHub allowed much tighter scoping for PATs.

I don’t know how many GitHub orgs the Linux Foundation has, but... hundreds? Having one bit account with wide permissions is a non starter

Re:Dependency Confusion: How I Hacked Into Apple, Microsoft ... by greggman3 on Thursday February 11, 2021 @01:21AM (#26098814)
Most integrations just ask for blanket all permissions. They do this because it means they can give you a list of repos and let you choose which ones to integrate their service into with no work on your part except "click yes to give us permission to do everything for you and ... we'll do everything for you"