News for hackers. Stuff that matters.
Re:It's now possible to find the AWS Account ID for any S3 B... by paulddraper on Monday February 26, 2024 @03:45PM (#39516577)
> the AWS policy execution has a number of “operators” and “operands”

That is correct.

The IAM condition language is flexible and does not prevent you from doing strange things.

Re:It's now possible to find the AWS Account ID for any S3 B... by jameshart on Monday February 26, 2024 @06:43PM (#39518269)
It’s a consequence of weak typing choices - not an inevitable result of allowing flexibility.

Doing glob matching on account IDs is like doing concatenation with guids, applying a bitshift to a UTF8 string, or running a regex on an integer. It is a nonsensical operation, and - as shown here - results in surprising security properties of the resulting system.

Surprising security properties are an undesirable result in an access control policy language.

Re:It's now possible to find the AWS Account ID for any S3 B... by paulddraper on Monday February 26, 2024 @07:46PM (#39518683)
Of course it's possible to create a more sophisticated system with less possibility for user error.
Re:It's now possible to find the AWS Account ID for any S3 B... by asdfaoeu on Tuesday February 27, 2024 @06:50PM (#39531885)
They have ARN's which include the account which a glob match is useful. Something like "arn:aws:*:*:1234567890:*" is useful but "arn:aws:*:*:1234567*:*" isn't