Bypassing Subscription Expiry with Client-Side Time Manipulation
The platform checked subscription expiry using the device's local clock instead of a server-side timestamp. An attacker could set their device clock back to keep using an expired subscription.
medium.com
Published on medium.com
Let’s dive straight to it. While exploring a subscription-based platform, I stumbled upon an intriguing flaw in how subscription expiration was being validated.
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 application trusted the client-side system time to determine subscription validity instead of checking a server-side timestamp.
Impact
A user could bypass subscription expiry and continue accessing paid features without renewing, though the report notes this is low impact because most users would not bother and changing the system clock affects other apps.
What the attacker needed
A valid subscription; ability to change device clock
The fix
The subscription expiry should be validated on the server using a trusted timestamp rather than relying on the client's clock.
How it was found
- Buy a one-month subscription voucher.
- Wait until the subscription expiration date is near.
- Open the device's date and time settings, disable automatic time, and set the clock back.
- Log back into the platform and observe that the subscription still appears active.
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 subscription is a paid plan that lasts for a set time. This platform decided whether your plan was still active by looking at the clock on your own device. Because you can change that clock, you could make an expired plan look active again.
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.