The updatePlatformFeePercentage() function should allow the owner to adjust platform fees within reasonable bounds to maintain sustainable game economics while ensuring the pot continues to grow from player contributions. Platform fees should represent a modest percentage (typically 5-20%) that allows the contract owner to earn revenue without destroying the core game incentive structure where players compete for an accumulating prize pot.
The updatePlatformFeePercentage() function only validates that the new percentage is between 0-100% but lacks reasonable upper bounds, allowing the owner to set platformFeePercentage = 100%. When set to 100%, all future claim fees are diverted to the owner's platform balance instead of contributing to the pot, effectively converting the game from a competitive prize mechanism into a direct profit extraction tool. This breaks the fundamental game economics by ensuring the pot never grows, eliminating player incentives to participate and transforming the contract into a disguised donation mechanism for the owner.
Likelihood:
This attack becomes viable whenever the owner decides to maximize short-term profits over long-term game sustainability, as the function can be called at any time without player consent or advance notice to immediately redirect all future revenues
The vulnerability activates through gradual fee increases that avoid immediate detection, allowing the owner to incrementally raise fees from reasonable levels to 100% over time while players remain engaged in the game mechanics
Impact:
Complete elimination of pot growth and prize accumulation, as 100% of all claim fees are diverted to the owner's platform balance instead of contributing to the competitive prize pool that motivates player participation
Destruction of the core game economics and player incentive structure, effectively converting the competitive game into a disguised donation mechanism where players unknowingly fund the owner's profits while receiving no meaningful prize potential
This PoC proves the vulnerability by demonstrating that the owner can legally set platform fees to 100%, effectively redirecting all player claim fees to their own balance. The tests show multiple attack scenarios including direct 100% fee setting,
Add a reasonable upper bound (e.g., 20%) to prevent the owner from setting excessive platform fees that would destroy game economics
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.