Closed c4-submissions closed 12 months ago
141345 marked the issue as insufficient quality report
141345 marked the issue as sufficient quality report
a2rocket (sponsor) disputed
as in all projects allowlist users have a specific period to time, allow them to mint after the allowlist phase ended its unfair for other participants on the public phase.
alex-ppg marked the issue as duplicate of #588
alex-ppg changed the severity to QA (Quality Assurance)
alex-ppg marked the issue as grade-c
Lines of code
https://github.com/code-423n4/2023-10-nextgen/tree/main/smart-contracts/MinterContract.sol#L172
Vulnerability details
Impact
The minting phases lack proper validation, which can lead to an unfair distribution of tokens. As the public phase is set to be unlimited in duration, the allowlist participants might not have a chance to mint their tokens if the public phase starts before allowlist phase without restriction. This could result in a situation where no tokens are left for the allowlist participants.
Proof of Concept
The root cause of the vulnerability is the lack of proper validation for minting phases, potentially allowing the public phase to start earlier than the allowlist phase.
Tools Used
Manual Review
Recommended Mitigation Steps
To address this issue, it is recommended to implement proper validation for the minting phases. This should include checking time period parameters to ensure that the allowlist phase starts before the public phase.
Assessed type
Invalid Validation