code-423n4 / 2022-09-vtvl-findings

0 stars 0 forks source link

Missing sanity check #451

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Lines of code

https://github.com/code-423n4/2022-09-vtvl/blob/main/contracts/VTVLVesting.sol#L245

Vulnerability details

Impact

Missing sanity check on _linearVestAmount

Proof of Concept

  1. Visit here https://github.com/code-423n4/2022-09-vtvl/blob/main/contracts/VTVLVesting.sol#L245

  2. You are missing the sanity check on user inputted _linearVestAmount

  3. You need add the check on zero amount

0xean commented 2 years ago

closing as invalid, QA at best.