How I Broke a Financial App’s Pricing — By Sending Back What It Gave Me
The transaction creation endpoint accepted client-supplied pricing fields (fees, rates, tax) that should have been set by the quotation engine, allowing a user to override the locked-in pricing. An attacker could create transactions with arbitrary fees and taxes that persisted through approval and appeared in receipts, PDFs and CSV exports.
Published on medium.com
While testing a transaction creation workflow during a bug bounty program, I came across something interesting.
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 mass assignment: the server deserialised the entire request body into the transaction record without checking which fields the client was allowed to set, so server-owned pricing fields could be overridden.
Impact
A user could inject arbitrary pricing into transactions, corrupting financial records, reports, receipts and audit trails, and breaking reconciliation.
What the attacker needed
A user account able to create transactions; a valid quotation ID; ability to intercept and modify requests
The fix
The server should ignore or reject client-supplied values for server-owned pricing fields and always recalculate them from the quotation engine.
How it was found
- Create a normal transaction using a valid quotation ID and observe the server-generated pricing fields in the response.
- Intercept a new transaction creation request and manually add the pricing fields with altered values.
- Submit the request and observe that the server accepts and reflects the client-supplied values.
- Approve the transaction through the Maker-Checker workflow and confirm the fake pricing persists.
- Check the transaction detail page, API response, receipt, PDF export and CSV export to see the manipulated values everywhere.
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.
When you create a transaction, the server normally calculates fees and taxes for you and stores them. Here, the server also let the user send those same fields back with different values, and it trusted them instead of recalculating. That means someone could set a fake fee or tax on a real transaction, and the system would treat it as genuine.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.