NextGen - danielles0xG's results

Advanced smart contracts for launching generative art projects on Ethereum.

General Information

Platform: Code4rena

Start Date: 30/10/2023

Pot Size: $49,250 USDC

Total HM: 14

Participants: 243

Period: 14 days

Judge: 0xsomeone

Id: 302

League: ETH

NextGen

Findings Distribution

Researcher Performance

Rank: 195/243

Findings: 1

Award: $0.04

🌟 Selected for report: 0

🚀 Solo Findings: 0

Lines of code

https://github.com/code-423n4/2023-10-nextgen/blob/8b518196629faa37eae39736837b24926fd3c07c/hardhat/smart-contracts/MinterContract.sol#L363 https://github.com/code-423n4/2023-10-nextgen/blob/8b518196629faa37eae39736837b24926fd3c07c/hardhat/smart-contracts/MinterContract.sol#L236 https://github.com/code-423n4/2023-10-nextgen/blob/8b518196629faa37eae39736837b24926fd3c07c/hardhat/smart-contracts/ERC721.sol#L407

Vulnerability details

Impact

Updating state after safeMint external call can cause: Single allowlist user can mint all allowlist spots available. Single regular user can mint more than the max minting amount set by the admin.

Proof of Concept

Tools Used

manual review

Update state before any external call and/or protect any function involving minting with a non-reentrant modifier from OZ or custom mutual exclusion modifier that locks the function while executing.

Assessed type

ERC721

#0 - c4-pre-sort

2023-11-20T01:06:14Z

141345 marked the issue as duplicate of #51

#1 - c4-pre-sort

2023-11-26T14:02:11Z

141345 marked the issue as duplicate of #1742

#2 - c4-judge

2023-12-08T16:33:46Z

alex-ppg marked the issue as satisfactory

#3 - c4-judge

2023-12-08T16:34:04Z

alex-ppg marked the issue as partial-25

#4 - c4-judge

2023-12-09T00:18:52Z

alex-ppg changed the severity to 3 (High Risk)

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter