Normal Behavior: A minting function for a stablecoin or collateral token should be restricted to a centralized authority (Owner/Minter role) or a specific set of logic to maintain a controlled supply and simulate a real-world environment.
Specific Issue: The mint function in the MockUSDC contract is external and lacks any access control modifiers (like onlyOwner). This allows any address, including malicious actors or unauthorized contracts, to mint an infinite amount of USDC to themselves.
Likelihood:
This can be called anytime to drain the protocol
Impact:
Loss of funds
Paste this test functon in NFTDealersTest
Add an Ownable pattern to the contract to ensure that only the deployer can distribute tokens.
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.
The contest is complete and the rewards are being distributed.