Lucene search

K
code423n4Code4renaCODE423N4:2022-06-CANTO-FINDINGS-ISSUES-121
HistoryJun 21, 2022 - 12:00 a.m.

Missing zero address check can set treasury to zero address

2022-06-2100:00:00
Code4rena
github.com
4
vulnerability
impact
proof of concept
mitigation steps
manual review

Lines of code

Vulnerability details

Impact

AccountantDelegate.initialize() is missing a zero address check for treasury_ parameter, which could may allow treasury to be mistakenly set to 0 address.

#Proof of Concept

Tools Used

Manual review

Recommended Mitigation Steps

Add a require() check for zero address for the treasury parameter before changing the treasury address in the initialize function.


The text was updated successfully, but these errors were encountered:

All reactions