Lacks access control for the function sellProfits()
The sellProfits()
function is used to sell a specific token (other than WETH) that the contract holds, in exchange for WETH. The acquired WETH is then transferred to a staking address.
The function sellProfits()
does not include any access control mechanisms, such as a modifier or a requirement to check the caller's permissions. This means that any address could potentially call this function without restriction.
When a user calls the Staking.claim() function, they may obtain more WETH.
User may obtain more WETH
Vscode
Implement access control
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.