You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SolCOnnector.sol address passed to lzSend() will cause fees refunded to be stucked
Summary
SolCOnnector.sol address passed to lzSend() will cause fees refunded to be stucked
Root Cause
lzsend() passes address.this as refund address in case the send call reverts, however, in this case the address.this would be the SolCOnnector contract but no way to withdraw in this contract causing fees refunded to be stucked.
sherlock-admin4
changed the title
Rural Frost Skunk - SolCOnnector.sol address passed to lzSend() will cause fees refunded to be stucked
turvec - SolCOnnector.sol address passed to lzSend() will cause fees refunded to be stucked
Nov 6, 2024
turvec
Medium
SolCOnnector.sol address passed to lzSend() will cause fees refunded to be stucked
Summary
SolCOnnector.sol address passed to lzSend() will cause fees refunded to be stucked
Root Cause
lzsend() passes
address.this
as refund address in case the send call reverts, however, in this case the address.this would be the SolCOnnector contract but no way to withdraw in this contract causing fees refunded to be stucked.Internal pre-conditions
None
External pre-conditions
Fees refunded
Attack Path
n/a
Impact
will cause fees refunded to be stucked
PoC
https://github.com/sherlock-audit/2024-09-orderly-network-solana-contract/blob/main/sol-cc/contracts/SolConnector.sol#L97
Mitigation
Recommendation:
Consider passing in an admin address that handles this instead of address.this or implement a way for withdrawal in the contract
The text was updated successfully, but these errors were encountered: