The Art of Pwning Okta For Profit and Fun
A Backstage developer portal exposed an Okta API token on a configuration page that was reachable with guest access. The token allowed the researcher to read over 10,000 employees' personal data and to deactivate, reactivate or delete Okta users and add security devices.
Published on whoisshuvam.medium.com
In July, while hunting in a Hackerone program I found a vulnerability allowing me to see all more than 10K employee PII that had okta account.
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 Backstage instance allowed unauthenticated guest access and exposed a sensitive Okta API token on a configuration page, with no access control on that page.
Impact
The researcher could read more than 10,000 employees' personal data and could deactivate, reactivate or delete Okta users and add new security devices for them.
What the attacker needed
Guest access to the Backstage portal; the /dev/config page is reachable; a valid Okta API token is exposed
How it was found
- Find the Backstage application through Shodan by its favicon hash.
- Sign in as a guest.
- Confirm the host belongs to the target company by checking a GitHub username found on the CI/CD page.
- Navigate to the /dev/config page and read the disclosed Okta access token.
- Use the token in Okta API requests to list users, API tokens and applications.
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.
A developer portal is a website that helps staff build and manage software. It was letting anyone in as a guest, and one of its pages showed a secret password-like token for Okta, the system that manages staff logins. With that token, the researcher could read and change employee accounts.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.