Scruffy Pastel Antelope
High
The BoostStablecoin
, MasterAMO
, andMinter
contracts are vulnerable to unauthorized upgrades due to the absence of the _authorizeUpgrade
function, which should restrict upgrade operations to the contract owner or an authorized party. Without this function, the upgradeability mechanism becomes insecure, allowing potential unauthorized actors to upgrade the contract and alter its core functionality.
Missing of _authorizeUpgrade
function is contracts cause that the contract is going to be upgraded by unauthorized parties, which can also cause loss funds and loss protocol functionality
No response
Attacker upgrade the contracts according to his advantage and he can steal all the funds.
No response
- Total control over the token's functionality, including minting, burning, and pausing operations.
- Potentially malicious changes to the contract that could harm token holders and the protocol’s integrity.
No response
Through adding below function we can mitigate the above problem
function _authorizeUpgrade(address) internal override onlyOwner {}