Skip to content
Business logic Write-up Beginner

Simple Logic Breaks Big Systems: The Contract That Ended Before It Started

The contract management platform accepted a contract whose end date preceded its start date, and allowed it to proceed through negotiation, signing and final certification. An attacker could create an officially certified contract with impossible dates, undermining the platform's trustworthiness.

default_Ox Follow

Published on medium.com

We all like finding complicated bugs — the kind that takes days to figure out and makes you feel like a genius hacker. But sometimes, the best finds come from just asking software a really stupid question.

default_0x, 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 the server trusted client-supplied dates without validating that the start date precedes the end date.

Impact

The platform could issue officially certified contracts with impossible dates, damaging trust in its legal documents; the text does not claim data theft or unauthorised access.

What the attacker needed

Access to the contract creation feature; ability to sign as both parties

The fix

The system was fixed to check dates on the server.

How it was found

  1. Start creating a non-disclosure agreement.
  2. Set the start date far in the future and the end date eight days before it.
  3. Save the contract; the system accepts it without error.
  4. Send it to negotiation.
  5. Skip the approval step (allowed by a setting).
  6. Sign the document as both parties using the built-in signing tool, producing a final certified PDF.

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.

A business logic flaw is when a program follows its rules but the rules themselves are missing a sensible check. Here, the website let someone enter an end date earlier than the start date, and the server never verified the order. That meant a legally certified document could be produced with impossible dates.

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 default_Ox

View all

3 more disclosed reports, 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.