Closed c4-submissions closed 1 year ago
141345 marked the issue as duplicate of #1198
141345 marked the issue as duplicate of #1597
141345 marked the issue as duplicate of #1742
alex-ppg marked the issue as not a duplicate
alex-ppg marked the issue as duplicate of #1597
alex-ppg changed the severity to 2 (Med Risk)
alex-ppg marked the issue as partial-50
Lines of code
https://github.com/code-423n4/2023-10-nextgen/blob/main/smart-contracts/NextGenCore.sol#L218-L220
Vulnerability details
Impact
Cross Contract re-entrancy can occur due to not following CEI
Proof of Concept
burnToMint
in GenCore, which mints the the new token from the to be minted collection.https://github.com/code-423n4/2023-10-nextgen/blob/main/smart-contracts/NextGenCore.sol#L218-L220
Tools Used
Recommended Mitigation Steps
Tokens should be burned before minting and calling the receiver contract, this follows the safe pattern
Assessed type
Reentrancy