PEAKDEFI Ethereum Fund Exploited for $33.8K in Referral Snapshot Flaw
TREE NEWS reports: A DeFi asset management protocol’s Ethereum fund has been drained of approximately $33,800 after an attacker exploited a flaw in how referral commissions are calculated. The attacker manipulated the fund contract into paying out 33,819.89 USDC — roughly 99.97% of all referral commissions for Cycle 19 — by taking advantage of a same-block weight update vulnerability.
How the Attack Unfolded
On-chain analysis reveals that the exploit hinged on the referral weight snapshot mechanism. At the end of Cycle 19, the contract calls nextPhase() to record the current block height as the settlement snapshot. However, the PRT token balances used to calculate each referrer’s commission share could still be updated within the same block. The attacker exploited this timing gap: after Cycle 20 began, they used a flash loan to mint PRT tokens, allocated them to designated referrers, and ensured the newly added referral weight was counted toward Cycle 19’s commission settlement. The temporarily minted PRT was then burned, and the flash loan principal was repaid in full within the same transaction.
Industry Implications
This incident highlights a recurring class of vulnerabilities in DeFi protocols: snapshot manipulation. While flash loans are a legitimate tool, they are frequently weaponized to exploit logic that assumes state remains static within a block. The attack also underscores the risks of complex referral and incentive systems, where multiple token balances and timing conditions interact. Protocols must ensure that critical snapshots are either taken at a block boundary with no further updates allowed, or that weight calculations are resistant to intra-block manipulation. The relatively small loss size may limit immediate contagion, but the exploit pattern is a warning for any protocol relying on end-of-cycle snapshots for reward distribution.
Forward-Looking Perspective
PEAKDEFI will likely face pressure to audit and redesign its referral commission mechanism, potentially introducing time-weighted average balances or commit-reveal schemes for weight updates. The incident also adds to the growing list of DeFi exploits in 2025, reinforcing the need for rigorous testing of state-dependent logic. As DeFi protocols increasingly incorporate gamified incentives, the attack surface for snapshot-based manipulation will only grow. Investors and users should monitor whether PEAKDEFI compensates affected fund participants and whether similar vulnerabilities exist in other cycle-based reward systems.




