#45533 [SC-Low] Incorrect gas allowance comparison in CoreVault transfer function leads to user fund loss
Description
Brief/Intro
Vulnerability Details
if (msg.value > transferFeeWei + Transfers.TRANSFER_GAS_ALLOWANCE) {
Transfers.transferNAT(state.nativeAddress, transferFeeWei);
Transfers.transferNATAllowFailure(payable(msg.sender), msg.value - transferFeeWei);
} else {
Transfers.transferNAT(state.nativeAddress, msg.value);
}Impact Details
References
Proof of Concept
Proof of Concept
Previous#45517 [SC-Insight] Partial Documentation for Self-Close Exit Fee Handling and Redemption Workflow in 'CollateralPool.sol'Next#45554 [SC-Medium] Fee loss during Agent's feeBIPS reduction in `selfMint` function
Was this helpful?