OpenID Connect (OIDC)
Abusing default or poorly configured Identity Provider IAM Trust Policies for privilege escalation
What is OIDC?
GitLab OIDC with AWS
GitLab AWS IAM Role Misconfigured Trust Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Federated": "arn:aws:iam::123456789012:oidc-provider/gitlab.com"
},
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {
"StringEquals": {
"gitlab.com:aud": "https://gitlab.com"
}
}
}
]
}GitLab AWS IAM Role Secure Trust Policy
GitLab Exploiting the Misconfigured Trust Policy
GitHub Actions OIDC with AWS
GitHub Actions AWS IAM Role Misconfigured Trust Policy
GitHub Actions AWS IAM Role Secure Trust Policy
GitHub Actions Exploiting the Misconfigured Trust Policy
Last updated