MorpheusAI

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

Lack of access control .

Summary

Lack of access control in StETHMock::mint() , WStETHMock::mint() functions.

Vulnerability Details

function mint(address _account, uint256 _amount) external {
require(_amount <= 1000 * (10 ** decimals()), "StETHMock: amount is too big");
uint256 sharesAmount = getSharesByPooledEth(_amount);
_mintShares(_account, sharesAmount);
totalPooledEther += _amount;
}

There is no way to stop anyone from minting tokens for free using the StETHMock::mint() , WStETHMock::mint() functions.

Impact

Anyone can mint any amount of tokens for free.

Tools Used

VS code

Recommendations

Add access control checks on theStETHMock::mint() , WStETHMock::mint() functions.

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.