MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: low
Valid

Lack of access control

Summary

There are some functions which have no access control.

Vulnerability Details

Anyone can call the functions WStETHMock::mint, StETHMOCK::mint and StETHMOCK::transferSharesFrom.

Impact

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.

Tools Used

Manual Review

Recommendations

Add access control to the functions WStETHMock::mint, StETHMOCK::mint and StETHMOCK::transferSharesFrom.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

Lack of access control in `StETHMock:mint` and `WStETHMock::mint`

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.