Single-function reentrancy
attack class / Reentrancy
External call before the state update lets the callee re-enter the same function.
- Family
- Reentrancy
- Severity
- Critical
- Real case
- The DAO, 2016
slither --detect reentrancy-eth> local / 27B uncensored / own-contracts only
An AI attacker team that forks your own protocol and writes working exploit PoCs that drain the fork. 60 attack classes, 48 hack replays.
108 of 108 shown
attack class / Reentrancy
External call before the state update lets the callee re-enter the same function.
slither --detect reentrancy-ethattack class / Reentrancy
Re-entry through a different function that shares the same unupdated state.
slither --detect reentrancy-no-ethattack class / Reentrancy
Shared state read by a second contract mid-callback, before it settles.
./audit.sh ai # cross-contract chainattack class / Reentrancy
A view function returns stale state mid-callback and poisons an integrating protocol.
./audit.sh fuzz # read-only invariantattack class / Reentrancy
tokensReceived / onERC721Received callbacks used as a re-entry vector.
semgrep --config rules/bridgeattack class / Reentrancy
call / transfer to an untrusted target before effects are written.
slither --detect reentrancy-benignattack class / Signature / Validator
A signed-message path that never actually checks the signature.
./audit.sh replays # wormholeattack class / Signature / Validator
A valid signature reused because it is not consumed or bound to a nonce.
./audit.sh fuzz # nonce-never-reusedattack class / Signature / Validator
ecrecover s/v not constrained, letting a second valid signature be forged.
semgrep --config rules/bridgeattack class / Signature / Validator
Unchecked ecrecover returning 0x0 treated as a valid signer.
semgrep: bridge.ecrecover-zero-addrattack class / Signature / Validator
Quorum math satisfiable by too few or compromised keys.
./audit.sh replays # roninattack class / Signature / Validator
The same validator counted multiple times toward the threshold.
./audit.sh ai # signer dedupattack class / Signature / Validator
A validator signs two conflicting messages; no equivocation detection.
./audit.sh replays # harmonyattack class / Message / Replay
Processed messages not marked consumed, so they can be re-submitted.
./audit.sh fuzz # nonce-onceattack class / Message / Replay
A message valid on one chain accepted on another (no chainId binding).
./audit.sh replays # wormholeattack class / Message / Replay
A default / zero merkle root accepted as trusted.
./audit.sh replays # nomadattack class / Message / Replay
Domain not bound, enabling cross-context signature reuse.
semgrep --config rules/bridgeattack class / Message / Replay
Sequence not enforced; messages processed out of order or dropped.
./audit.sh aiattack class / Message / Replay
Weak or unchecked proof verification against the committed root.
./audit.sh replays # nomadattack class / Access Control
A privileged function with no onlyOwner / role check or the wrong one.
semgrep --config rules/bridgeattack class / Access Control
initialize() callable by anyone, or re-callable to seize control.
slither --detect unprotected-upgradeattack class / Access Control
Admin or proxy-admin role reachable by an attacker.
slither --detect unprotected-upgradeattack class / Access Control
Proxy and implementation storage layouts clash, corrupting slots.
slither --detect controlled-delegatecallattack class / Access Control
User-controlled target in delegatecall executes attacker code in-context.
slither --detect controlled-delegatecallattack class / Access Control
A reachable selfdestruct bricks the contract or proxy.
slither --detect suicidalattack class / Access Control
Config / fee / validator setters callable without authorization.
semgrep --config rules/bridgeattack class / Arithmetic
unchecked{} blocks or pre-0.8 math wrapping around.
myth analyze # integer over/underflowattack class / Arithmetic
Division before multiplication or truncation draining dust at scale.
slither --detect divide-before-multiplyattack class / Arithmetic
Mixing token decimals in accounting, mispricing value.
./audit.sh aiattack class / Arithmetic
Mint / burn totals that can desync from backing collateral.
./audit.sh fuzz # locked>=mintedattack class / Arithmetic
uintN downcast silently dropping high bits.
semgrep --config rules/bridgeattack class / Oracle / Price
Pricing off a manipulable AMM spot reserve instead of a robust feed.
./audit.sh ai # price sourceattack class / Oracle / Price
Reserves moved within one tx to distort the quoted price.
./audit.sh ai # flashloan priceattack class / Oracle / Price
A short or ill-configured TWAP window gamed across blocks.
./audit.sh aiattack class / Oracle / Price
No freshness or sign check on an external feed.
semgrep --config rules/bridgeattack class / Oracle / Price
One feed with no fallback or sanity bound.
./audit.sh aiattack class / Economic / MEV
Uncollateralized capital used to momentarily satisfy an invariant and drain.
./audit.sh ai # flashloan chainattack class / Economic / MEV
Empty-vault donation inflates share price to steal later deposits.
./audit.sh fuzz # share-priceattack class / Economic / MEV
A direct token transfer skews balanceOf-based accounting.
./audit.sh fuzzattack class / Economic / MEV
Slippage-exposed swaps bracketed by attacker transactions.
./audit.sh aiattack class / Economic / MEV
Accounting assumes amount sent == amount received.
slither --detect unchecked-transferattack class / Economic / MEV
Balances that change out-of-band break fixed-balance accounting.
./audit.sh aiattack class / Denial of Service
Iteration over user-growable arrays exceeding the block gas limit.
slither --detect calls-loopattack class / Denial of Service
A single reverting recipient blocks a batch payout for everyone.
slither --detect calls-loopattack class / Denial of Service
Forwarding insufficient gas or forcing expensive callee paths.
./audit.sh aiattack class / Denial of Service
Time-sensitive paths stalled by filling blocks.
./audit.sh aiattack class / Denial of Service
Unbounded state growth that permanently raises costs.
./audit.sh aiattack class / Low-level
call / send / transfer result ignored, masking a failed transfer.
slither --detect unchecked-lowlevelattack class / Low-level
Auth on tx.origin, phishable through an intermediary contract.
slither --detect tx-originattack class / Low-level
A local struct / array pointing at slot 0 and overwriting state.
slither --detect uninitialized-storageattack class / Low-level
Unmasked calldata / assembly values poisoning comparisons.
./audit.sh aiattack class / Low-level
Hand-written assembly violating memory / ABI assumptions.
./audit.sh aiattack class / Low-level
block.timestamp / blockhash used as an entropy source.
slither --detect weak-prngattack class / Bridge-specific
Release of locked funds without a matching, verified burn / proof.
./audit.sh replays # qubitattack class / Bridge-specific
Wrapped supply can exceed locked collateral (locked >= minted broken).
./audit.sh fuzz # locked>=mintedattack class / Bridge-specific
No way to halt withdrawals when an exploit is in progress.
semgrep --config rules/bridgeattack class / Bridge-specific
Over-trusting an off-chain relayer with no on-chain validation.
./audit.sh aiattack class / Bridge-specific
Keys stored or rotated through a single point of failure.
./audit.sh ai # key rotationattack class / Bridge-specific
No cap binding minted representation to real deposits.
./audit.sh fuzzattack class / Bridge-specific
Crediting before source-chain finality, enabling reorg double-spend.
./audit.sh aiEthereum/Ronin / 2022-03-23
Attacker obtained 5 of 9 validator keys (4 Sky Mavis + Axie DAO allowlisted signer) and signed two withdrawals; no rate limit or delay on large...
forge test --match-test test_RONIN_2022_vulnerablemulti / 2021-08-10
Cross-chain manager could call EthCrossChainData; method name 'f1121318093' collides with putCurEpochConPubKeyBytes (0x41973cd9), replacing the...
forge test --match-test test_POLY_NETWORK_2021_vulnerableBNB / 2022-10-06
IAVL Merkle proof verification mishandled inner nodes, letting the attacker smuggle a forged leaf into a valid proof and mint 2M BNB (~$100-110M...
forge test --match-test test_BNB_BRIDGE_2022_vulnerableSolana / 2022-02-02
verify_signatures accepted a caller-supplied (spoofed) sysvar instructions account, so the guardian signature check was bypassed and 120k wETH minted.
forge test --match-test test_WORMHOLE_2022_vulnerableEthereum / 2023-03-13
donateToReserves lacked a liquidity/health check; attacker made a leveraged account insolvent and self-liquidated at a discount.
forge test --match-test test_EULER_2023_vulnerableEthereum / 2022-08-01
Upgrade initialized the Replica with committedRoot 0x00 and marked it confirmed; unproven messages map to root 0 and were accepted (copy-paste...
forge test --match-test test_NOMAD_2022_vulnerableEthereum / 2022-04-17
Flash-loaned governance power (no snapshot) passed a malicious BIP via emergencyCommit in one transaction.
forge test --match-test test_BEANSTALK_2022_vulnerableEthereum / 2017-11-06
Uninitialized library contract: anyone called initWallet to become owner, then kill() self-destructed it, freezing ~514k ETH.
forge test --match-test test_PARITY_2017_NOV_vulnerablemulti / 2023-07-06
MPC key material effectively controlled by a single party; abnormal outflows signed with the bridge's own keys (key custody single point of failure).
forge test --match-test test_MULTICHAIN_2023_vulnerableSolana / 2022-10-11
Collateral (MNGO perp) valued from thin spot markets; attacker pumped the price and borrowed against the unrealized gain.
forge test --match-test test_MANGO_2022_vulnerableEthereum / 2022-06-23
2-of-5 multisig; two signer private keys compromised, attacker executed withdrawals.
forge test --match-test test_HARMONY_2022_vulnerableEthereum / 2024-01-01
7 of 10 multisig signer keys compromised; vault drained with valid signatures.
forge test --match-test test_ORBIT_2024_vulnerableEthereum/BSC / 2022-01-27
deposit() with token address(0): safeTransferFrom on a code-less address does not revert, so a fake deposit was credited and minted on BSC.
forge test --match-test test_QUBIT_2022_vulnerableEthereum / 2022-04-30
borrow() sent ETH before updating borrow state (no CEI); attacker re-entered (exitMarket) to withdraw collateral. Replay models the...
forge test --match-test test_FEI_RARI_2022_vulnerableEthereum / 2023-07-30
Vyper compiler bug allocated separate storage slots for @nonreentrant locks, so add_liquidity could be re-entered from remove_liquidity's raw_call.
forge test --match-test test_CURVE_VYPER_2023_vulnerableEthereum / 2016-06-17
splitDAO sent ETH before zeroing the balance; recursive calls drained 3.6M ETH.
forge test --match-test test_THE_DAO_2016_vulnerableBSC / 2021-04-28
Fork changed fee scaling to 10000 but the K invariant still used 1000**2, so swaps could take ~all reserves for dust.
forge test --match-test test_URANIUM_2021_vulnerableEthereum / 2020-10-26
Vault share price derived from manipulable Curve pool state; flash-loan swaps skewed it for deposit/withdraw arbitrage.
forge test --match-test test_HARVEST_2020_vulnerableFantom / 2021-12-18
depositFor() took a caller-supplied token; its transferFrom re-entered depositFor, double counting balance-diff shares.
forge test --match-test test_GRIM_2021_vulnerableEthereum / 2017-07-19
initWallet reachable via delegatecall fallback and not protected; attacker re-initialized owners and drained wallets.
forge test --match-test test_PARITY_2017_JUL_vulnerableEthereum / 2020-04-19
ERC777 imBTC hooks allowed re-entry during supply(), inflating recorded balances. Replay models the ERC777 hook-reentrancy class (entrypoint differs).
forge test --match-test test_LENDFME_2020_vulnerableBSC/Ethereum / 2022-10-01
Insufficient validation of call parameters let the attacker invoke claimTokens/transferFrom on users' approvals.
forge test --match-test test_TRANSIT_SWAP_2022_vulnerableOptimism / 2024-05-14
Newly activated empty market: donation + rounding in redeem drained funds (Compound v2 fork).
forge test --match-test test_SONNE_2024_vulnerableEthereum / 2021-08-30
AMP token transfer hooks (ERC777-style) re-entered borrow before debt was recorded.
forge test --match-test test_CREAM_2021_vulnerableEthereum / 2024-08-06
Upgrade called initializeV4 but not initializeV3, leaving _totalOperatorWeight = 0 so minimum vote weight was 0; withdrawals passed without...
forge test --match-test test_RONIN_2024_vulnerableEthereum / 2024-07-16
New facet (depositToGasZipERC20) performed an arbitrary call with user-controlled data, draining infinite approvals.
forge test --match-test test_LIFI_2024_vulnerableEthereum / 2021-08-10
CompoundModel.initialize() was unprotected; attacker re-initialized it with their own forge address and withdrew funds.
forge test --match-test test_PUNK_2021_vulnerableAvalanche / 2023-02-16
emergencyWithdraw returned staked LP collateral without checking outstanding USP debt.
forge test --match-test test_PLATYPUS_2023_vulnerableEthereum/BSC / 2021-07-10
Signature check did not verify the signer was an authorized node; unauthorized signatures raised the receive quota.
forge test --match-test test_CHAINSWAP_2021_vulnerableOptimism / 2023-04-15
Empty market: donation inflated the exchange rate and redeemUnderlying rounded burned shares down, draining other suppliers.
forge test --match-test test_HUNDRED_2023_vulnerableEthereum / 2024-02-28
performOperations allowed an arbitrary external call; attacker transferred tokens users had approved.
forge test --match-test test_SENECA_2024_vulnerableEthereum/BSC / 2022-02-05
deposit() for the wrapped-native token skipped transferFrom (assumed depositETH had wrapped it), so deposits were credited without funds.
forge test --match-test test_METER_2022_vulnerableEthereum / 2020-12-28
Blacksmith.deposit cached pool state in memory before updating it, so reward write-off used a stale accumulator; attacker minted huge COVER.
forge test --match-test test_COVER_2020_vulnerableEthereum / 2021-03-09
init() of crowdpool contracts could be called again, letting the attacker swap in fake tokens and drain real ones.
forge test --match-test test_DODO_2021_vulnerableArbitrum/Optimism / 2023-02-09
Read-only reentrancy: protocol read Curve get_virtual_price during a remove_liquidity callback, when pool state was inconsistent.
forge test --match-test test_DFORCE_2023_vulnerableEthereum / 2024-01-16
Newly added route performed a call with unvalidated user calldata, letting the attacker call transferFrom on tokens users had approved to the gateway.
forge test --match-test test_SOCKET_2024_vulnerableEthereum / 2023-04-09
processRoute trusted an attacker-supplied pool address; the fake pool invoked the swap callback, which pulled tokens from a victim with an approval.
forge test --match-test test_SUSHI_RP2_2023_vulnerableEthereum / 2023-07-21
Read-only reentrancy guard was bypassed due to a misconfigured ETH-pool check, so a mid-callback Curve price was used.
forge test --match-test test_CONIC_2023_vulnerableEthereum/BSC / 2023-02-02
Swap through an attacker token re-entered depositAsset; balance-difference accounting credited the deposit twice.
forge test --match-test test_ORION_2023_vulnerableEthereum / 2020-11-12
deposit accepted an attacker token that re-entered deposit; balance-difference accounting counted the same funds twice.
forge test --match-test test_AKROPOLIS_2020_vulnerableEthereum / 2023-11-01
Same Compound-fork empty-market precision-loss/donation issue in a newly listed market.
forge test --match-test test_ONYX_2023_vulnerableGnosis / 2022-03-15
ERC667 transferAndCall hook on xDAI tokens re-entered borrow before state was updated.
forge test --match-test test_HUNDRED_2022_vulnerableEthereum / 2022-12-25
routerCallNative allowed calls to whitelisted 'routers' that included the USDC token, so user approvals were spent via transferFrom.
forge test --match-test test_RUBIC_2022_vulnerableEthereum / 2023-02-17
selfSwap accepted an arbitrary router + calldata, used to transferFrom tokens approved to Dexible.
forge test --match-test test_DEXIBLE_2023_vulnerableEthereum / 2022-01-18
anySwapOutUnderlyingWithPermit called permit() on WETH, which has no permit but a non-reverting fallback; victims' existing approvals were then spent.
forge test --match-test test_ANYSWAP_2022_vulnerableEthereum / 2022-06-16
LP collateral oracle read manipulable pool state; flash-loan manipulation let the attacker over-borrow.
forge test --match-test test_INVERSE_2022_vulnerableBSC / 2023-05-01
claimMultiple() did not de-duplicate epochs / update claimed state per iteration, so the same referral reward was claimed repeatedly.
forge test --match-test test_LEVEL_2023_vulnerableEthereum / 2022-03-20
swap data allowed arbitrary calls before bridging; attacker used it to transferFrom users with infinite approvals.
forge test --match-test test_LIFI_2022_vulnerableNothing matches that filter.
HOW TO READEach card is a bug class the pipeline hunts: family, severity, the real-world hack it maps to, and the exact engine command or ./audit.sh flag that detects or exploits it. Severity blocks: 4 = critical. Replays are rebuilt as fork tests, not run against mainnet.
what runs under the catalog
A propose → verify → price loop on your local qwen3-local (Huihui Qwen3.8 27B abliterated). An exploit only counts once it drains the fork.
Static + symbolic + fuzzing + mutation + the AI team, merged into one severity-ranked report and a merge-blocking CI gate.
./audit.sh allEverything installs under ./tools; the only big download is the ~20 GB model. Contracts never leave the machine.
Target mode forks live chain state into a local anvil and runs every attack against that copy. The real chain is never written to and nothing is broadcast.