Attackers can exploit the public mempool to front-run updateClaimFeeParameters and updatePlatformFeePercentage
transaction by submitting claimThrone
transaction with higher gas price, claimming throne at lower claim fees and chance of winning higher prize amount
Blockchain transactions are visible in the public mempool before confirmation due to this, if owner tries to update the claimFee parameters (initialClaimFee and feeIncreasePercentage) to higher values. Attacker can submit transaction to claimThrone with lower claimFees
The contract lacks mechanisms like time-locks or commit-reveal
to delay these actions.
Likelihood: high
High likelihood due to easy mempool monitoring, automated MEV bots, and strong financial incentives in volatile markets.
Impact: high
User trust and platform reputation suffer, risking reduced adoption.
The attacker puts more ETH into the pot under the lower fee structure, receiving a larger pot than they would have if they had claimed after the fee increase
Append the following test to Game.t.sol
and run forge test --mt test_claimThroneFrontRun -vvvv
Use time-lock mechanism
to prevent the attack.
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.