I was testing a web application when I discovered something unexpected. What began as a routine login page test quickly turned into finding a critical security issue — the application's complete API documentation publicly accessible without authentication.
Here's how I found it .
I started with the login page. The application was built with Angular. I opened DevTools and examined the source code, looking for any API endpoints embedded in the JavaScript bundles.
with a simple curl command
curl "https://example.com/main.24d731ff56bae4f9.js" | grep -oP 'https?://[^"\047]+' | sort -uand i found some interesting things
https://backendapi.example.com/
https://backendapi-test.example.com/The production API and test API URLs were exposed in the client-side code.
I started probing the test API
curl "https://backendapi-test.example.com/"This is the Response
API Hub is runningThe server was alive and revealing its technology stack.
I then tried the common Swagger UI path
curl "https://backendapi-test.example.com/swagger/index.html"Response: 200 OK
A full Swagger UI page loaded. I opened it in my browser.
So the Swagger documentation exposed everything
All API endpoints — over 200 of them
Transaction approval endpoints
Money transfer endpoints
Password management endpoints
Role management endpoints
Payment tokenization endpoints
It also revealed:
Internal class names and namespaces
Complete request/response schemas
Database field names
Authentication scheme (Bearer JWT)
Happy hunting, and always check the test API. You might just find the whole map.









Comments (2)