Unauthenticated API Endpoint Exposes SMS Account Balance — An I
An API endpoint on a telecom SMS platform returned an account's SMS credit balance without requiring any authentication, session or token. Anyone who knew or discovered a valid username and API key in the URL could read that balance.
Published on g0w6y.medium.com
During security research, I discovered an unauthenticated API endpoint on a telecom service provider’s SMS platform. The API discloses sensitive account details — specifically, the user’s SMS credit balance — without requiring any authentication.
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 endpoint performed no authentication or authorisation check and relied only on credentials passed in the URL query string.
Impact
The exposure is read-only and did not immediately allow sending SMS, but it could aid reconnaissance or social engineering, and the API key in the URL could leak through logs, history or referrer headers and may grant further access if reused.
What the attacker needed
Valid username and API key; network access to the endpoint
The fix
The endpoint should require proper authentication and authorisation and should not accept secrets in the URL.
How it was found
- Open the API endpoint URL directly in a browser or with a command-line tool.
- Supply the username and API key as URL parameters.
- Read the JSON response containing the account balance.
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 a way for programs to talk to each other over the web. This one was meant to show an account's SMS credit, but it did not check who was asking, so anyone with the right link could see the number. The link also carried a secret key in plain view, which makes it easy to leak.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.