The WinningToken contract's owner can mint unlimited tokens.
An attacker can gain control of adminAddress
, then calls setAdmin
to take over token ownership and mints unlimited tokens:
Also, a malicious admin can decide to mint tokens for themselves without restrictions, they can inflating supply:
If compromised, this could lead to unlimited token minting and inflation.
Foundry
VS Code
Implement a capped supply for the token
Add minting limits or timelocks
Mints new tokens upon game completion or cancellation for token-based games
Mints new tokens upon game completion or cancellation for token-based games
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.