[H-2] Malicious Owner Can Frontrun Whale Claim to Steal Entire Deposit via 100% Platform Fee
The updatePlatformFeePercentage(uint256) function allows the onlyOwner to arbitrarily change the platform
fee to any value up to 100%. This fee is applied immediately in the claimThrone() function. A malicious owner
can frontrun high-value claimThrone() transactions by first setting platformFeePercentage = 100, causing the
entire ETH deposit from the next user to be siphoned as platform fees instead of contributing to the prize
pot.
This issue highlights the centralized and overpowered nature of the contract owner, who has unilateral control over multiple critical parameters without any timelock or access mitigation.
Impact:
1.Complete theft of user funds (e.g., if a whale sends 1000 ETH, the owner can steal all of it via 100% platform fee).
2.Undermines game fairness and trust, allowing owner to exploit participants.
3.Unilateral control creates a centralization risk, making the protocol non-trustless.
4.Other functions where the owner can abuse power:
Add Upper Bound to Platform Fee:
Enforce a maximum platform fee cap (e.g., 10%) in the modifier:
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.