The Ethereum fund under PEAKDEFI was stolen approximately 33,800 USDC, with the attacker exploiting a vulnerability in the block recommendation weight update
A DeFi asset management protocol operated by PEAKDEFI suffered an attack on an Ethereum fund, resulting in a loss of approximately $33,800. The attacker exploited a vulnerability in the referral commission settlement, prompting the fund contract to pay out 33,819.89 USDC, which accounted for about 99.97% of the total referral commission for Cycle 19.
On-chain analysis shows that the vulnerability is related to the referral weight snapshot mechanism. At the end of Cycle 19, the contract recorded the current block height as a settlement snapshot through nextPhase(), but the PRT balance used to calculate the referral commission share could still be updated within the same block. After the start of Cycle 20, the attacker obtained funds through a flash loan and minted PRT, allocating it to designated referrers, allowing the newly added referral weight to be included in the commission settlement for Cycle 19. After the allocation was completed, the temporarily minted PRT was destroyed, and the flash loan principal was fully repaid in the same transaction.