News for hackers. Stuff that matters.
Re:It's now possible to find the AWS Account ID for any S3 B... by sroussey on Monday February 26, 2024 @12:55PM (#39514533)
Well, that assumes that the ID is cryptographically random. Perhaps that is a bad assumption.
Re:It's now possible to find the AWS Account ID for any S3 B... by jameshart on Monday February 26, 2024 @01:37PM (#39515130)
My general assumption is not that they’re random, but at least that they’re not correlated; in particular that Amazon is not in the habit of handing out, like, account IDs 676363687000 - 676363687999 to a single organization. Even if they did hand out a sequential batch of 1000 account IDs, it would be more likely to be 676363687541 - 676363688540 than a set with a single consistent prefix.

Odds are that an account wildcard match like 676363687* will just match a few hundred entirely random AWS accounts.

Re:It's now possible to find the AWS Account ID for any S3 B... by naniwaduni on Monday February 26, 2024 @04:17PM (#39516864)
> in particular that Amazon is not in the habit of handing out, like, account IDs 676363687000 - 676363687999 to a single organization

Honestly, wouldn't surprise me that much if they were willing to accommodate this if for sufficiently large accounts. It'd still pretty sketchy to design your access control around, but it wouldn't be unrealistic.

Re:It's now possible to find the AWS Account ID for any S3 B... by dpedu on Monday February 26, 2024 @03:41PM (#39516530)
I once was involved in creating two (linked) amazon accounts at the "same" time, and ended up with account IDs of which the first 4 digits are identical.
Re:It's now possible to find the AWS Account ID for any S3 B... by jameshart on Monday February 26, 2024 @06:46PM (#39518288)
A namespace you and only 100 million other accounts share - probably reasonable to just grant access to “1234*”.
Re:It's now possible to find the AWS Account ID for any S3 B... by pc86 on Monday February 26, 2024 @01:06PM (#39514710)
Even if it's not that doesn't mean pattern matching IDs is good.
Re:It's now possible to find the AWS Account ID for any S3 B... by sroussey on Monday February 26, 2024 @07:29PM (#39518579)
Oh god, no. Seems like a bad idea indeed! But might give some insight into their system.
Re:It's now possible to find the AWS Account ID for any S3 B... by dclowd9901 on Monday February 26, 2024 @01:11PM (#39514792)
If it's sequential, that somehow seems worse?
Re:It's now possible to find the AWS Account ID for any S3 B... by brickteacup on Tuesday February 27, 2024 @12:45AM (#39520547)
it's irrelevant whether they're "cryptographically" random, all that matters is that account IDs are not controlled by the user and therefore have no logical relation to any access-control policies the user may wish to implement