code-423n4 / 2022-01-insure-findings

2 stars 0 forks source link

Missing divide by 0 check on `_pool` (`valueAll()`) #331

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

Dravee

Vulnerability details

Impact

Division by 0

Proof of Concept

https://github.com/code-423n4/2022-01-insure/blob/main/contracts/Vault.sol#L102-L103

Tools Used

VS Code

Recommended Mitigation Steps

Check that the value isn't 0

oishun1112 commented 2 years ago

similar issue https://github.com/code-423n4/2022-01-insure-findings/issues/287