MorpheusAI

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

Unrestricted Minting in WStETHMock::mint Poses Risks for stEth Token Wrapping

Summary

The WStETHMock contract, designed to act as a wrapper for stEth tokens, currently has an open mint function that allows any address to mint tokens without proper restrictions. This design introduces potential risks related to supply control, security, and adherence to standards for wrapped tokens.

Vulnerability Details

The existing mint function lacks proper restrictions, allowing any external address to mint tokens freely. This poses concerns regarding the controlled issuance of the wrapped tokens, potentially leading to an uncontrolled increase in supply and introducing security vulnerabilities associated with unrestricted minting.

function mint(address account_, uint256 amount_) external {
_mint(account_, amount_);
}

Impact

The impact of an open mint function includes the risk of uncontrolled supply growth, security vulnerabilities, and potential non-compliance with industry standards for wrapped tokens. Malicious actors could exploit the function to manipulate the behavior of the wrapper, compromising the security and reliability of the stEth token wrapping mechanism.

Tools Used

Manual review

Recommendations

To address this vulnerability and ensure the intended functionality of serving as a wrapper for stEth tokens, it is advised that the mint function implemented should be removed totally or have some access control restrictions.

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.