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.
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.
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
- Start creating a non-disclosure agreement.
- Set the start date far in the future and the end date eight days before it.
- Save the contract; the system accepts it without error.
- Send it to negotiation.
- Skip the approval step (allowed by a setting).
- 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.