code-423n4 / 2021-07-spartan-findings

0 stars 0 forks source link

Missing input validation zapLiquidity() #222

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

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.

verifyfirst commented 3 years ago

Low risk but valid