There are some functions which have no access control.
Anyone can call the functions WStETHMock::mint
, StETHMOCK::mint
and StETHMOCK::transferSharesFrom
.
Anyone can call the mint
functions in WStETHMOCK
and StETHMOCK
contracts. The mint
function allows the caller to mint new shares to any account. Although there is a limit on the amount per mint, there is no cap on the total number of mints, which could lead to an excessive increase in supply and potential devaluation of the token.
Also, anyone can call the StETHMOCK::transferSharesFrom
with arbitrary address for sender
and recipient
.
The mock contracts are in scope and will be used in production, therefore it is crucial to be secured.
Manual Review
Add access control to the functions WStETHMock::mint
, StETHMOCK::mint
and StETHMOCK::transferSharesFrom
.
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.