The collectFee
function is missing access control, allowing any external user to trigger fee collection instead of limiting it to FEE_MANAGER_ROLE
. This could lead to unauthorized fee collection, impacting fund integrity.
Below we can see the NatSpec documentation for each role.
The collectFee
function does not implement access control, which means anyone can call the function and transfer tokens to the contract. This violates the NatSpec role definitions, where only authorized roles (such as FEE_MANAGER_ROLE
should be able to manage fees.
Missing Role Restriction:
The function is external
, meaning anyone can call it.
It should be restricted to FEE_MANAGER_ROLE
.
Unauthorized Fee Collection Risk:
Any user can call collectFee
and force the contract to collect arbitrary amounts of tokens.
Manual review
Restrict access to FEE_MANAGER_ROLE
to ensure only authorized users can collect fees.
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.