Extending Free Trials with Just a Clock Change: A Subscription By
The application trusted the client's system clock to determine the remaining free trial period. An attacker could roll back their system date to extend the trial indefinitely, gaining free access to premium features.
Published on medium.com
I’m Abhishek Sharma, a cybersecurity enthusiast and bug bounty hunter passionate about discovering and reporting security flaws that help make the internet safer. I focus on web application security, subscription logic flaws, authentication issues, and access control vulnerabilities.
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
The application relied on the client-side system date to calculate trial validity instead of checking expiry on the server-side database.
Impact
Users could keep rolling back their clocks to enjoy free features forever, leading to revenue loss and scalable abuse.
What the attacker needed
A free trial account; ability to change system clock
The fix
The trial expiry should be enforced on the server using a trusted time source and database records, not the client's clock.
How it was found
- Start a free trial and note the remaining days.
- Change the local system date to an earlier date.
- Refresh the website and observe the trial balance increased.
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 free trial is a limited-time free access to a service. This website checked how many days were left by looking at the date on the user's own computer, not on its own server. So a user could simply change their computer's date to an earlier day and the website would think more trial days remained.
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.