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

0 stars 0 forks source link

Bouncy Butter Cat - USDC could get stuck if address is blacklisted or block bridge. #162

Open sherlock-admin2 opened 4 days ago

sherlock-admin2 commented 4 days ago

Bouncy Butter Cat

Medium

USDC could get stuck if address is blacklisted or block bridge.

Summary

The user could lose the funds sent if, in the duration it takes to bridge, the destination address gets blacklisted.

Root Cause

https://github.com/sherlock-audit/2024-09-orderly-network-solana-contract/blob/main/sol-cc/contracts/SolConnector.sol#L81

USDC implements blacklist to address. Blocked addresses are blocked from sending / receiving tokens.

The bridging process could take days for some chain to finalize. During this time if the _withdrawData.receiver gets blacklisted, the usdc amount in the source chain gets lost since there isn't any way to return the funds if the call in the destination chain reverts due to the address getting blacklisted (to maybe comply with OFAC sanctions).

Internal pre-conditions

None

External pre-conditions

The receiver address gets blacklisted.

PoC

Mitigation

No response