MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: low
Valid

DistributionV2:: createPool() is subjected to DOS attacks

Vulnerability Details

IN DistributionV2:: createPool()

function createPool(IDistribution.Pool calldata pool_) public {//@audit DOS
pools.push(pool_);
}```
Attacker can call this function many times - in the same transaction as long as the gas limit not exceeded- causing the array to be filled and then this call will never be working for anyone.
## Impact
expected denail of service
## Tools Used
Manual review
## Recommendations
Make the function onlyOwner and check for the validity of inputs
Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

`createPool` from DistributionV2.sol misses all the checks and access control available in Distribution.sol

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

`createPool` from `DistributionV2.sol` misses all the checks and access control available in `Distribution.sol`

Support

FAQs

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