stake.link

stake.link
DeFiHardhatBridge
27,500 USDC
View results
Submission Details
Severity: low
Invalid

External call recipient may consume all transaction gas

Summary

External call recipient may consume all transaction gas

Vulnerability Details

There is no limit specified on the amount of gas used, so the recipient can use up all of the transaction's gas, causing it to revert. Use addr.call{gas: <amount>}("") or this library instead

Impact

Instances (2):

File: contracts/core/ccip/RESDLTokenBridge.sol
/// @audit transferRESDL()
117: (bool success, ) = msg.sender.call{value: msg.value - fees}("");

117

File: contracts/core/ccip/WrappedTokenBridge.sol
/// @audit _transferTokens()
183: (bool success, ) = _sender.call{value: msg.value - fees}("");

183

Tools Used

Recommendations

Updates

Lead Judging Commences

0kage Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.