The depositIntoVault()
function allow user to call more than once. Making lost of vault shares for other users.
depositIntoVault()
function deposits ETH into Steak Vault without reset user's stakedAmount
Since the state of the contract does not change after calling this function, user can call this function again and get more shares.
User can abuse this function to get more shares for them.
Since the contract ETH balance is reduced each time depositIntoVault
is called, other users will not be able to deposit in to vault if their staked amount greater than the current contract balanace. This made lost of vault shares for them.
Manual review
Reset user staked amount to 0 before deposit to vault.
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.