DeFiHardhatFoundry
250,000 USDC
View results
Submission Details
Severity: medium
Invalid

reseed whitelist no access conditions for init

Summary

ReseedWhitelist.sol init has no access conditions,

https://github.com/Cyfrin/2024-05-beanstalk-the-finale/blob/4e0ad0b964f74a1b4880114f4dd5b339bc69cd3e/protocol/contracts/beanstalk/init/reseed/L2/ReseedWhitelist.sol#L24

/**
* @notice Whitelists Silo assets
*/
function init(address[] calldata tokens, AssetSettings[] calldata asset) external {

Vulnerability Details

In some situations, redeployment, updates, or expand of protocol, can be initiated with malicious list of tokens.

Impact

Broken layer L2 of protocol

Need of redeploy.

Some tracking bot/listener of competition can block proper initialization of this contract.

Tools Used

slither, hardhat, code analyze

Recommendations

add access conditions, temporary owner or dao as only capable to init or other conditions.

Updates

Lead Judging Commences

inallhonesty Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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