Origin Protocol Hack

TOTAL LOST $8.0M
Medium Flash Loan Attacks ethereum

What happened

On November 17, 2020, an attacker used flash-loan liquidity and a malicious token contract to reenter OUSD VaultCore's mint path. A gas-saving refactor had removed a validation check and the mint flow lacked reentrancy protection. Reentrant calls inflated the rebasing OUSD supply; the attacker then redeemed the inflated OUSD for collateral, draining the vault.

Case & protocol details

Classification Ecosystem / NFT,Stablecoin / Reentrancy
Protocol Type Exploit/Flash Loan Attack
Affected asset / contract OUSD
Smart Contract Language Solidity
Official Website www.originprotocol.com/
Protocol Twitter/X @code423n4

Attack Timeline

VaultCore accepted an attacker-controlled token during minting. Its transferFrom callback re-entered the mint flow while the vault's rebasing supply calculation was incomplete. Missing asset validation and reentrancy protection allowed OUSD supply to be inflated beyond the underlying collateral, which the attacker redeemed for vault assets.

Flash loans supplied the temporary capital required for the transaction. Origin later compensated eligible users for their deposited value; that was protocol compensation rather than recovery of attacker funds.

Practice this exploit pattern safely

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.