Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: high
Invalid

`withdrawUSDC` function not permissioned in modules

Summary

depositUSDC is external therefore, users can call this to withdraw USDC and to burn CrimeMoney without updating accounts of the module Shelf.sol

Vulnerability Details

function withdrawUSDC(address account, address to, uint256 amount) external {
withdraw(account, amount);
crimeMoney.burn(account, amount);
usdc.transfer(to, amount);
}

Impact

Misalignment between accounts balances in the Shelf contract and all the real movements

Tools Used

Manual review

Recommendations

To make the function permissioned.

Updates

Lead Judging Commences

n0kto Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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