Any user can retrieve the admin role for the Godfather
by calling the function retrieveAdmin
According to the documentation, only the Godfather
should be able to call that function and only when he needs it.
”This contract is the admin of Kernel.sol to grant and revoke roles. A function permit the godfather to retrieve the admin role when needed.”
The Godfather
lose the control over retrieving the Admin role
Manual review
Make this change to the code:
function retrieveAdmin() external {
function retrieveAdmin() external isGodFather {
kernel.executeAction(Actions.ChangeAdmin, kernel.executor());
}
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.