Exploiting weak configurations in Amazon Cognito in AWS
From 2021, but probably still applicable today.
I’d attribute the high incidence of overly permissive policies to the piss poor documentation devoid of working examples. They state what features are available without highlighting the implications or the common gotchas. So much of it is left as an exercise to the reader.
Correct. The behavior will always exist and is not unique to Cognito. Any custom IdP (eg Okta) can federate a web identity to a role https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc.html
The assumed role should follow least privileges design and generally avoid managed policies. You can also use ABAC policies to simplify multi tenant controls. https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_attribute-based-access-control.html