Changing engine.nft contract breaks vaults #130
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
cmichel
Vulnerability details
Governance can change the
engine.nft
address which is used by vaults to represent collateralized debt positions (CDP).When minting a vault using
MochiVault.mint
the address returned ID will be used and overwrite the state of an existing debt position and set its status toIdle
.Impact
Changing the NFT address will allow overwriting existing CDPs.
Recommended Mitigation Steps
Disallow setting a new NFT address. or ensure that the new NFT's IDs start at the old NFT's IDs.
The text was updated successfully, but these errors were encountered: