The IndexToken::mint function lacks access control, allowing an attacker to mint uint256.max tokens, permanently blocking further minting and disabling NFTLiquidator::liquidateNFT.
The IndexToken::mint function lacks proper access control, allowing anyone to mint an unlimited supply of IndexToken. While an ERC-20 token’s totalSupply cannot exceed uint256.max, an attacker can mint a large amount of tokens, reaching this limit. Since IndexToken is not burnable, once the supply is maxed out, no further tokens can be minted.
This results in a permanent denial-of-service (DoS) for the NFTLiquidator::liquidateNFT function, which likely depends on the ability to mint new IndexToken, making liquidation operations completely blocked.
Attacker can block the NFTLiquidator::liquidateNFT function permanently.
Create a new test file at test/unit/core/tokens/IndexToken.test.js
, and add the following code.
Run
only allow trusted addresses to mint the IndexToken
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.