News for hackers. Stuff that matters.
Re:Heroku April 2022 Incident Review by ezekg on Tuesday June 14, 2022 @01:49PM (#31743201)
> We began investigating how the threat actor gained initial access to the environment and determined it was obtained by leveraging a compromised token for a Heroku machine account. We determined that the unidentified threat actor gained access to the machine account from an archived private GitHub repository containing Heroku source code. We assessed that the threat actor accessed the repository via a third-party integration with that repository. We continue to work closely with our partners, but have been unable to definitively confirm the third-party integration that was the source of the attack

So they still don't know how it happened.

Re:Heroku April 2022 Incident Review by jrochkind1 on Tuesday June 14, 2022 @01:56PM (#31743300)
That's basically the only paragraph of new information in the whole... well, let's call it what it is, a press release basically.

It is a thing to know. That they had a token checked into source code that probably shouldn't have been, and that the attacker somehow got access to the source code in a private github repo.

* yeah, we still don't know how. Which is kind of important. But figuring out how they got access to a private github repo is to some extent back on github, at least potentially...

* it to some extent points back to github (fairly or unfairly); so how did they get access to the source code you were supposed to be protecting?

* it certainly reminds us the readers why we don't put secrets in source code repos. (Of course, they ultimately need to be stored somewhere, and that somewhere can always be breached. But having them in as few places as possible and places designated specifically for secrets, we can make sure that things like a Github OAuth token for a Github integration doesn't give access to your deploy secrets...)

* Which again makes me wonder... "via a third-party integration with that repository"... WAS it an integration that didn't even need source code read access, but had it due to Github's terribly non-specific integration auth permissions? I would love some more attention to that github problem as a result of this hullaballo. I kind of can't believe fixing integration permissions granularity has been such a low priority for a fairly well-resourced github. I guess it doesn't sell more accounts... it just loses you some once it results in a vulnerability, if that becomes known.

Re:Heroku April 2022 Incident Review by nightpool on Tuesday June 14, 2022 @02:15PM (#31743572)
> is to some extent back on github

How is it on Github? We know that it was a third-party integration that compromised. Almost every single third-party integration needs the ability to read source code. The fault here lies on Heroku for storing secrets that allowed access to their main customer database in a source code repo that was accessible to a third-party provider, as well as with the third party provider (whatever it was) for allowing their implementation to be compromised. At that point it's game over—your main database should never be accessible from your source code alone.

It is strange to me that they're certain it was accessed through a third-party Github integration, but they don't know which integration it was specifically. That feels like a failure of logging on Github's part, without any additional information.

Re:Heroku April 2022 Incident Review by jrochkind1 on Tuesday June 14, 2022 @03:24PM (#31744706)
> How is it on Github?…

The whole sentence I wrote was: "But figuring out how they got access to a private github repo is to some extent back on github, at least potentially..."

> …That feels like a failure of logging on Github's part, without any additional information.

There you go, you answered your own question too.

Re:Heroku April 2022 Incident Review by Rapzid on Thursday June 16, 2022 @02:00PM (#31769057)
You don't like granting report admin access to tokens that just need to read issues?

It's simple.

/S

Re:Heroku April 2022 Incident Review by dentarg on Tuesday June 14, 2022 @04:31PM (#31745632)
Re:Heroku April 2022 Incident Review by jarcoal on Tuesday June 14, 2022 @01:56PM (#31743310)
It's a little hard to parse parts of that paragraph, but it sounds like the repo (presumably hosted on GitHub) had access tokens granted to third party integrations (similar to Heroku being granted access to GitHub on behalf of their mutual users).

Assuming that's true, it should be trivial for GitHub to tell them which third party integration the token was associated with.

Re:Heroku April 2022 Incident Review by ectopod on Tuesday June 14, 2022 @03:43PM (#31744983)
AIUI, the repo contained a single token that gave access to Heroku. Additionally, a bunch of third party tools had legitimate access to the repo. Any one of them could have been used to steal the token.
Re:Heroku April 2022 Incident Review by jansan on Tuesday June 14, 2022 @02:05PM (#31743430)
Is it known who at Github can access private customer repos?
Re:Heroku April 2022 Incident Review by vorpalhex on Tuesday June 14, 2022 @02:09PM (#31743491)
I'd assume everyone who works there. They aren't encrypted or anything. If you have hardware access you have full github access.
Re:Heroku April 2022 Incident Review by jeremymcanally on Tuesday June 14, 2022 @03:34PM (#31744856)
But I can definitively say that any repo access is heavily logged. And this info is from like almost 10 years ago when I had first hand experience. I know they've upped their game in terms of repository access gating since then.