sherlock-audit / 2024-09-orderly-network-solana-contract-judging

0 stars 0 forks source link

Silly Amber Shell - Excess fees refunded by endpoint will be stuck in `SolConnector` as it has no function to transfer them out #120

Open sherlock-admin3 opened 4 days ago

sherlock-admin3 commented 4 days ago

Silly Amber Shell

Medium

Excess fees refunded by endpoint will be stuck in SolConnector as it has no function to transfer them out

Summary

Excess fees refunded by endpoint will be stuck in SolConnector as it has no function to transfer them out

OappSenderUpgradeable::_quote gives an estimate of the fees to sucessfully transmit a message from the src chain to the dst chain. If there is an excess of fees once finally executed, the excess is refunded to the _refundAddress which is configured as address(this).

Root Cause

Internal pre-conditions

External pre-conditions

Attack Path

Impact

PoC

No response

Mitigation

Add a mechanism to be able to withdraw the fees