Skip to content
Business logic Write-up Beginner

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.

dheerajdonikena Follow

Published on medium.com

While testing a transaction creation workflow during a bug bounty program, I came across something interesting.

Dheeraj, on medium.com

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

  1. Create a normal transaction using a valid quotation ID and observe the server-generated pricing fields in the response.
  2. Intercept a new transaction creation request and manually add the pricing fields with altered values.
  3. Submit the request and observe that the server accepts and reflects the client-supplied values.
  4. Approve the transaction through the Maker-Checker workflow and confirm the fake pricing persists.
  5. 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.

More by dheerajdonikena

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.