The Adminable.sol
contract allows the current admin to transfer the admin rights to other user/ new admin. How ever it does not follow the security standard of ownership transferring.
Lets have a look at transferAdmin
function :
There is no zero address check and also no two step transfer flow.
The single step transfer of admin role is vulnerable to wring transfers like the address does not exist or to address(0)
.
Manual Review
Add two step transfer flow and also add check for address(0) for safety.
https://github.com/Cyfrin/2024-05-Sablier/issues/1
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.