Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: medium
Valid

Cannot withdraw from MoneyVault in case of Emergency

Summary

Cannot withdraw from MoneyVault in case of Emergency.

Vulnerability Details

Only MoneyShelf can call the burn function in the CrimeMoney contract due to the modifier onlyMoneyShelf

function burn(address from, uint256 amount) public onlyMoneyShelf {
_burn(from, amount);
}

MoneyValut's withdrawUSDC will revert since it calls burn from the MoneyVault contract, denying USDC withdrawal.

Impact

Funds will be stuck in the contract forever

Tools Used

Manual Review

Recommendations

Fix the bug

Updates

Lead Judging Commences

n0kto Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

MoneyVault cannot burn or mint CrimeMoney

Godfather can add the role manually

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.