Decentralized finance biz Cream Finance became further decentralized on Wednesday with the theft of $130m worth of crypto assets from its Ethereum lending protocol.
Cream (cream.finance and not creamfinance.com) reported the loss via Twitter, the third such incident for the loan platform this year.
“Our Ethereum C.R.E.A.M. v1 lending markets were exploited and liquidity was removed on October 27, 1354 UTC,” the Taiwan-based biz said. “The attacker removed a total of ~$130m USD worth of tokens from these markets, using this address. No other markets were impacted.”
Rendered as an acronym, C.R.E.A.M. stands for Crypto Rules Everything Around Me, and as noted the last time this occurred – when $18.8m in tokens were stolen a mere two months ago – that’s a claim that’s difficult to reconcile with the repeated looting of company coffers.
DeFu – Decentralized f**kup
Decentralized Finance, or DeFi, is a way to conduct financial transactions without a central governing authority through the automated interaction of smart contracts – code that may or may not have bugs, but probably does.
PeckShield, a blockchain security company founded by Jiang Xuxian, former chief scientist of Qihoo 360, attributed the incident to a bug that the unidentified attacker was able to exploit.
“The hack is made possible due to a price manipulation bug in CREAM price oracle,” said PeckShield via Twitter, referring to the mechanism used to look up asset price information in a decentralized system. “And this bug allows a directly transferred yDAI+yUSDC+yUSDT+yTUSD tokens to significantly increase yUSD pricePerShare, which allows for basically borrowing all funds in current lending pools.”
The yUSD vault, based on the Yearn protocol, is a fund that consists of crypto coins tied to fiat currencies (e.g. Tether (USDT), USD Coin (USDC)) that accrues value from other transactions like interest, swap fees, and demand for tokens on which it’s based.
The bug, according to Mudit Gupta, another blockchain security researcher, involves asset values that change too quickly for Cream to react.
A cunning plan
Gupta contends what happened was market manipulation, not oracle price manipulation.
“In price manipulation, you trick protocol into thinking something is worth more than it actually is,” he said via Twitter. “Here, that didn’t happen. The protocol was not tricked into an incorrect price. It always had correct pricing info.”
Gupta, published a blog post analyzing the attack, which he described as particularly sophisticated and well executed.
“The summary of the attack is that the attacker borrowed $1.5bn of Yearn’s yUSD vault shares against $2bn worth of collateral,” he explained. “They then doubled the value of the shares atomically by donating yUSD to the yearn vault. This meant that their debt on Cream became $3bn against a $2bn collateral. They can now default and take home a sweet $1bn profit. Cream only had $130m assets available for lending, so the attacker was limited to $130m profits.”
Cream says the situation is now under control.
“With the help of friends from @iearnfinance and others in the community, we were able to identify the vulnerabilities and patch them,” the firm said via Twitter. “In the meantime, we’ve paused our v1 lending markets on Ethereum and we’re in the process of putting together a post-mortem review.”
“We apologize to our users and community for this unfortunate incident and thank you for your support.” ®
Is your business effected by Cyber Crime?
If a cyber crime or cyber attack happens to you, you need to respond quickly. Cyber crime in its several formats such as online identity theft, financial fraud, stalking, bullying, hacking, e-mail fraud, email spoofing, invoice fraud, email scams, banking scam, CEO fraud. Cyber fraud can lead to major disruption and financial disasters. Digitpol can assist with all stages of cyber related incidents.
Contact Digitpol’s hotlines or respond to us online.
UK +44 20 8089 9944