Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: low
Valid

`retrieveAdmin()` is not callable

Summary

retrieveAdmin() is not callable by anyone

Vulnerability Details

function retrieveAdmin() external {
kernel.executeAction(Actions.ChangeAdmin, kernel.executor());
}

This function is in the Laundrette contract so the admin, it's trying to call executeAction() that has the modifier onlyExecutor(), so the call will revert, since msg.sender was the admin, not the godfather

Impact

Admin cannot be changed anyone, except the owner if he bypasses retrieveAdmin() and call it directly to change the admin to his address

Tools Used

Manual review

Recommendations

Fix the bug

Updates

Lead Judging Commences

n0kto Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

`retrieveAdmin` not working

Support

FAQs

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