Exactly, JPEG’d, Pond0x: Reentrancy, Input Abuse, and a Suspect
Exactly Protocol's leverage() function lacked input validation, allowing an attacker to spoof a market address and manipulate the _msgSender parameter to drain victim funds. JPEG'd suffered a reentrancy attack on Curve's Factory Pool contract, where the total_supply was not updated during reentry, enabling price manipulation of pETH.
Across multiple chains and dates, these four attacks highlight the spectrum of smart contract fragility. Exactly Protocol let anyone spoof market interactions due to unchecked inputs.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely missing input validation in a public function and a reentrancy flaw where state was not updated before an external call.
Impact
The attacks led to losses of $7.3M and $11.4M respectively, though JPEG'd recovered nearly $10M.
What the attacker needed
None
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A smart contract is a program on a blockchain that automatically executes actions. In these attacks, the programs trusted input or allowed actions in the wrong order, so attackers could trick them into giving away money. For example, one contract let anyone pretend to be someone else and take their funds.
What is Smart contracts?
Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.