Unbounded iteration in NFTXEligiblityManager.distribute over _feeReceivers
The distribute function in NFTXEligiblityManager iterates over all fee receivers, so if the number of fee receivers becomes too large, the gas cost of the transaction could exceed the block gas limit, making the function uncallable.
NFTX contest
Originally disclosed on Code4rena
NFTXEligiblityManager.distribute iterates over all _feeReceivers. If the number of _feeReceivers gets too big, the transaction’s gas cost could exceed the block gas limit and make it impossible to call distribute at all.
Recommend keeping the number of _feeReceivers small.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The function loops over an unbounded array of fee receivers without a cap, so the gas cost can exceed the block gas limit.
Impact
If the number of fee receivers becomes too large, the distribute function could become permanently uncallable, potentially locking funds or preventing fee distribution.
What the attacker needed
Many fee receivers added
The fix
The number of fee receivers should be kept small, as recommended.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a smart contract issue where a function loops over a list of addresses. If the list grows too long, the transaction needs more gas than a block allows, so the function can never be run. That means the contract's distribution of fees could get stuck.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.