Worked example · 2023-08
Exactly Protocol cross-chain debt-ceiling bypass — Optimism — 2023-08-18
Summary
Exactly Protocol is a cross-chain lending protocol on Optimism and Ethereum that enforces per-user debt ceilings across chains via cross-chain message passing. On August 18, 2023, an attacker exploited a validation flaw in one of Exactly's peripheral contracts that processed cross-chain debt-ceiling messages, enabling borrowing above the authorised per-user limit. The attacker extracted approximately $7.2M before the protocol team paused affected contracts.
Timeline (UTC)
| When | Event | OAK ref |
|---|---|---|
| Pre-2023-08-18 | Exactly Protocol operates cross-chain lending with debt-ceiling enforcement via cross-chain message passing | T10.002 surface (latent) |
| 2023-08-18 | Attacker exploits cross-chain message validation flaw in peripheral contract, bypassing debt-ceiling check | T10.002 (execution) |
| 2023-08-18 | Attacker borrows above authorised ceiling; extracts ~$7.2M | T9.004 (extraction) |
| 2023-08-18 onward | Proceeds partially routed through Tornado Cash | T7.001 |
Public references
[peckshieldexactly2023]— PeckShield on-chain trace of the Exactly Protocol cross-chain debt-ceiling bypass.[blocksectexactly2023]— BlockSec function-level walkthrough of the cross-chain message validation flaw.
Discussion
Exactly Protocol August 2023 is the canonical 2023 Optimism T10.002 worked example for the cross-chain debt-ceiling-bypass sub-pattern. The case complements ChainSwap July 2021 (token-deployment authorisation bypass) and Poly Network August 2021 (message-verification bypass in relay-contract logic) as a structurally distinct T10.002 sub-class: the message-validation failure was in a peripheral contract's enforcement of a cross-chain invariant (debt ceiling), not in the core bridge's message-verification logic and not in a token-deployment authorisation path. The case closes the T10×2023 near-threshold gap at v0.1.