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) $ 79,591.00
ethereum
Ethereum (ETH) $ 2,516.30
tether
Tether (USDT) $ 0.999752
bnb
BNB (BNB) $ 757.06
xrp
XRP (XRP) $ 1.44
usd-coin
USDC (USDC) $ 0.999919
solana
Solana (SOL) $ 104.67
tron
TRON (TRX) $ 0.339208
zcash
Zcash (ZEC) $ 1,246.87
staked-ether
Lido Staked Ether (STETH) $ 2,265.05
figure-heloc
Figure Heloc (FIGR_HELOC) $ 1.04
hyperliquid
Hyperliquid (HYPE) $ 86.62
dogecoin
Dogecoin (DOGE) $ 0.091200
rain
Rain (RAIN) $ 0.016099
usds
USDS (USDS) $ 0.999913
whitebit
WhiteBIT Coin (WBT) $ 82.38
monero
Monero (XMR) $ 499.72
wrapped-steth
Wrapped stETH (WSTETH) $ 2,779.67
chainlink
Chainlink (LINK) $ 12.48
leo-token
LEO Token (LEO) $ 9.19
wrapped-bitcoin
Wrapped Bitcoin (WBTC) $ 76,243.00
cardano
Cardano (ADA) $ 0.221258
binance-bridged-usdt-bnb-smart-chain
Binance Bridged USDT (BNB Smart Chain) (BSC-USD) $ 0.998762
stellar
Stellar (XLM) $ 0.189826
wrapped-beacon-eth
Wrapped Beacon ETH (WBETH) $ 2,466.93
bitcoin-cash
Bitcoin Cash (BCH) $ 260.54
dai
Dai (DAI) $ 1.00
ethena-usde
Ethena USDe (USDE) $ 0.999721
wrapped-eeth
Wrapped eETH (WEETH) $ 2,465.31
usd1-wlfi
USD1 (USD1) $ 0.999513
canton-network
Canton (CC) $ 0.107928
susds
sUSDS (SUSDS) $ 1.08
uniswap
Uniswap (UNI) $ 6.83
litecoin
Litecoin (LTC) $ 54.67
the-open-network
Gram (prev. Toncoin) (GRAM) $ 1.41
coinbase-wrapped-btc
Coinbase Wrapped BTC (CBBTC) $ 76,366.00
hedera-hashgraph
Hedera (HBAR) $ 0.079802
avalanche-2
Avalanche (AVAX) $ 8.02
sui
Sui (SUI) $ 0.825050
weth
WETH (WETH) $ 2,268.37
global-dollar
Global Dollar (USDG) $ 1.00
shiba-inu
Shiba Inu (SHIB) $ 0.000005
near
NEAR Protocol (NEAR) $ 2.47
usdt0
USDT0 (USDT0) $ 0.998824
crypto-com-chain
Cronos (CRO) $ 0.060664
paypal-usd
PayPal USD (PYUSD) $ 0.999953
blackrock-usd-institutional-digital-liquidity-fund
BlackRock USD Institutional Digital Liquidity Fund (BUIDL) $ 1.00
memecore
MemeCore (M) $ 1.20
tether-gold
Tether Gold (XAUT) $ 4,398.13
hashnote-usyc
Circle USYC (USYC) $ 1.14
Shares