Description: The Laundrette::retrieveAdmin function is misconfigured. Instead of reading the value of the public admin address from the Kernel contract, the function calls the Kernel::executeAction function and attempts to change the admin address with the executor's address. The Kernel::executeAction function is guarded by an onlyExecutor modifier. Because msg.sender in the context of the Kernel contract will be the Laundrette contract and not the kernel.executor() address, this function will always revert.
Impact: Users can not read the value of the kernel.admin() address by calling this function.
Proof of Concepts: Insert the code below in the Laundrette.t.sol file.
Recommended mitigation: Change the function by following the code sample below
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.