Description
A gang member can remove the godfather from the gang by calling: Laundrette::quitTheGang
The GodFather cannot call Laundrette::addToTheGang
as they're no longer a gang member.
Impact
This can cause confusion and disruption to the gang's operations as the godFather is not able to perform any actions that require the gangmember
role. The role can be reinstated using the kernel module directly to add the role.
Recommended mitigation
Add a check to prevent gang members from calling this with other gang members accounts, or
Require the godFather to be the only one permitted to call Laundrette::quitTheGang
, if this is the preferable option consider refactoring to providing a specific GodFather Policy to keep separations of concern clean, alternately simply add the isGodFather
Modifier.
Tools Used
Manual review
Unit Test
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.