When Fintech Gets Too Trusting: How I Stumbled Upon a Full-Blown PII Leak in a Nigerian Banking API
A fintech API allowed unauthenticated enumeration of customer records via a search endpoint and exposed real-time account balances through float account IDs. An attacker could harvest PII and target high-value accounts, with potential account takeover via brute-forceable OTPs.
Published on medium.com
I’m Paul Akinyomi, a passionate offensive security researcher and co-founder of Haytech Academy and Services (HAYTECH OPS) — where we empower innovation through security and technology education. I specialize in web and mobile application penetration testing and responsible disclosure.
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 authorization checks and rate limiting on API endpoints that expose sensitive customer data.
Impact
An attacker could harvest PII and account balances at scale, and potentially take over accounts via brute-forced OTPs, though the author did not escalate beyond test accounts.
What the attacker needed
No authentication required; knowledge of account number pattern; ability to send many requests
How it was found
- Create two test accounts and initiate parallel transfers to observe a race condition.
- Notice similar account numbers and test the search endpoint with a wildcard.
- Increment the last digits of the account number to enumerate other users' PII.
- Use obtained floatAccountId values to query the balance endpoint and retrieve real-time balances.
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 API let anyone look up customer details by guessing account numbers, and also revealed account balances. This means private information like emails and phone numbers could be collected in bulk, and attackers could identify rich targets. The report also mentions weak protections on password reset codes.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.