Closed code423n4 closed 1 year ago
GalloDaSballo marked the issue as duplicate of #694
GalloDaSballo marked the issue as not a duplicate
Am downgrading to QA because this finding only shows the lack of check for duration and doesn't go deep enough in terms of other attacks
L
Lines of code
https://github.com/code-423n4/2022-12-gogopool/blob/2996dc7974be06800e35619101047bf1d2107c42/contracts/contract/MinipoolManager.sol#L196
Vulnerability details
Impact
The current implementation of
createMinipool
does not validate does theduration
time is valid. If the As consequence funds of the Node Operator can be locked in the contract.Proof of Concept
Tools Used
Foundry
Recommended Mitigation Steps
Implementing a validation routine is recommended to check whether the provided
duration
time is correct.