Open code423n4 opened 3 years ago
0xsanson
zapLiquidity() in Router.sol misses an input validation unitsInput > 0.
https://github.com/code-423n4/2021-07-spartan/blob/main/contracts/Router.sol#L59
editor
Add an input validation for unitsInput.
Low risk but valid
Handle
0xsanson
Vulnerability details
Impact
zapLiquidity() in Router.sol misses an input validation unitsInput > 0.
Proof of Concept
https://github.com/code-423n4/2021-07-spartan/blob/main/contracts/Router.sol#L59
Tools Used
editor
Recommended Mitigation Steps
Add an input validation for unitsInput.