Sablier

Sablier
DeFiFoundry
53,440 USDC
View results
Submission Details
Severity: low
Invalid

Single step ownership transfer.

Summary

TransferAdmin() function of Adminable.sol uses single step ownership transfer which is not optimal.

Vulnerability Details

Here is the implementation of TransferAdmin() function:

function transferAdmin(address newAdmin) public virtual override onlyAdmin {
// Effect: update the admin.
admin = newAdmin;
// Log the transfer of the admin.
emit IAdminable.TransferAdmin({ oldAdmin: msg.sender, newAdmin: newAdmin });
}

This function directly sets admin to newAdmin. This is a very risky approach as admin can set incorrect address or the address set can be zero address.

Impact

All the onlyAdmin() function can be locked.

Tools Used

Manual Analysis

Recommendations

Implement a two step mechanism in which newOwner accepts the ownership with acceptOwnership() function.

Updates

Lead Judging Commences

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

Info/Gas/Invalid as per Docs

https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity

Support

FAQs

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