-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mint/airdroptokens function can be DOSed. #644
Comments
141345 marked the issue as sufficient quality report |
141345 marked the issue as insufficient quality report |
The Warden specifies potential DoS concerns, however, they fail to weaponize them or articulate why they should be considered vulnerabilities in an acceptable manner. |
alex-ppg marked the issue as unsatisfactory: |
Multiple findings of the Warden have been deemed invalid and as such, I will group any further findings I find invalid here without providing a rationale in compliance with the relevant SC guidelines. |
alex-ppg marked the issue as primary issue |
Lines of code
https://github.com/code-423n4/2023-10-nextgen/blob/main/smart-contracts/MinterContract.sol#L223
Vulnerability details
Proof of Concept
Unbounded array i.e there is no limit in gencore.viewMaxAllowance. In nextgencore contract, when one set maxcollectionpurchase , there is no boundation.
So the problem is when one mint more tokenids in one transaction as maxcollectionpurchase may be a high number, the transaction may DOS.
function airDropTokens may also DOS as _numberOfTokens[ ] is an unbounded array.
Impact
Users may lose gas costs.
Tools Used
manual review
Recommended Mitigation Steps
bound/limit both maxcollectionpurchase and _numberOfTokens
Assessed type
DoS
The text was updated successfully, but these errors were encountered: