FeeSplitter: Unbounded number of shareholders can cause DOS #137
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
GreyArt
Vulnerability details
Impact
There is no limit to the number of shareholders. It is therefore possible to set a large number of shareholders such that
_sendFees()
will run out of gas when adding shares to each shareholder.This will cause denial of service to all NestedFactory functions, especially the ones that will remove funds like
withdraw()
anddestroy()
.Recommended Mitigation Steps
It would be best to set a sanity maximum number of shareholders that can be added.
The text was updated successfully, but these errors were encountered: