Closed c4-submissions closed 12 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
admin func
The Warden specifies that either a re-entrancy protection measure or the CEI pattern should be followed in the emergency function referenced, however, the emergency function does not perform any state changes (apart from an event's emission) after the native transfer and its behaviour cannot be influenced by a re-entrancy. As such, I consider this exhibit invalid.
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#L461
Vulnerability details
Ensure that all state changes in
emergencyWithdraw
are done before the externalcall
to prevent reentrancy attacks. The function is vulnerable to reentrancy attacks due to the use of .call{value: balance}(""). This can be mitigated by adding a reentrancy guard.-Poc:
Assessed type
Reentrancy