Lucene search

K
code423n4Code4renaCODE423N4:2022-04-BADGER-CITADEL-FINDINGS-ISSUES-129
HistoryApr 20, 2022 - 12:00 a.m.

centralization risk

2022-04-2000:00:00
Code4rena
github.com
5

Lines of code

Vulnerability details

Impact

Can lead to unlimited minting of tokens

Proof of Concept

If any of the provided roles / actors get malicious, then unlimited number for tokens either for mint or redeem, can lead to loss for the protocol.
It should be onlyadmin based or either should be checked for large numbers/threshold or timelock maybe and should be verified by admin.

e.g.
CitadelToken.sol L#40

    function mint(address dest, uint256 amount)
        external
        onlyRole(CITADEL_MINTER_ROLE)
        gacPausable
    {
        _mint(dest, amount);
    }
}

The text was updated successfully, but these errors were encountered:

All reactions