Closed c4-submissions closed 11 months ago
141345 marked the issue as duplicate of #2039
141345 marked the issue as duplicate of #51
141345 marked the issue as not a duplicate
141345 marked the issue as insufficient quality report
The Warden specifies that a re-entrancy can affect the payArtist
function of the MinterContract
, however, they have failed to pinpoint exactly how and a brief analysis of the function indicates that it is not susceptible to a re-entrancy as the royalties (collectionTotalAmount
) is erased immediately after being read and before any transfer.
alex-ppg marked the issue as unsatisfactory: Invalid
Lines of code
https://github.com/code-423n4/2023-10-nextgen/blob/main/smart-contracts/MinterContract.sol#L415
Vulnerability details
In
payArtist
function, the potential for reentrancy exists due to thecall
method being used to transfer Ether. Thecall
method is known to be risky for reentrancy attacks because it hands off control to the called contract, which could be malicious. After the Ether transfer viacall
, if there is more code executing that modifies the contract's state, it might be vulnerable to reentrancy.Mitigation
Assessed type
Reentrancy