Potential DoS in Laundrette::receiveAdmin as everybody can call the function, change the admin and prevent the Laundrette contract from calling some of the methods with onlyAdmin modifier
Malicious users can keep calling Laundrette::receiveAdmin, even after the godfather has brought back the admin rights to the Laundrettecontract viaKernel::executeAction. This loop could last forever and make the methods described in the Impactsession bellow basically unusable. There is even potential that a bot can be made, to check for transactions that try to change theKerneladmin back to theLaundrettecontract, and after such a transaction is executedLaundrette::receiveAdmin` to be executed also.
Laundrette::addToTheGang and Laundrette::quitTheGang will always revert, as they call the Kernel.sol methods which have the onlyAdmin modifier and the new admin will be the godfather, not the Laundrette contract.
Manual Review
Add isGodFather modifier, so that only the godfather can call that method.
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.