Scan to download
BTC $75,807.95 +1.74%
ETH $2,360.44 +1.20%
BNB $633.04 +1.70%
XRP $1.45 +2.52%
SOL $88.64 +4.29%
TRX $0.3244 -0.67%
DOGE $0.0985 +3.07%
ADA $0.2577 +3.70%
BCH $449.76 +2.30%
LINK $9.57 +3.52%
HYPE $44.14 -2.28%
AAVE $115.91 +9.74%
SUI $1.00 +3.15%
XLM $0.1693 +5.35%
ZEC $333.88 -2.72%
BTC $75,807.95 +1.74%
ETH $2,360.44 +1.20%
BNB $633.04 +1.70%
XRP $1.45 +2.52%
SOL $88.64 +4.29%
TRX $0.3244 -0.67%
DOGE $0.0985 +3.07%
ADA $0.2577 +3.70%
BCH $449.76 +2.30%
LINK $9.57 +3.52%
HYPE $44.14 -2.28%
AAVE $115.91 +9.74%
SUI $1.00 +3.15%
XLM $0.1693 +5.35%
ZEC $333.88 -2.72%
first_img

Beosin: Analysis of the Attack on the DeFi Protocol Penpie Resulting in Approximately $27 Million in Asset Losses

2024-09-04 10:28:15
Collection

ChainCatcher news, according to Beosin Alert monitoring, the DeFi protocol Penpie built on Pendle has been hacked, resulting in the theft of approximately $27 million in crypto assets. Beosin provides the following brief analysis of the incident:

The attacker exploited the claimRewards function in the market contract to re-enter the staking contract, increasing the staking contract balance, and then withdrew excess tokens and staked assets from the taking contract for profit.

  1. The attacker first created an attack contract and constructed the corresponding market contract through the official factory.
  2. Called the batchHarvestMarketRewards function of the staking contract to update rewards for the market.
  3. During the reward update, the attack contract's claimRewards function is called back, allowing for re-entry to stake the assets obtained from the flash loan, creating a discrepancy in the asset quantity of the staking contract, and withdrawing the excess.
  4. The attacker withdrew the staked assets and repaid the flash loan for profit.
Related tags
Related tags
app_icon
ChainCatcher Building the Web3 world with innovations.