Lucene search

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

CNote: Attacker can frontrun the calling of _setAccountantContract and gain admin priviledges and insert a malicious accountant contract

2022-06-2100:00:00
Code4rena
github.com
6

Lines of code

Vulnerability details

Impact

The function does not have access control before the accountant address is set, allowing anyone to call the function, gain admin privileges, and set the accountant address.

Proof of Concept

CNote.sol#L17

Recommended Mitigation Steps

Include access control even when _accountant is not set or set _accountant during deployment


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

All reactions