Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: high
Invalid

Potential of DoS Attack

Summary In func withdrawInheritedFunds if funds are sent to address with fallback func, that reverts , can break the whole array for sending the funds to addresses

Vulnerability Details Line https://github.com/CodeHawks-Contests/2025-03-inheritable-smart-contract-wallet/blob/9de6350f3b78be35a987e972a1362e26d8d5817d/src/InheritanceManager.sol#L246

(bool success,) = beneficiary.call{value: amountPerBeneficiary}("");
require(success, "something went wrong");

As explained above, the known as `push` method is not the best practice, and could DoS the contract

Impact High

Tools Used Patrick's security course ?

Recommendations use the method push over `Pull`

Updates

Lead Judging Commences

0xtimefliez Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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