initialize function in basket.sol can be front-run #3
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Warden finding
Handle
jah
Vulnerability details
Impact
As the initialize function is pubic it can be called by anyone and it can be front run by a hacker
Proof of Concept
https://github.com/code-423n4/2021-09-defiProtocol/blob/52b74824c42acbcd64248f68c40128fe3a82caf6/contracts/contracts/Basket.sol#L36
Tools Used
Manual analysis
Recommended Mitigation Steps
call the initialize function in the constructor
The text was updated successfully, but these errors were encountered: