Crypto exploits

XocolatlLiquidator exploit analysis

Xocolatl's AccountLiquidator accepted a caller-supplied HouseOfReserve address and trusted its price and liquidation-factor data, so an attacker deployed a fake reserve returning minimal values and liquidated real users' cbETH and WETH positions through it for almost nothing. DeFiHackLabs and an independent Basescan read both confirm roughly 3.25 cbETH and 0.22 WETH taken.

David

Security ·

Reported loss
approximately 3.25 cbETH and 0.22 WETH per DeFiHackLabs, independently confirmed via Basescan at 3.249507847244806886 cbETH and 0.216195570911748935 WETH
Occurred
Logged
Chain
Base

Logged as “2026-03-24: Access Control Input Validation on XocolatlLiquidator”.

Analysis2 min read

Xocolatl is the protocol behind $XOC, a Mexican-peso-pegged stablecoin issued by LaDAO against overcollateralized crypto deposits, live on Base. Collateral is tracked per asset in separate HouseOfReserve contracts, and users' positions are recorded through an ERC-1155 ledger the protocol calls AssetsAccountant, which is why the attack transaction shows well over a hundred small token-ledger transfers alongside the two real withdrawals that mattered.

Unhealthy positions are closed through an AccountLiquidator proxy, at 0x4b75Fb5B0D323672fc6Eac5Afbf487AE4c2ff6de, whose liquidateUser(address userToLiquidate, address houseOfReserve) takes the reserve to liquidate against as a caller-supplied argument rather than reading it from a registry the protocol itself maintains. The attacker, at 0xdB731450e065ea7f6Bef6d27e88Dd07D6E2d1AF5, deployed an attack contract at 0xcd2b07c193720d932ecda7490aa636bc8de4bfca, which in turn created two throwaway reserve contracts (one for cbETH, one for WETH, at 0x88f8e86bbfc8f02a2f59632dc50a070400294515 and 0x538fddfe280d595bb7a441b6b0d297f9cf997c8b), each with getLatestPrice() and liquidationFactor() returning a bare 1, and passed those addresses as houseOfReserve in calls naming real users' positions against the protocol's genuine cbETH reserve, at 0x5c4a154690AE52844F151bcF3aA44885db3c8A58, and its genuine WETH reserve, at 0xfF69E183A863151B4152055974aa648b3165014D. With the liquidation's pricing inputs coming from the attacker's own contract rather than the real reserve, the cost AccountLiquidator charged to seize a victim's collateral rounded to effectively nothing, while the collateral released still came out of the genuine cbETH and WETH reserves. The proof of concept also has the attacker push a Pyth price update immediately before liquidating, consistent with clearing a staleness check elsewhere in the path so the rest of the sequence would not revert.

Base's own record of the transaction, confirmed independently of DeFiHackLabs, puts it at block 43,801,483, timestamped March 24, 2026, 10:45:13 PM UTC, and shows the attacker's address created three contracts in the course of the call, consistent with the fake reserve and related helpers, and receiving 3.249507847244806886 cbETH and 0.216195570911748935 WETH from the protocol's real reserves, in line with DeFiHackLabs' documented loss of approximately 3.25 cbETH and 0.22 WETH. No report of the incident independent of DeFiHackLabs was found after searching for Xocolatl alongside "AccountLiquidator," "HouseOfReserve" and "exploit," and no statement from LaDAO about it. At roughly $8,000 to $9,000 across the two assets, the loss is well under the threshold that usually draws a security firm's attention, and the protocol's TVL and user base are modest enough that one liquidator bug affecting a handful of positions may simply not have been noticed outside the repository that reproduced it.

The earlier draft's description, that liquidate(debtor) let the caller name any debtor and keep their collateral, pointed at the right family of bug without naming the actual function or parameter. The real liquidateUser does take a caller-supplied argument, but it is the reserve being liquidated against, not the debtor, that the attacker controls, and the debtor named in the call can be anyone with an open position regardless of whether it is genuinely unhealthy.

What would have prevented it is having AccountLiquidator resolve houseOfReserve from the asset recorded against the user's own position, or from a registry of reserves the protocol itself deployed, rather than accepting it as a liquidator-supplied address and trusting whatever that address reports back about price and liquidation terms.

Sources read (3)

Other exploits

Query every incident yourself — free, no signup

Updated 9 Nov 2026. Figures are as reported by the sources listed above and are not independently verified.