test:test not Part 2
A Keycloak identity provider used weak passwords, including the realm name, for employee accounts. An attacker who knew an employee email could log in and access multiple integrated applications and sensitive data such as Vault, AWS S3, and API keys.
Published on medium.com
Just in case you’re wondering. This is not Part 2.
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
Root cause
Likely weak password policy and use of predictable passwords such as the realm name for employee accounts.
Impact
The attacker could access multiple in-scope and out-of-scope domains and sensitive systems including Vault, AWS S3, private keys, API keys, ArgoCD, and Minio.
What the attacker needed
Knowledge of an employee email; Keycloak login page accessible; weak password policy
How it was found
- Find Keycloak login pages on subdomains.
- Try common weak username and password combinations, which fail.
- Obtain an employee email from a previous report.
- Try the Keycloak realm name as the password for that email, which succeeds.
- Use the same password on other accounts and Keycloak instances to gain further access.
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.
Keycloak is a login system that many apps use to check who you are. Here, the password for some accounts was simply the name of the Keycloak 'realm' (a group of users), which is easy to guess. Once logged in, the attacker could open other tools that trust Keycloak, like Vault (a secret store) and AWS (cloud services).
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.