Errors to API Exposure
A subdomain returned a 503 error, but directory enumeration found a /refund endpoint. A WADL file there exposed the full Refund API, including sub-endpoints and methods, when a detail parameter was set to true.
infosecwriteups.com
Published on infosecwriteups.com
I hope you’re learning something which can be helpful in your bug hunting journey.
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 API documentation endpoint (application.wadl) was publicly accessible and allowed a parameter to reveal full API details without authentication.
Impact
The full Refund API, including its sub-endpoints and methods, was exposed, which could help an attacker map and attack the API; the security team said it was out of scope because it was a QA environment, but they eventually restricted the exposure and fixed the issue.
What the attacker needed
Target has a subdomain with a 503 error; Directory enumeration finds a /refund endpoint; application.wadl file is accessible; detail=true parameter is supported
The fix
The API exposure was eventually restricted and the issue was fixed.
How it was found
- Noticed a subdomain returning a 503 Service Unavailable page.
- Ran directory enumeration with dirsearch and found a /refund directory returning 200 OK.
- Opened the /refund endpoint in a browser.
- Ran dirsearch on the /refund endpoint and found an application.wadl file.
- Opened application.wadl and discovered a detail=true parameter that exposed the full Refund API.
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.
The researcher found a hidden part of a website that listed all the ways to interact with a refund service. By adding a simple setting to the web address, the full list of commands and addresses became visible. This is like finding a menu that shows every dish and how to order it, which should normally be kept private.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.