How a Bot Gained and Lost Over $1 Million of ETH in One Night

0

[ad_1]

On Tuesday night, an Ethereum MEV bot gained 800 ETH through the use of clever arbitrage, only to lose all of it and more to a hacker an hour later.

Here’s how the situation played out on-chain:

The event began with a third-party trader mistakenly losing nearly $2 million to spreads on Uniswap v2 trade. While he initially traded in 1.8 million cUSDC, he only received 518 USDC in return. 
According to Flashbots Product Lead Robert Miller, this only created a “massive arbitrage opportunity” for another trader to swoop in and claim plenty of ETH.
“0xbaDc0dE [the MEV bot] dutifully backran the arb in the mempool (!) in a looong arb touching many protocols,” he explained. In the end, the bot netted 800 ETH. 
However, that ETH was entirely stolen just an hour later. Miller claims the bot didn’t properly protect the function it’s used to execute dydx flashloans, leaving it vulnerable.

“When you get a flashloan the protocol you’re borrowing from will call a standardized function on your contract,” he said. “0xbaDc0dE’s code unfortunately allowed for arbitrary execution.”

Using this vulnerability, an attacker approved all of the bot’s WETH for spending on the contract, then transferred it to his own address. That was 1,106 WETH in total, worth over $1.4 million at writing time. 
Numerous vanity addresses generated by Profanity have also been drained of roughly $1 million in ETH this month. 

SPECIAL OFFER (Sponsored)
Binance Free $100 (Exclusive): Use this link to register and receive $100 free and 10% off fees on Binance Futures first month (terms).

PrimeXBT Special Offer: Use this link to register & enter POTATO50 code to receive up to $7,000 on your deposits.

[ad_2]

Source link

Leave A Reply

Your email address will not be published.

bitcoin
Bitcoin (BTC) $ 59,188.00
ethereum
Ethereum (ETH) $ 1,655.84
tether
Tether (USDT) $ 0.999064
bnb
BNB (BNB) $ 560.37
usd-coin
USDC (USDC) $ 0.999433
xrp
XRP (XRP) $ 0.929036
solana
Solana (SOL) $ 70.88
figure-heloc
Figure Heloc (FIGR_HELOC) $ 1.06
staked-ether
Lido Staked Ether (STETH) $ 2,265.05
tron
TRON (TRX) $ 0.291363
hyperliquid
Hyperliquid (HYPE) $ 64.08
zcash
Zcash (ZEC) $ 772.69
dogecoin
Dogecoin (DOGE) $ 0.057858
leo-token
LEO Token (LEO) $ 9.31
monero
Monero (XMR) $ 390.50
whitebit
WhiteBIT Coin (WBT) $ 59.95
wrapped-steth
Wrapped stETH (WSTETH) $ 2,779.67
usds
USDS (USDS) $ 0.999933
chainlink
Chainlink (LINK) $ 8.86
wrapped-bitcoin
Wrapped Bitcoin (WBTC) $ 76,243.00
cardano
Cardano (ADA) $ 0.143478
binance-bridged-usdt-bnb-smart-chain
Binance Bridged USDT (BNB Smart Chain) (BSC-USD) $ 0.998762
ethena-usde
Ethena USDe (USDE) $ 0.999209
wrapped-beacon-eth
Wrapped Beacon ETH (WBETH) $ 2,466.93
dai
Dai (DAI) $ 0.999825
bitcoin-cash
Bitcoin Cash (BCH) $ 214.20
stellar
Stellar (XLM) $ 0.121081
wrapped-eeth
Wrapped eETH (WEETH) $ 2,465.31
near
NEAR Protocol (NEAR) $ 3.16
litecoin
Litecoin (LTC) $ 41.58
quantixai
Quantix Finance (QFI) $ 999.15
susds
sUSDS (SUSDS) $ 1.08
canton-network
Canton (CC) $ 0.075144
tether-gold
Tether Gold (XAUT) $ 3,631.67
uniswap
Uniswap (UNI) $ 4.78
coinbase-wrapped-btc
Coinbase Wrapped BTC (CBBTC) $ 76,366.00
avalanche-2
Avalanche (AVAX) $ 6.41
ripple-usd
Ripple USD (RLUSD) $ 0.999854
blockchain-usd
Blockchain USD (USDB) $ 0.932324
sui
Sui (SUI) $ 0.661358
weth
WETH (WETH) $ 2,268.37
the-open-network
Gram (prev. Toncoin) (GRAM) $ 0.927471
global-dollar
Global Dollar (USDG) $ 0.999929
usd1-wlfi
USD1 (USD1) $ 0.998692
usdt0
USDT0 (USDT0) $ 0.998824
ondo-us-dollar-yield
Ondo US Dollar Yield (USDY) $ 1.15
bitway
Bitway (BTW) $ 2.35
paypal-usd
PayPal USD (PYUSD) $ 0.999845
hashnote-usyc
Circle USYC (USYC) $ 1.15
hedera-hashgraph
Hedera (HBAR) $ 0.049981
Shares