Lucene search

K
code423n4Code4renaCODE423N4:2022-08-FOUNDATION-FINDINGS-ISSUES-275
HistoryAug 15, 2022 - 12:00 a.m.

Exposure of critical functions

2022-08-1500:00:00
Code4rena
github.com
3

Lines of code

Vulnerability details

Impact

AdminRole mixin exposes critical functions without any restrictions like grantAdmin() revokeAdmin()

Proof of Concept

Criticial functions like grantAdmin() can be externally accessed changing the critical roles like admin.

// for eg: 
  function grantAdmin(address account) external {
    grantRole(DEFAULT_ADMIN_ROLE, account);
  }

Tools Used

  • Manual Analysis

Recommended Mitigation Steps

  • Converting the funcitons inside mixins to internal might help.

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

All reactions