Submitted by Alex the Entreprenerd, also found by IllIllI
veTokenMinter allows any operator to mint new tokens, thats fine in the context of it being used for:
However because of the open ended system that allows any address to be set as operator, the system allows the admin to set themselves as the operator and to mint an excess amount of tokens, diluting other users.
Because this seems to be used exclusively by the VeAssetDepositor and the Booster hardcoding these two addresses would provide stronger security guarantees.
addOperator(malicious, {from: gov})
mint(malicious, AMOUNT, {from: malicious})
Set the minters as immutable to provide stronger security guarantees.
jetbrain10 (veToken Finance) acknowledged, but disagreed with severity and commented:
Alex the Entreprenerd (judge) commented:
