Open hats-bug-reporter[bot] opened 4 months ago
is not issue, is by design, we handle the same approach of safe in this case and can't add any additional feature in this case of addOwnerWithThreshold
or removeOwner
, in all case is a proposal o additional feature to add, but not a issue!!
Github username: -- Twitter username: -- Submission hash (on-chain): 0x3214a5e0da5658096b107fc7f0c75911f994b1c2662262b2e16f3dd6b2f964b7 Severity: medium
Description: Description\ The
addOwnerWithThreshold
function in thePalmeraModule
contract currently lacks a check to ensure that theownerAdded
address is not on thedenylist
.The function does not currently check if the ownerAdded address is on the denylist for the specified organization (org). This can lead to the following issues:Attack Scenario
Attachments
Proof of Concept (PoC) File
function addOwnerWithThreshold( address ownerAdded, uint256 threshold, address targetSafe, bytes32 org ) external validAddress(ownerAdded) SafeRegistered(targetSafe) requiresAuth Denied(org, ownerAdded) // Added Denied modifier to check if ownerAdded is denied { address caller = _msgSender(); if (hasNotPermissionOverTarget(caller, org, targetSafe)) { revert Errors.NotAuthorizedAddOwnerWithThreshold(); }