Attackers can withdraw what they never staked... Leading to loss of funds.
Here is the withdraw
function in TempleGoldStaking.sol
:
The logic behind this function is so those who staked can call it to withdraw.
As seen above, practically anyone can call this withdrawal function; all they need to do is input the amount, index, and indicate true.
This way, an attacker can withdraw successfully from the contract without any hinderance without staking at all.
Loss of funds.
Manual review.
Only those who have staked should be able to withdraw.
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.