Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: low
Invalid

No Mechanism for Role Revocation or Role Management on Treasury.sol

Summary

While roles are granted via AccessControl, there is no function to revoke roles or manage role assignments after the contract is deployed.

Vulnerability Details

_grantRole(DEFAULT_ADMIN_ROLE, admin);
_grantRole(MANAGER_ROLE, admin);
_grantRole(ALLOCATOR_ROLE, admin);

Impact

Once roles are granted, they cannot be changed or revoked. This can pose a security risk if an administrator's account is compromised or if roles need to be reallocated.

Tools Used

Recommendations

Implement a role management function that allows the contract owner or administrators to revoke and reassign roles when necessary.

function revokeRole(bytes32 role, address account) external onlyRole(DEFAULT_ADMIN_ROLE) {
_revokeRole(role, account);
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.