My Authors
Read all threads
[1/8] Detailed analysis of another bZx/SNX attack (0x762881b07feb63c436dee38edd4ff1f7a74c33091e534af56c9f7d49b5ecac15). This one is more sophisticated than the previous one. The steps are as follows:
[2/8] Step 1. Flash borrow 7,500 ETH on bZx. This is ironic given that bZx will loose at the end
[3/8] Step 2. Exchange 540 ETH through Kyber to sUSD. This goes to Uniswap pushing sUSD value artificially high
[4/8] Step 3. In a series of 18 small 20 ETH transactions exchange another 360 ETH to sUSD. This time Kyber uses its own reserves, pushing sUSD value on them artificially high
[5/8] Step 4. Now get as much sUSD as possible from Synthetics depot. 6,000 ETH is sent there, but there is not enough sUSD in the depot so 943,837 sUSD is taken and 2,482 ETH is returned. Now Synthetics sUSD depot is depleted
[6/8] Step 5. Use all that sUSD (1,099,841) from depot and exchanges to take sUSD collaterlized loan on bZx. As sUSD price is artificially high, bZx is fooled to believe that sUSD collateral is very valuable and gives out 6,796 ETH loan
[7/8] Step 6. Pay back 7,500 ETH loan to bZx.
[8/8] The balance for the attacker is: 7500 - 900 - 6000 + 2482 + 6796 - 7500 = 2378 ETH
All these steps are one atomic transaction. You can see it all clearly thanks to @mierzwik awesome ethtx.info tool: ethtx.info/0x762881b07feb…
Missing some Tweet in this thread? You can try to force a refresh.

Enjoying this thread?

Keep Current with Bartek Kiepuszewski

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!