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) $ 58,694.00
ethereum
Ethereum (ETH) $ 1,575.62
tether
Tether (USDT) $ 0.998460
bnb
BNB (BNB) $ 547.21
usd-coin
USDC (USDC) $ 0.999594
xrp
XRP (XRP) $ 1.04
solana
Solana (SOL) $ 73.89
tron
TRON (TRX) $ 0.314467
figure-heloc
Figure Heloc (FIGR_HELOC) $ 1.01
staked-ether
Lido Staked Ether (STETH) $ 2,265.05
hyperliquid
Hyperliquid (HYPE) $ 64.46
dogecoin
Dogecoin (DOGE) $ 0.071804
rain
Rain (RAIN) $ 0.015757
usds
USDS (USDS) $ 0.999381
leo-token
LEO Token (LEO) $ 9.25
stellar
Stellar (XLM) $ 0.199230
wrapped-steth
Wrapped stETH (WSTETH) $ 2,779.67
zcash
Zcash (ZEC) $ 396.17
whitebit
WhiteBIT Coin (WBT) $ 54.04
wrapped-bitcoin
Wrapped Bitcoin (WBTC) $ 76,243.00
monero
Monero (XMR) $ 306.19
binance-bridged-usdt-bnb-smart-chain
Binance Bridged USDT (BNB Smart Chain) (BSC-USD) $ 0.998762
canton-network
Canton (CC) $ 0.140813
wrapped-beacon-eth
Wrapped Beacon ETH (WBETH) $ 2,466.93
cardano
Cardano (ADA) $ 0.144767
chainlink
Chainlink (LINK) $ 7.20
usd1-wlfi
USD1 (USD1) $ 0.999184
wrapped-eeth
Wrapped eETH (WEETH) $ 2,465.31
dai
Dai (DAI) $ 0.999644
ethena-usde
Ethena USDe (USDE) $ 0.997987
susds
sUSDS (SUSDS) $ 1.08
lab
LAB (LAB) $ 13.35
the-open-network
Gram (prev. Toncoin) (GRAM) $ 1.52
bitcoin-cash
Bitcoin Cash (BCH) $ 200.69
coinbase-wrapped-btc
Coinbase Wrapped BTC (CBBTC) $ 76,366.00
litecoin
Litecoin (LTC) $ 42.09
hashnote-usyc
Circle USYC (USYC) $ 1.13
hedera-hashgraph
Hedera (HBAR) $ 0.069724
weth
WETH (WETH) $ 2,268.37
global-dollar
Global Dollar (USDG) $ 0.999549
avalanche-2
Avalanche (AVAX) $ 6.56
sui
Sui (SUI) $ 0.688065
usdt0
USDT0 (USDT0) $ 0.998824
paypal-usd
PayPal USD (PYUSD) $ 0.999633
shiba-inu
Shiba Inu (SHIB) $ 0.000004
crypto-com-chain
Cronos (CRO) $ 0.053708
tether-gold
Tether Gold (XAUT) $ 3,969.48
near
NEAR Protocol (NEAR) $ 1.77
blackrock-usd-institutional-digital-liquidity-fund
BlackRock USD Institutional Digital Liquidity Fund (BUIDL) $ 1.00
ondo-us-dollar-yield
Ondo US Dollar Yield (USDY) $ 1.14
Shares