A collection may withdraw more funds than allocated due to functions overlaps #1550
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
duplicate-1686
satisfactory
satisfies C4 submission criteria; eligible for awards
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
sufficient quality report
This report is of sufficient quality
Lines of code
https://github.com/code-423n4/2023-10-nextgen/blob/main/smart-contracts/MinterContract.sol#L369-L376
Vulnerability details
Impact
When initializing splits and percentages in a collection, a misconfiguration during updates may lead to one collection withdrawing more ETH than allocated, causing a loss for other collections.
Note
This is not related to malicious actions or admin errors; it's a misconfiguration issue that can result in the loss of funds for other collections.
Proof of Concept
Issue summary
During the setup of artist team and split percentages, if an artist requested to change the splits after initializing his addresses, it can result in the artist's addresses receiving more funds than intended, leading to a loss of funds for other collections.
Here is a coded PoC to demonstrate the issue:
Logs result:
Test Setup:
NextGenSecurityReview
forge test --mt testSplitsMisconfiguration -vvv
Tools Used
Manual review
Recommended Mitigation Steps
To fix this, you should delete the addresses splits when resetting the team and artist percentages.
Assessed type
Invalid Validation
The text was updated successfully, but these errors were encountered: