Laundrette::quitTheGang
allows any gang member to revoke the gangmember
role from any other member. This can lead to unauthorized removals of gang members, disrupting the functionality and security of the protocol.
Laundrette::quitTheGang
is intended to allow gang members to remove themselves from the gang. However, the current implementation allows any gang member to call this function and specify an arbitrary account to revoke the gangmember
role from. The relevant code is as follows:
This vulnerability allows any gang member to revoke the gangmember
role from other members without their consent. This can lead to disruption of normal workflow, because gang members can constantly revoke other people's roles and prevent them from using the protocol.
Manual code review
Laundrette::quitTheGang
should be modified to ensure that gang members can only remove their own role. This can be done by restricting the account parameter to msg.sender
. Here is the updated implementation:
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.