-
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
Check missing for _publicStartTime > _allowlistEndTime in NextGenMinterContract #1656
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-588
grade-c
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Comments
c4-submissions
added
3 (High Risk)
Assets can be stolen/lost/compromised directly
bug
Something isn't working
labels
Nov 13, 2023
c4-submissions
added a commit
that referenced
this issue
Nov 13, 2023
141345 marked the issue as duplicate of #1274 |
141345 marked the issue as not a duplicate |
141345 marked the issue as duplicate of #478 |
alex-ppg marked the issue as not a duplicate |
alex-ppg marked the issue as duplicate of #2033 |
c4-judge
added
duplicate-588
downgraded by judge
Judge downgraded the risk level of this issue
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
and removed
duplicate-2033
3 (High Risk)
Assets can be stolen/lost/compromised directly
labels
Dec 4, 2023
alex-ppg changed the severity to QA (Quality Assurance) |
c4-judge
added
grade-c
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
labels
Dec 8, 2023
alex-ppg marked the issue as grade-c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-588
grade-c
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/code-423n4/2023-10-nextgen/blob/main/hardhat/smart-contracts/MinterContract.sol#L170-L177
Vulnerability details
Summary
There is a missing check in
setCollectionPhases()
. If provided _publicStartTime <= _allowlistEndTime then the transactionmint()
&burnOrSwapExternalToMint()
will revert for public minters.Vulnerability Details
If the _publicStartTime <= _allowlistEndTime then all the users who try to
mint()
orburnOrSwapExternalToMint()
for public sale will fail as the handling is not done properly.Impact
The public minters will not be able to mint until _publicStartTime > _allowlistEndTime.
Recommendations
Add _publicStartTime > _allowlistEndTime check in
setCollectionPhases()
Assessed type
Invalid Validation
The text was updated successfully, but these errors were encountered: