Open hats-bug-reporter[bot] opened 1 week ago
Non-Issue, we have a stress-test in we can create a Onchain-Organization with 8100 Safes with any run out gas problem, additional we limit the maxdeepTreelimit to 50, to avoid this situation!!
i invite to check this stress test in the test folder, was writed in foundry
Github username: -- Twitter username: SBSecurity_ Submission hash (on-chain): 0x429947302d142312c9283adee081ac756c959ae601c3c9d6f814f87060527c7e Severity: medium
Description: Description\ Palmera allows Safes to add children in a hierarchy, but there is no limit on how much children can be added.
A problem will arise then any of the ROOT safes tries to call removeWholeTree(). This will get all safes that are succession of the calling ROOT. But the function will loop through all SAFE which will run out of gas.
Attack Scenario\
Attachments
Proof of Concept (PoC) File
Revised Code File (Optional) Like the tree depth, restrict the amount of children that any SAFE can have.