Skip to content
Business logic Write-up Beginner

Bypass of Date and Value Restrictions in Expense Submission

The application only enforced date and value restrictions in the browser, so an attacker could intercept and modify the expense submission request to include a future date and a negative value, which the server accepted. This allowed manipulation of financial records.

medium.com

Published on medium.com

Hello, my name is Hossam Hussein. I am a Bug Bounty Hunter who loves learning about web security and finding vulnerabilities.

Hossam Hussein, 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

Impact

A malicious user could submit fake or incorrect expenses, manipulate financial records, and abuse internal systems, potentially causing data errors or financial loss.

What the attacker needed

A normal user account; ability to intercept HTTP requests

The fix

The server should validate the expense value and date on the backend, rejecting negative values and future dates.

How it was found

  1. Log in as a normal user and go to the Expenses page.
  2. Fill the expense form with valid data and click Save.
  3. Intercept the request with a proxy tool.
  4. Change the value to a negative number and the date to a future date.
  5. Forward the request; the server responds with success.

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 website checked for bad input only in your browser, not on the server. By using a tool to change the request after the browser check, the attacker could send a negative expense amount and a future date, and the server saved it without complaint. This is like a bouncer who only checks IDs at the front door but lets anyone in through the back.

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.

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.