Owner can lock tokens in MasterChef
#238
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
Lines of code
https://github.com/code-423n4/2022-02-concur/blob/main/contracts/MasterChef.sol#L82-L84
Vulnerability details
Impact
Owner can remove a depositor. Since only depositors can deposit and withdraw, the owner may add a contract to the whitelist, let users deposit in the contarct and remove the depositor from the whitelist. Depositor's reward cannot be withdrawn then. And takes a share of Concur tokens that will not be ditributed.
Tools Used
Manual analysis
Recommended Mitigation Steps
Remove
onlyDepositor
modifier from thewithdraw
function.The text was updated successfully, but these errors were encountered: