The Frontend Lied: How a Free Account Could Delete Production API
An Angular developer portal enforced admin-only access in the frontend router guard, but the Spring Boot backend did not repeat the role check on the /manage/ API endpoints. A free self-registered external user could read, modify, create and delete production OpenAPI specification files, and two specs were actually deleted, causing the public endpoints to return 404.
There’s a class of vulnerability that’s easy to miss if you only test through the browser: frontend-only authorisation enforcement. The pattern looks like this:
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 backend API endpoints under /api/devportal/manage/* and /api/devportal/ndc/pages/* lacked the role check that the Angular route guard applied in the frontend, so authorisation was enforced only in the browser.
Impact
A free external account could read, modify, create and delete production API specification files, and two specs were actually deleted so the public endpoints returned 404, breaking documentation that third-party integrations relied on.
What the attacker needed
A free self-registered external account; email verification completed; ability to read the JavaScript bundles
The fix
The backend should independently enforce the same admin role check on every /manage/ and NDC endpoint that the frontend guard applies; the text says the client restored the specs and was investigating the gap, not that it was fixed.
How it was found
- Register a free external developer account through the external SSO and verify the email.
- Read the JavaScript bundles to find the admin API URLs under /api/devportal/manage/.
- Send a GET to the admin API-reference endpoint with the external user session and observe 200 instead of 403.
- Back up the target spec, then send a PUT to modify it and restore the original afterwards.
- Back up two specs, send a DELETE to each, and confirm the public endpoint returns 404.
- Test the same missing check on the NDC documentation pages with a PUT.
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 website often has two parts: the pages you see in the browser, and the server behind them that holds the data. Here the browser pages correctly hid the admin screens from ordinary users, but the server never checked who was asking, so anyone with a free account could call the server directly and change or delete admin files. The lesson is that hiding a button is not the same as locking the door.
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.