The Hunt for ALBeast: A Technical Walkthrough
A configuration-based vulnerability in applications using AWS ALB authentication allows attackers to forge JWT tokens with arbitrary identities and issuers, bypassing authentication if the application does not validate the token's signer or issuer and is directly accessible. Attackers can then access affected applications without legitimate credentials.
Published on miggo.io
When Miggo onboards customers, we gain visibility into application behaviors from within. This unique perch allows Miggo Research to discover and address new vulnerabilities impacting thousands of organizations.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
Attackers could bypass authentication and access affected applications, potentially compromising over 15,000 applications, though only those directly accessible and not validating signer or issuer are vulnerable.
What the attacker needed
Application directly accessible; No signer validation; No issuer validation (optional)
The fix
Applications should validate the signer field in the JWT header and restrict target security groups to only receive traffic from the ALB, as per updated AWS documentation.
How it was found
- Create an ALB in the target region pointing to a controlled IdP.
- Mint a token with desired claims using the controlled IdP.
- Reconfigure the ALB to target the target issuer.
- Wait for the token to expire, then refresh it.
- Send the refreshed token directly to the target application, bypassing the ALB.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When a website uses a cloud service to check who you are, it trusts a digital token. If the website doesn't check that the token really came from that service, an attacker can make their own token and pretend to be anyone. This report shows how that can happen with Amazon's load balancer authentication.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.