The setRuleForPool function lacks proper access control mechanisms. This vulnerability allows unauthorized entities to set rules for pools, potentially leading to unauthorized configurations and manipulation of pool settings.
The setRuleForPool function does not implement any access control checks to verify the caller's identity or authorization level.
The function relies solely on the msg.sender to determine the pool for which the rule is being set. There is no mechanism to restrict who can call this function, allowing any address to potentially set rules for any pool. The comment "Set a rule for a pool, called by the pool" suggests that the function is intended to be called by the pool itself, but this is not enforced by the code
Malicious actors could set arbitrary rules for pools, leading to potential manipulation of pool behavior.
Manual Review
Introduce access control mechanisms to ensure that only authorized entities can call the setRuleForPool 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.