Closed c4-submissions closed 11 months ago
141345 marked the issue as duplicate of #486
141345 marked the issue as sufficient quality report
141345 marked the issue as not a duplicate
141345 marked the issue as duplicate of #1767
alex-ppg marked the issue as not a duplicate
alex-ppg marked the issue as duplicate of #1509
alex-ppg marked the issue as unsatisfactory: Invalid
Lines of code
https://github.com/code-423n4/2023-10-nextgen/blob/main/smart-contracts/NextGenCore.sol#L178-L185
Vulnerability details
Impact
This vulnerability could allow an attacker to deliberately drain the gas of the contract, preventing users from being able to properly claim airdropped tokens. It also risks the distribution failing or only completing partially if too many small amounts are distributed in one transaction.
Proof of Concept
The airDropTokens function does not limit the number or size of airdrops that can be distributed in a single transaction:
Tools Used
Manual Review
Recommended Mitigation Steps
Add gas limit validation to prevent running out of gas: Distribute tokens in batches rather than one large transaction
Assessed type
Error