28698 - [SC - Insight] User can frontrun claim transaction to make cla...
Description
function claimWithdrawalsFromLido(uint256[] calldata requestIds) external virtual {
VaultStorage storage $ = _getPufferVaultStorage();
// Tell our receive() that we are doing a Lido claim
$.isLidoWithdrawal = true;
for (uint256 i = 0; i < requestIds.length; ++i) {
bool isValidWithdrawal = $.lidoWithdrawals.remove(requestIds[i]);
if (!isValidWithdrawal) {
revert InvalidWithdrawal();
}
// slither-disable-next-line calls-loop
_LIDO_WITHDRAWAL_QUEUE.claimWithdrawal(requestIds[i]);
}
// Reset back the value
$.isLidoWithdrawal = false;
emit ClaimedWithdrawals(requestIds);
}Proof of concept
Previous28695 - [SC - Insight] pufETHsrcTimelockexecuteTransaction - L The tim...Next28702 - [SC - Insight] Malicious users can frontrun permits to DoS swaps
Last updated
Was this helpful?