Skip to content
Misconfiguration Write-up Beginner

A Simple Page Source View Uncovered a Critical Keycloak Vulnerabi

The Keycloak master realm was publicly reachable and had self-registration enabled without email verification, so anyone could create an account in the most privileged realm. The author registered an account and gained access to the master realm account console, but the text does not show any further privilege escalation or data access.

Vaibhav Kumar Srivastava Follow

Published on codewithvamp.medium.com

Some discoveries begin with sophisticated scanners, payloads, or fuzzers. This one began with something as simple — and old-school — as right-click → View Page Source.

Vaibhav Kumar Srivastava, on codewithvamp.medium.com

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 master realm was exposed to the internet with user registration enabled and email verification turned off, instead of being restricted to administrators.

Impact

An unauthenticated attacker could create an account in the master realm and access its account console, but the text does not demonstrate any further access to other users or administrative functions.

What the attacker needed

Internet access to the master realm; no account needed

How it was found

  1. View the page source of a public page and notice Keycloak openid-connect paths.
  2. Navigate directly to the master realm account endpoint.
  3. See the master realm login page and click the Register button.
  4. Fill in the signup form with an internal-looking email address.
  5. Log in with the new account and reach the master realm account console.

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 groups users into 'realms'; the 'master' realm is the one meant only for administrators. Here the master realm's login and signup pages were open to the internet, and signup did not check that the email address belonged to the person. That let a stranger make an account in the administrators' realm, though the write-up stops before showing what that account could actually do.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by Vaibhav Kumar Srivastava

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.