Closed volodymyr-matselyukh closed 7 months ago
Ok, sending requests via postman works fine too. It doesn't matter whether I spinned the wheel during this hour or not. Without validation anyone can simply bombard the server with requests and get insane score. I still don't get whether that's a feature or a bug.
now, the issue is fixed. thanks
Bug Report
Overview
It's possible to get a way higher score by duplicating tab with spinning wheel and clicking spin in each browser tab.
Affected parties
Regular users. Whole idea of spinning wheel entertainment.
Impact
*1. People with this gap knowledge can gain a way more score than people without such knowledge.
Reproduction steps
*1. Visit this website: https://learnnear.club/wheel-of-transactions/
Root cause analysis
I believe there is no server side validation on wheel-spin request for already sent wheel-spin request for current hour.
Suggested fix
Before processing wheel-spin request the server should perform validation for whether the wheel-spin request came at the last hour. This fix should be easy because I see that there is already a mechanism to determine whether to show spin button. You can use the same mechanism to check whether the wheel-spin request should be processed or not.