Reproduced Exploit
Colbfinance: Any whitelisted user loops deposit + early-withdraw to inflate the global totalDepositToPr
Chain
Other
Category
untagged
Date
Jan 1970
Source
AuditVault
EVM Playground
Source-level debugger — step opcodes and Solidity in sync
The attack is replayed in an in-browser EVM preloaded with the exact dumped fork state. The execution tree shows every call; step by Solidity line or by opcode across all depths — source, Stack, Memory, Storage, Balances (native / ERC-20 / NFT), Transient storage and Return value stay in sync. Click a tree node, opcode, or source line to jump. No backend, no live RPC.
Source & credit. Reproduction of a public audit finding curated by AuditVault — the original finding: 63357-h-01-malicious-users-can-brick-vault-operations-by-exploitin. The historical source/toolchain is unavailable; this entry is documentation only and claims no executable Forge PoC.
Vulnerability classes: vuln/locked-funds · vuln/unfair-mint
Reproduction: a faithful minimal reproduction of the vulnerable finding — the vulnerable function is reproduced verbatim (marked
@>) with faithful minimal doubles; local deploy, no fork.
Root cause#
Any whitelisted user loops deposit + early-withdraw to inflate the global totalDepositToProcess up to maxTotalDeposit while real vault balance returns to 0, permanently bricking all deposits (DepositOverflowTotalCap forever); the 500e18 locked capacity is recorded to the SINK.
uint256 restToReimbourse = amount;
UserStat storage userStat = usersStat[user];
userStat.totalDeposit -= amount; // @> only the PER-USER totalDeposit is decremented; the GLOBAL totalDepositToProcess is NEVER reduced here -> permanent inflation
uint256[] memory userDepos = usersDeposit[user];
Why it's exploitable here#
Any whitelisted user loops deposit + early-withdraw to inflate the global totalDepositToProcess up to maxTotalDeposit while real vault balance returns to 0, permanently bricking all deposits (DepositOverflowTotalCap forever); the 500e18 locked capacity is recorded to the SINK.
Attack path#
Marked-line walkthrough (Playground)#
The EVM Playground pins each step to the exact executed source line in 0xce01759b82…:
- L52 — Vault token decimals constant: Setup: declares the vault token's fixed 18-decimal precision used across deposit accounting.
- L132 — Whitelist mapping declared: Setup: the
whitelistgate limiting who may deposit — the attacker is simply a whitelisted user abusing this access. - L149 — Gate deposits to whitelist: Rejects non-whitelisted callers, but any whitelisted user can run the deposit + early-withdraw loop that inflates the global cap counter.
- L191 — Reverts once global cap hit: Blocks all deposits once
totalDepositToProcessreachesmaxTotalDeposit— the permanent brick the attack forces even with an empty vault. - L208 — Operator processes early withdraw: Operator-only path that settles a queued early withdrawal, refunding the user while adjusting the deposit accounting.
- L223 — Only per-user deposit decremented: Root cause: early-withdraw decrements only the per-user
totalDeposit, never the globaltotalDepositToProcess, so the cap counter only ratchets up. - L238 — Compute reimbursement amount: Picks how much to reimburse the withdrawing user, capped by their deposit — the payout that returns real vault balance to zero.
PoC#
Registry (Foundry, local deploy — verbatim vulnerable source + harm-asserting test + negative control):
cd 63357-h-01-malicious-users-can-brick-vault-operations-by-exploitin_exp
forge test -vvv
The browser Playground replays the same synthetic opcode-for-opcode and measures the harm: Any whitelisted user loops deposit + early-withdraw to inflate the global totalDepositToProcess up to maxTotalDeposit while real vault balan. Both gates are green (registry forge test PASS + Playground _verify-poc VERDICT: PASS).
Sources & further analysis#
Reproductions & code
- No executable Forge reproduction is claimed; the historical source/toolchain was unavailable for this finding.
- AuditVault finding: 63357-h-01-malicious-users-can-brick-vault-operations-by-exploitin.
- Upstream DeFiHackLabs PoC directory: src/test.
Alerts & third-party analyses
- DeFiHackLabs incident explorer: search "Colbfinance: Any whitelisted user loops deposit + early-withdraw to inflate the global totalDepositToPr".
- Web3Sec X hacked database: search.
- Rekt leaderboard: search.
- Solodit incident search: search.
These dashboards index community alerts tweets, post-mortems, and independent write-ups. Reach them through the protocol name above to cross-check this reproduction against other analyses.