Lucene search

K
code423n4Code4renaCODE423N4:2022-06-CANTO-V2-FINDINGS-ISSUES-120
HistoryJul 01, 2022 - 12:00 a.m.

Multiple functions in GovernorBravoDelegator.sol could cause dangerous future mistakes

2022-07-0100:00:00
Code4rena
github.com
2

Lines of code

Vulnerability details

Submitting as med risk because these are very important functions and using requires like this seems very likely to cause future mistakes

Impact

Increases likelihood of future vulnerabilities

Proof of Concept

_initiateDelegated() _acceptInitialAdminDelegated() and _setPendingAdminDelegated are potentially dangerous because in future implementations they may think that they functions are already protected by require(msg.sender == admin) but in reality they are not because the fallback function allows anyone to call the exact same functions without this protection.

Tools Used

Recommended Mitigation Steps

Remove L40, L48, L56


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

All reactions