Description: The Laundrette::quitTheGang function can be called by anyone and it remove the gangmember role of the account. A malicious gangmember can call this function to remove the gangmember role of other gangmembers, including the removel of the gangmember role for the godfather address.
Impact: A gangmember can go rogue and remove all his partners in crime from the gang.
Proof of Concepts: Put the code below in the Laundrette.t.sol file
Test output
Recommended mitigation: Use the isGodFather modifier on the quitTheGang function to make it permissioned or add a check that enforces that a gang member can only remove his own gangmember role.
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.