The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: low
Invalid

SmartVaultV3::setOwner function does not validate new owner address

Summary

SmartVaultV3::setOwner function does not validate new owner address

Vulnerability Details

SmartVaultV3::setOwner function does not validate new owner address. The function does not validate the '_newOwner' address. It should ideally ensure that '_newOwner' is not a zero address (address(0)) to prevent the contract from being left without an effective owner, which could result in a loss of administrative control over the contract.

Impact

an accidental or incorrect setting of the new owner to a zero address leads to loss of admin control over the contract. this is a critical role.

Tools Used

Manual

Recommendations

require(_newOwner != address(0), "New owner cannot be the zero address");
owner = _newOwner;
}```
Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

informational/invalid

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.