Lucene search

K
code423n4Code4renaCODE423N4:2022-02-CONCUR-FINDINGS-ISSUES-238
HistoryFeb 09, 2022 - 12:00 a.m.

Owner can lock tokens in MasterChef

2022-02-0900:00:00
Code4rena
github.com
5

Lines of code

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 the withdraw function.


The text was updated successfully, but these errors were encountered:

All reactions