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) $ 74,827.00
ethereum
Ethereum (ETH) $ 2,121.21
tether
Tether (USDT) $ 0.999055
bnb
BNB (BNB) $ 689.27
usd-coin
USDC (USDC) $ 0.999490
xrp
XRP (XRP) $ 1.09
solana
Solana (SOL) $ 86.12
tron
TRON (TRX) $ 0.317184
staked-ether
Lido Staked Ether (STETH) $ 2,265.05
figure-heloc
Figure Heloc (FIGR_HELOC) $ 1.04
zcash
Zcash (ZEC) $ 1,162.54
hyperliquid
Hyperliquid (HYPE) $ 74.22
dogecoin
Dogecoin (DOGE) $ 0.069810
monero
Monero (XMR) $ 567.73
usds
USDS (USDS) $ 1.00
leo-token
LEO Token (LEO) $ 9.30
wrapped-steth
Wrapped stETH (WSTETH) $ 2,779.67
whitebit
WhiteBIT Coin (WBT) $ 72.11
chainlink
Chainlink (LINK) $ 10.59
wrapped-bitcoin
Wrapped Bitcoin (WBTC) $ 76,243.00
cardano
Cardano (ADA) $ 0.177329
binance-bridged-usdt-bnb-smart-chain
Binance Bridged USDT (BNB Smart Chain) (BSC-USD) $ 0.998762
stellar
Stellar (XLM) $ 0.146769
wrapped-beacon-eth
Wrapped Beacon ETH (WBETH) $ 2,466.93
ethena-usde
Ethena USDe (USDE) $ 0.998966
bitcoin-cash
Bitcoin Cash (BCH) $ 237.94
near
NEAR Protocol (NEAR) $ 3.60
wrapped-eeth
Wrapped eETH (WEETH) $ 2,465.31
dai
Dai (DAI) $ 0.999960
uniswap
Uniswap (UNI) $ 6.94
susds
sUSDS (SUSDS) $ 1.08
litecoin
Litecoin (LTC) $ 51.27
avalanche-2
Avalanche (AVAX) $ 8.60
canton-network
Canton (CC) $ 0.091178
coinbase-wrapped-btc
Coinbase Wrapped BTC (CBBTC) $ 76,366.00
sui
Sui (SUI) $ 0.840077
usd1-wlfi
USD1 (USD1) $ 0.997942
blockchain-usd
Blockchain USD (USDB) $ 0.932324
tether-gold
Tether Gold (XAUT) $ 4,093.60
weth
WETH (WETH) $ 2,268.37
rain
Rain (RAIN) $ 0.004511
the-open-network
Gram (prev. Toncoin) (GRAM) $ 1.09
hedera-hashgraph
Hedera (HBAR) $ 0.066785
usdt0
USDT0 (USDT0) $ 0.998824
quant-network
Quant (QNT) $ 193.68
paypal-usd
PayPal USD (PYUSD) $ 1.00
global-dollar
Global Dollar (USDG) $ 1.00
ripple-usd
Ripple USD (RLUSD) $ 1.00
shiba-inu
Shiba Inu (SHIB) $ 0.000004
bittensor
Bittensor (TAO) $ 221.36
Shares