In the KittyPool::meowintKittyCoin
function, there is no check to verify if the user has enough collateral before allowing them to mint KittyCoin. This oversight can result in users minting any amount of KittyCoin without adequate collateral backing, leading to potential destabilization of the protocol.
Allowing users to mint KittyCoin without ensuring sufficient collateral can lead to:
Protocol Instability: If users mint more KittyCoin than their collateral can support, it may result in a deficit in the system, causing potential insolvency.
Loss of Confidence: Users may lose confidence in the protocol's stability and security if they perceive that the system can be manipulated to mint unbacked tokens.
Economic Exploits: Malicious actors might exploit this flaw to drain the protocol's funds or create hyperinflation within the system.
Manual Review
To ensure that users cannot mint more KittyCoin than their collateral allows, implement a collateral check before updating the user's minted amount and minting new tokens. Here’s an updated version of the meowintKittyCoin
function with the necessary checks:
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.