Sui DeFi lending protocol Scallop is hacked, with a vulnerability in the old contract leading to 150k SUI stolen

SUI2,37%
LTC1,28%

Sui on-chain DeFi lending protocol Scallop issued a security incident notice on its official X account (@Scallop_io), confirming that the platform was attacked. Scallop said that the team found that a side contract related to the sSUI rewards pool was exploited, resulting in a loss of about 150k SUI. Scallop emphasized that the affected contracts have been frozen, the core contract remains safe, and only the sSUI rewards pool was impacted.

In a subsequent update, Scallop further stated: “The core contract has been unfrozen, and all operations have been restored. This issue is not related to the core protocol; it is limited to a deprecated rewards contract. User deposits are not affected. All funds are safe, and the deposit and withdrawal functions have resumed normal operation.” The team promised to share more details and to continuously monitor and strengthen protocol security.

Former NEAR core member Vadim: The problem lies in an old package from 17 months ago

Regarding this incident, former NEAR core developer Vadim (@zacodil) published an in-depth technical analysis on X, revealing the details of the vulnerability. Vadim pointed out that the attacker knew exactly which deprecated package to call. "It’s not the code currently running, and it’s not the SDK path—it’s an old V2 from November 2023 that went unused for months. That means it was either deeply reverse-engineered, or someone already knew where to look. This vulnerability has been lurking for 17 months.

Vadim explained that spool tracks an index that grows as rewards are allocated. When each user account is staked, it should have recorded the last_index at that moment, so the formula for the points earned is: staked amount × (current_index − last_index); users can only earn rewards from the time they joined.

But in the deprecated V2 package, when a brand-new spool_account is created, last_index is not initialized and remains 0. Therefore, when update_points runs, the calculation result becomes: points = staked amount × (current_index − 0) = staked amount × the full historical index. The user is credited with all rewards accumulated since the spool was created in August 2023.

Vadim provided specific data: the spool index grew to 1.19 billion over 20 months. The attacker staked 136k sSUI and instantly received a credit of 162 trillion points. Because the rewards pool uses a 1:1 conversion ratio (both numerator and denominator are 1), 162 trillion points directly converts into rewards worth 162k SUI. But the rewards pool only had 150k SUI, so it was drained entirely.

All April on-chain security incidents occurred in surrounding systems

Vadim explained that normal users use the SDK to use the new package, and the new package has fixed the last_index synchronization issue. The reason the old V2 package still remains on-chain is because Sui packages are immutable. — Once published, every old version can be called forever. The shared Spool and RewardsPool objects accept calls from any version, and the attacker bypassed the SDK to directly hit the old code path.

Vadim categorized this as a “Sui outdated package type vulnerability.” He pointed out that the correct fix requires adding a version field to the shared object and adding an assert!(version == CURRENT_VERSION) check in every function. Without this mechanism, every previously published package version will forever remain an active attack surface.

Vadim further noted that most attack incidents this month did not occur in the core protocol code, but in surrounding systems:

KelpDAO: RPC infrastructure

Litecoin: MWEB privacy layer

Aethir: access control for peripheral adapters

Scallop: forgotten deprecated package

This article about the hacking of the Sui on-chain DeFi lending protocol Scallop, where a vulnerability in an old contract led to 150k SUI being stolen, first appeared on Chain News ABMedia.

Disclaimer: The information on this page may come from third parties and does not represent the views or opinions of Gate. The content displayed on this page is for reference only and does not constitute any financial, investment, or legal advice. Gate does not guarantee the accuracy or completeness of the information and shall not be liable for any losses arising from the use of this information. Virtual asset investments carry high risks and are subject to significant price volatility. You may lose all of your invested principal. Please fully understand the relevant risks and make prudent decisions based on your own financial situation and risk tolerance. For details, please refer to Disclaimer.

Related Articles

Jupiter Lend Raises JLP/JupUSD Borrowing Limit to $40 Million

Gate News message, April 27 — Jupiter Lend has increased its JLP/JupUSD borrowing limit from $25 million to $40 million. Users can now borrow up to 85% LTV or perform recursive operations on JLP. The protocol announced the adjustment via social

GateNews9m ago

Polymarket Announces April 28 Upgrade: Collateral Assets Migrated to pUSD, Trading Paused for About 1 Hour

According to an official announcement posted on X on April 27 by Polymarket developers, Polymarket will roll out a full platform infrastructure upgrade at 11:00 UTC on April 28, with trading paused for about 1 hour. This upgrade includes new generation trading contracts, a rebuilt order book, and the introduction of a new collateral token, pUSD. The platform’s existing collateral assets will be migrated from USDC.e to pUSD.

MarketWhisper11m ago

Polymarket Upgrades Platform on April 28, Migrating Collateral from USDC.e to pUSD

Gate News message, April 27 — Polymarket announced it will upgrade its platform on April 28, 2026, at approximately 19:00 UTC, with trading suspended for about one hour during the maintenance window. The upgrade includes a new-generation trading contract (CTF Exchange V2), a reconstructed order book

GateNews1h ago

Curve Proposes Market-Based Recovery Plan for $700K Bad Debt in CRV-long LlamaLend Market

Gate News message, April 27 — Curve team unveiled a governance proposal on April 27 to address approximately $700,000 in bad debt from the CRV-long LlamaLend market, which occurred on October 10, 2025. The proposed recovery mechanism leverages the optionality of CRV-long vault assets: vault value in

GateNews1h ago

Scallop’s abandoned V2 contract was exploited; after 150k SUI were stolen, it announced full reimbursement

Sui Network decentralized lending protocol Scallop posted an official announcement on the X platform on April 26 (Sunday), confirming that it was hit by a vulnerability attack. The attacker extracted approximately 150,000 SUI from an abandoned rewards contract associated with sSUI spool. According to the official statement, the core liquidity pool and users’ deposits were not affected. The protocol has restored deposits and withdrawals, confirming that the company will fully reimburse all losses with company funds.

MarketWhisper1h ago

AAVE Now Live on Solana Network, Available on Phantom and Jupiter

Gate News message, April 27 — AAVE is now live on the Solana network, with support for trading the DeFi governance token on platforms including Phantom and Jupiter. Aave is a non-custodial liquidity

GateNews1h ago
Comment
0/400
No comments