admin:admin123 — How Default Keycloak Credentials on a Cargo Training Environment Exposed 766 Employee Accounts
An internet-facing Keycloak training environment for an airline's cargo division still accepted the factory default admin credentials, allowing an attacker to read the full list of 766 employee accounts and internal infrastructure details. The same default credentials had been fixed on production 18 days earlier but not on cloned environments.
Default credentials are the oldest vulnerability in the book. Every security awareness training module mentions them.
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 the training environment was cloned from a template that retained Keycloak's factory default admin password, and the later credential rotation on production was never propagated to the cloned instances.
Impact
An attacker could read 766 employee account identifiers and internal infrastructure details, and with brute-force protection disabled could attempt password guessing against those accounts, though the text does not claim any account was actually compromised.
What the attacker needed
Internet-facing Keycloak instance; default admin credentials unchanged; no authentication needed to reach login
The fix
The training instance's default credentials should be rotated and a configuration-management or CI/CD check should fail any deployment that still accepts the default admin password.
How it was found
- Use the Wayback Machine CDX API to list archived URLs under the target domain and extract unique hostnames.
- Fetch the OIDC discovery document on each hostname to confirm Keycloak and the realm name.
- Send a password grant token request to the master realm's admin-cli client with the default admin credentials on each host.
- Use the returned admin token to list realms and then page through users in the application realm.
- Read the realm configuration to check brute-force protection settings.
- Read the client configuration and the serverinfo endpoint to collect redirect URIs and system details.
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 companies use to manage who can access their apps. It ships with a built-in administrator account whose default password is well known, so anyone who finds the login page and tries that password can get in unless it has been changed. Here the company had changed it on its live system but forgot to change it on a test/training copy that was still reachable from the internet.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.