Any user with role "gangmember" can call the function quitTheGang
passing the account of any other gangmember
Any user with gangmenber role can keep forcing to quit other gangmember users due to a lack of access control in the quitGang
function.
HIGH - Denial of service, malicious user can remove users from gang, including the godFather, making godFather unable to use some of the functionality.
Foundry test:
Add a check to verify that the account being passed is the same as msg.sender, or depending on the expected functionality add the isAuthorizedOrRevert
modifier to the quitTheGang
function.
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.