# executeWithdraw may be blocked if any of the users are blacklisted from the baseToken

A blacklisted receiver in NOYA's withdrawQueue makes executeWithdraw revert on safeTransfer, blocking all other queued users from withdrawing their funds.

- Payout: Audit contest
- Severity: high
- Program: NOYA
- Found by: TPSec
- Disclosed: 2025-02-17
- Write-up quality: 6/10
- Original: https://github.com/code-423n4/2024-04-noya-findings/issues/1426
- Library page: https://bugbountylibrary.com/r/c4%3A2024-04-noya%3AH-04
- Tags: area:web3 domain:web3 impact:dos impact:funds-loss kind:contest platform:code4rena sev:high tech:evm tech:solidity technique:source-review vuln:business-logic vuln:dos

**Target:** AccountingManager.executeWithdraw withdrawal queue
**Root cause:** executeWithdraw iterates the withdraw queue and calls baseToken.safeTransfer on each receiver; a blocklisted receiver (USDC/USDT-style) reverts the whole loop, so no other queued user can be processed.
**Steps:**
1. Deploy a blacklistable ERC20 and register it as baseToken in AccountingManager
2. Alice, Bob, Charlie deposit and each call withdraw() to enter withdrawQueue
3. Manager runs calculateWithdrawShares, startCurrentWithdrawGroup, retrieveTokensForWithdraw, fulfillCurrentWithdrawGroup
4. Blacklist Alice via token.addToBlacklist(alice)
5. Call accountingManager.executeWithdraw(10) -> reverts on safeTransfer to Alice, blocking Bob and Charlie
**How found:** Warden reasoned about weird-ERC20 blocklist behavior (USDC/USDT) and traced the executeWithdraw loop's unconditional safeTransfer to each receiver, hypothesizing a single bad receiver reverts the batch.
**Exploitation:** Any user (or token admin action) that places a blocklisted address in the withdraw queue causes executeWithdraw to revert at the safeTransfer step, freezing all other queued withdrawals; judge noted transfer-to-address(0) and zero-amount transfers share the same root cause.
**Insight:** When a contract loops over a queue performing token transfers, any per-receiver transfer failure (blocklist, zero-amount, address(0)) reverts the whole batch; check batch payout loops for per-item failure isolation.

