Lucene search

K
code423n4Code4renaCODE423N4:2022-01-LIVEPEER-FINDINGS-ISSUES-193
HistoryJan 19, 2022 - 12:00 a.m.

[WP-M0] MINTER_ROLE can be granted by the deployer of L2LivepeerToken and mint arbitrary amount of tokens

2022-01-1900:00:00
Code4rena
github.com
3

Handle

WatchPug

Vulnerability details

function mint(address _to, uint256 _amount)
    external
    override
    onlyRole(MINTER_ROLE)
{
    _mint(_to, _amount);
    emit Mint(_to, _amount);
}

Using the mint() function of L2LivepeerToken, an address with MINTER_ROLE can burn an arbitrary amount of tokens.

If the private key of the deployer or an address with the MINTER_ROLE is compromised, the attacker will be able to mint an unlimited amount of LPT tokens.

We believe this is unnecessary and poses a serious centralization risk.

Recommendation

Consider removing the MINTER_ROLE, make the L2LivepeerToken only mintable by the owner, and make the L2Minter contract to be the owner and therefore the only minter.


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

All reactions