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

2 stars 0 forks source link

Validate _to is not empty #314

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Handle

pauliax

Vulnerability details

Impact

_withdrawAttribution should validate that _to is not an empty address 0x0 to prevent accidental burns. Similarly, transferValue _destination param and withdrawValue _to param should also be checked against an empty address unless this is the intended functionality in some cases.

Recommended Mitigation Steps

require _to != address(0)

oishun1112 commented 2 years ago

validate