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

Anyone can set a deadline

Summary

in the src/inheritanceManager.sol, the setDeadline function between line #176 to line #178 allows anyone to set the deadline for the distribution of funds

Vulnerability Details

function _setDeadline() internal {
deadline = block.timestamp + TIMELOCK;
}

Impact

An attacker can take advantage of this and cause a DOS attack on the contract

Tools Used

Manual review

Recommendations

-- function _setDeadline() internal {
deadline = block.timestamp + TIMELOCK;
}
++ function _setDeadline() onlyOwner internal {
deadline = block.timestamp + TIMELOCK;
}
Updates

Lead Judging Commences

0xtimefliez Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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