#47351 [SC-Low] Funds get stuck in the bridge if attempted to be deposited into a restricted address
Description
Brief/Intro
Vulnerability Details
fn _deposit_from_bridge(
ref self: ComponentState<TContractState>,
recipient: ContractAddress,
token_address: ContractAddress,
amount_u256: u256,
) {
let token_dispatcher = ERC20ABIDispatcher { contract_address: token_address };
let decimals = token_dispatcher.decimals();
// Sender is 0 (unknown) for bridge deposits
self._detect_transfer_restriction(Zero::zero(), recipient, token_address, amount_u256);Impact Details
References
Proof of Concept
Proof of Concept
Previous#47370 [SC-Critical] `account_transfer_partial` should not be enabled when `transfer_registry_address` is not configured.Next#47377 [SC-Insight] No Restriction on Self Transfer
Was this helpful?