Malicious gang members can make other gang members leave the gang.
The Laundrette::quitTheGang()
function lacks isAuthorizedOrRevert
modifiers, allowing malicious gang member to pass in the addresses of other gang members and revoke their gangmember
role.
malicious gang member can call the function with the Godfather's address, causing the Godfather to not only lose their gang member role but also their rightful privileges.
POC
Place the PoC into test/Laundrette.t.sol.t.sol
, and execute with
Malicious gang members can make other gang members leave the gang.
malicious gang member can cause the Godfather to lose their rightful privileges.
Manual review, Foundry
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.