**I Found a Broken API in a Mobile App — Without Touching the App**
A staging API for a fintech app was publicly exposed with Swagger documentation, and several endpoints lacked authentication. An attacker could retrieve any user's profile by ID, including sensitive identity and bank details, and initiate transactions without a token.
Published on systemweakness.com
In the world of mobile app pentesting, many researchers spend hours reverse engineering APKs, running emulators, or setting up SSL pinning bypasses. But what if I told you that you could uncover a broken API, exploit it, and report a critical vulnerability — all without ever opening the app on your phone?
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 missing authentication and access control on a publicly reachable staging API, combined with poor separation between staging and production.
Impact
An attacker could enumerate user profiles containing national ID and bank details and initiate transactions, potentially enabling impersonation, fake payments, and data scraping.
What the attacker needed
Internet access; No account needed
The fix
The API was taken down after disclosure; it should be fixed by adding authentication, token enforcement, IP whitelisting for staging, and separating staging from production.
How it was found
- Search for subdomains and endpoints related to the app using passive recon tools and search engines.
- Find a forgotten staging subdomain indexed by the Wayback Machine that exposed Swagger documentation.
- Download the Swagger schema and load it in Swagger UI to list endpoints.
- Identify endpoints marked public that require no authentication.
- Use curl to request user profiles by incrementing IDs and enumerate sensitive data.
- Initiate dummy transactions that return a transaction ID without verification.
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.
An API is the set of web addresses an app uses to talk to its servers. Here, a test version of that API was left open on the internet, and some of its addresses did not check who was asking. That meant anyone who found the addresses could read other people's personal and banking information.
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.