The _refundETH function uses the deprecated transfer() method which has a 2300 gas limit and updates state after the external call.
The _refundETH function uses the deprecated transfer() method, which has a fixed gas limit of 2300, potentially causing the refund to fail if more gas is needed. Additionally, it updates the contract state after the external call, violating the Checks-Effects-Interactions pattern. This introduces a reentrancy risk, as an attacker can exploit the lack of proper state updating before the transfer, allowing them to re-enter the contract and manipulate the state.
Refunds could fail due to gas limitations
Violates Checks-Effects-Interactions pattern
Potential reentrancy risk
Foundry
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.