BlockSec: DBXen contract遭遇攻击,损失约 150,000美元
According to BlockSec monitoring, the DBXen contract was attacked this morning, with estimated losses of about $150,000. The root cause lies in the inconsistency of the sender's identity under the ERC2771 meta-transaction. In the burnBatch() function, the gasWrapper() modifier uses _msgSender() (the actual user) to update the state, while the callback function onTokenBurned() uses msg.sender (the relayer). This leads to accCycleBatchesBurned being recorded for the user, but lastActiveCycle being incorrectly updated for the relayer.
This inconsistency disrupts the logic of claimFees() and claimRewards(). When updateStats() is run for the user, the contract incorrectly assumes there are unprocessed burned batches because accCycleBatchesBurned has been updated while lastActiveCycle has not, resulting in incorrect calculations of rewards and fees, allowing the attacker to extract excess funds for profit.
-- Price
This content is provided for general informational purposes only and doesn't constitute financial, investment, legal, or tax advice. Any events, rewards, online promotions, or related information mentioned herein should not be considered a recommendation, solicitation, or invitation to purchase, sell, trade, or otherwise deal in any crypto assets. Crypto assets are highly volatile and may result in loss. The availability of WEEX services, products, and related events may vary by region. You are responsible for ensuring that your participation is in accordance with applicable local laws and regulations.
You may also like

MultiversX Supernova Upgrade Decouples Consensus and Execution, Mainnet Expected to Activate on September 10

50-60 Vessels Stuck on the Danube Awaiting Passage to Ukrainian Ports

Bitcoin vulnerable in low-$70,000 range as options market shifts

Australian Retirement Trust Increases Yen Holdings, Reduces U.S. Treasury Exposure

Zero-balance bug exposes 82 Provenance assets to takeover

Shopify CEO Tobi Lütke Considers Disabling Claude Code

Iranian Deputy Foreign Minister Says Strait of Hormuz Requires Iran's Consent to Reopen

NEAR Introduces Quantum-Resistant Signatures in Mainnet Upgrade 2.13

Binance Accused of Bitcoin Liquidations Up to $3000 Lower

VIX Futures Volatility Rises as U.S. Midterm Elections Approach

Update on Critical Status for Worker Reservations Until September

Brazil fines ByteDance 153.7 million reais for violating children's data protection

Parking Fee Revenues Reached UAH 136.5 Million, Up 14%

UBS Market Vulnerability Indicator Reaches 1.0, September Fed Meeting and November Midterm Elections May Trigger Volatility

Potential for Market Expansion Despite Decline in AI Token Prices

AI Fraud Targets Wallet Approval Processes

Amazon Device Price Increase: Echo Dot Costs 60% More

El-Erian: Rising Long-Term Interest Rates Due to Bond Supply Issues

Twitch Faces Class Action Lawsuit for Unauthorized Use of Streamer Content

Ukraine to Introduce Automatic Gambling Restrictions for Military Personnel

U.S. Chicago National Activity Index for July at -0.08, Below Long-Term Average

Roche and Eli Lilly Obtain FDA Authorization for Alzheimer’s Blood Test

Trump claims hospitals are reversing gender surgeries, but the facts tell a different story

New Mexico to Maintain State Coverage for Gender Affirmation Care for Minors

Wall Street Futures Drop, Brent Oil Falls to $91.26

ECB Defends Digital Euro Privacy Design, Claims User Identities Cannot Be Identified

Number of MiCA Licensed Institutions Increases to 331, All New Additions from German Cooperative Banks

MIPT: Testing Cryptocurrency Trading Strategies in Real Market Conditions

20-Year Treasury Yield at 5.20%, Risks in Cash Flow for Loan Purchases








