Easy Bug__Easy Bounty
A community platform's poll feature relied on the visitor's own device clock to decide whether a poll had expired, so changing the local system time let a user see results early and cast votes after the deadline. The late vote was permanently recorded and changed the final percentages.
medium.com
Published on medium.com
I’m Yahia, a junior penetration tester, and today I’d like to share a simple but interesting bug that many testers overlook during penetration tests and bug bounty hunting.
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 poll's expiry check was performed against the client device's clock rather than the server's own time, so the restriction could be bypassed by altering the local system time.
Impact
A user could view results before the deadline and cast votes after a poll closed, permanently skewing the percentages and any decisions or rewards tied to them.
What the attacker needed
A normal user account; ability to change the device clock
The fix
The expiry and voting checks should be enforced using the server's own time rather than the visitor's device clock; the text says the issue was confirmed and fixed by the security team.
How it was found
- Move the laptop clock forward past the poll's expiry time and reload the page.
- Observe that the final poll results are shown while the poll is still running in real time.
- Wait until a poll has genuinely expired, then set the system clock back to before the deadline.
- Refresh the page and submit a vote, which the application accepts.
- Restore the correct clock and confirm the vote was permanently recorded.
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 poll has a closing time, and the website should ask its own server what time it is before accepting a vote. Here the website apparently trusted the clock on the visitor's own computer instead. Because anyone can change that clock, a user could pretend a closed poll was still open and vote anyway.
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.