In the wrap
function of the WStETHMock contract, there is an absence of a check for the paused status of the stETH
token before executing a transfer. As stETH
can be paused, it introduces a vulnerability where all transfers would revert if the wrap
function is called during the paused state of stETH
.
The wrap
function in WStETHMock wraps 1 stETH to 1 wstETH without checking whether stETH
is paused. The vulnerable code snippet is as follows:
The impact of this issue is that if the wrap
function is called while the stETH
token is in a paused state, all transfers will revert, potentially leading to undesired outcomes and confusion for users interacting with the contract.
Add a check for the paused status of stETH
before executing transfers in the wrap
function. This can be achieved by updating the interface and adding the following check:
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.