Withdraw
function should only be callable by owner of token.
In the withdraw() in Staking.sol , there's no check to ensure that the caller is the owner of the tokens they're trying to withdraw. This could allow anyone to call the function and withdraw tokens from any account. Which can cause anyone to call the function with desired amount and withdraw that amount.
Loss of funds from the 'Staking.sol' contract.
Manual review
Add a if statement at the start of the function to ensure that balances[msg.sender] >= _amount
.
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.