Description: The Laundrette::configureDependencies function incorrectly assigns the dependencies for the MONEY and WEAPN keycodes. The function assigns both keycodes to the same index in the dependencies array, causing the MONEY keycode to be overwritten by the WEAPN keycode. As a result, only WEAPN is correctly registered as a dependency in the Kernel contract.
Impact: Future Policies or Modules that rely on the correct registration of the MONEY keycode may encounter failures in permission assignments or role-based access control. Upgradability and maintenance risks. As the protocol evolves and Modules are upgraded, the Kernel's dependency management may become inconsistent, leading to complex bugs.
Proof of Concepts: Add the following lines of code in the Laundrette.t.sol file.
Test output
Recommended mitigation: Update the Laundrette::configureDependencies 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.