Ribbon Finance, formerly Aevo, loses $2.7 million in DeFi hack

Source Cryptopolitan

A sophisticated attack on Aevo-rebrand Ribbon Finance drained $2.7 million from its old contract and moved to fifteen separate wallet addresses, some of which have already been consolidated into larger accounts. 

According to several blockchain investigators on social platform X, the attack occurred just six days after the platform upgraded its oracle infrastructure and option creation procedures. They used a smart contract prompt to extract hundreds of Ethereum tokens and other digital assets.

In a thread explaining the exploit, Web3 security analyst Liyi Zhou said a malicious contract manipulated the Opyn/Ribbon oracle stack by abusing price-feed proxies, and pushed arbitrary expiry prices for wstETH, AAVE, LINK, and WBTC into the shared oracle at a common expiry timestamp. 

“The attacker placed large short oToken positions against Ribbon Finance’s MarginPool, which used these forged expiry prices in its settlement pipeline and transferred out hundreds of WETH and wstETH, thousands of USDC, and several WBTC to theft addresses through redeem and redeemTo transactions,” Zhou explained.

Ribbon Finance’s oracle price upgrade had weaknesses

Six days before the attack, Ribbon Finance’s team updated the oracle pricer to support 18 decimals for stETH, PAXG, LINK, and AAVE. However, other assets, including USDC, were still at eight decimals, and according to Zhou, the discrepancy in decimal precision contributed to the vulnerability that was exploited on Friday.

According to a pseudonymous developer going by the username Weilin on X, the creation of oTokens themselves was not illegal because every underlying token must be whitelisted before it’s used as collateral or a strike asset, a procedure the attacker followed to the letter.

The malicious activity began with the creation of poorly structured option products, where one product consisted of a stETH call option with a 3,800 USDC strike, collateralized with WETH, set to expire on December 12. The attacker then created several oTokens for these options, which were later exploited to drain the protocol.

The attack involved repeated interactions with the proxy admin contract at 0x9D7b…8ae6B76. Some functions, like transferOwnership and setImplementation, were used to manipulate the price-feed proxies through delegate calls. The hacker invoked an implementation for the oracle to set asset expiry prices at the same timestamp to cause ExpiryPriceUpdated events that confirmed the fraudulent valuations.

The manipulated prices made the system recognize stETH as being far above the strike price and burned 225 oTokens, yielding 22.468662541163160869 WETH. In total, the hacker extracted approximately 900 ETH through this method.

Web3 security firm Spectre spotted the initial transfers to a wallet address at 0x354ad…9a355e, but from there, the money was distributed to 14 more accounts, with many holding around 100.1 ETH each. Some of the stolen funds have already entered what blockchain Zhou referred to as “TC” or treasury consolidation pools.

DeFi lending protocol builder: Opyn dApp was not compromised 

According to Monarch DeFi developer Anton Cheng, Coinbase-backed decentralized application Opyn was not compromised as rumored in chatter on Crypto Twitter.

Cheng explained that the Ribbon Finance hack was facilitated by an upgraded oracle code that inadvertently allowed any user to set prices for newly added assets. He denoted that the attack began with a preparatory transaction to “set the stage” by generating poorly structured oTokens with legitimate collateral and strike assets. He continued to say that the fake tokens allowed the hacker to pick well-known underlyings like AAVE to avoid drawing attention and getting flagged. 

The hacker then set up three “subaccounts,” each depositing minimal collateral to mint all three options. All subaccounts were marked as type 0, meaning they were fully collateralized, but the absence of a maximum payout limit for each account or oToken helped the perpetrator drain assets without any restrictions.

Under Opyn’s Gamma systems, the underlying asset must match the collateral for call options and the strike for puts to keep sellers fully collateralized. If an oracle is compromised, only sellers for that specific product are meant to suffer.

Yet in this case, the combination of new oToken creation and the manipulated oracle were enough to bypass these protections.

Get seen where it counts. Advertise in Cryptopolitan Research and reach crypto’s sharpest investors and builders.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
Macro Analysts: Hawkish Japan Could Push Bitcoin Below $70KAnalysts predict Bitcoin may face further declines towards the $70,000 mark if the Bank of Japan raises interest rates as expected.
Author  Mitrade
13 hours ago
Analysts predict Bitcoin may face further declines towards the $70,000 mark if the Bank of Japan raises interest rates as expected.
placeholder
Ethereum Price Slips Lower — $3,000 Looms as the Key BattlegroundEthereum is attempting to recover from a $3,026 low but remains below $3,200 and the 100-hour SMA, with a bearish trend line near $3,175 capping rebounds as bulls need a clean break above $3,200 to target $3,250–$3,400, while a drop below $3,050 risks a retest of $3,000 and $2,940.
Author  Mitrade
16 hours ago
Ethereum is attempting to recover from a $3,026 low but remains below $3,200 and the 100-hour SMA, with a bearish trend line near $3,175 capping rebounds as bulls need a clean break above $3,200 to target $3,250–$3,400, while a drop below $3,050 risks a retest of $3,000 and $2,940.
placeholder
Gold remains bid as lack of Fed clarity and geopolitical frictions persistGold (XAU/USD) advances modestly on Friday as traders seem to book profits ahead of the weekend, yet clings to gains of over 0.51% after reaching a seven-week high of $4,353. At the time of writing, XAU/USD trades at $4,302 as traders digest comments from Federal Reserve (Fed) officials.
Author  FXStreet
17 hours ago
Gold (XAU/USD) advances modestly on Friday as traders seem to book profits ahead of the weekend, yet clings to gains of over 0.51% after reaching a seven-week high of $4,353. At the time of writing, XAU/USD trades at $4,302 as traders digest comments from Federal Reserve (Fed) officials.
placeholder
Wall Street Sounds Alarm: "Bitcoin's Four-Year Cycle Invalidated" - Will the Crypto Bull Market Persist?Wall Street Challenges Bitcoin's CyclicalityTradingKey - Recently, Wall Street firms led byJPMorgan, Bernstein, and ARK Invest ignited debate, asserting Bitcoin's four-year cycle is broken. They claim
Author  TradingKey
Dec 12, Fri
Wall Street Challenges Bitcoin's CyclicalityTradingKey - Recently, Wall Street firms led byJPMorgan, Bernstein, and ARK Invest ignited debate, asserting Bitcoin's four-year cycle is broken. They claim
placeholder
Ethereum Price Eyes an Upside Break — But $3,350 Has Other IdeasEthereum is consolidating above $3,200 and its 100-hour SMA after defending $3,150, with a bullish trend line support at $3,180 and an upside breakout hinging on a clean move through $3,320–$3,350, while a drop below $3,150 would reopen $3,040–$3,000 support.
Author  Mitrade
Dec 12, Fri
Ethereum is consolidating above $3,200 and its 100-hour SMA after defending $3,150, with a bullish trend line support at $3,180 and an upside breakout hinging on a clean move through $3,320–$3,350, while a drop below $3,150 would reopen $3,040–$3,000 support.
goTop
quote