Authentication Bypass & Information Disclosure in a Fortune 500 C
An external API gateway exposed full internal API documentation and had inconsistent authentication enforcement, where some endpoints bypassed the Okta login redirect and reached the backend. An attacker could use this to map internal financial document operations and potentially enumerate identifiers for BOLA/IDOR attacks.
Published on medium.com
During a routine reconnaissance exercise, I identified a publicly indexed external API gateway belonging to a Fortune 500 Consumer Goods Company. The gateway exposed full internal API documentation — including schemas for sensitive financial operations — and exhibited inconsistent authentication enforcement across…
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 authentication middleware was applied selectively to some endpoints but not others in the same controller, and API documentation was left publicly accessible.
Impact
Internal API architecture and financial document schemas were publicly exposed, and the authentication bypass could allow an attacker to enumerate identifiers for BOLA/IDOR attacks, though no protected data was directly accessed according to the triager.
What the attacker needed
None
The fix
Authentication should be enforced uniformly on all endpoints, public API documentation should require authentication or be removed, technology headers should be suppressed, and error handling should be generic.
How it was found
- Use Google dorks to find an indexed API subdomain and its public help/documentation page.
- Confirm the host is live and note technology headers using Shodan.
- Send a request to an unauthenticated health check endpoint and observe a 200 response.
- Send a request to an authenticated control endpoint and observe a 302 redirect to Okta login.
- Send a POST request to a document download endpoint without authentication and observe a 500 error, indicating the request reached the backend.
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.
Some parts of a website's API were supposed to require a login, but one endpoint did not check for a login and instead processed the request directly. The same site also publicly listed all its internal API endpoints and parameters, which helps an attacker plan further attacks.
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.