🚨 DoinGud (@DoinGudHQ) has just been hacked for ~$35K USDC 🚨
I had discovered the vulnerable contract around a week before the hack.
🧵Here's what happened: (1/15)
7
5
101
8,486
This meant anyone could flash loan USDC equal to the contract's balance, place a bid on themselves, and accept it twice - draining the contract.
DoinGud Diamond Contract: polygonscan.com/address/0xe3…
DoinGud Vulnerable Facet: polygonscan.com/address/0x12…
🧵(4/15)
1
6
952
However, being familiar with the Dark Forest (see paradigm.xyz/writing/ethereu… ), I knew it wasn't as simple as straight up sending the exploit transaction on mainnet.
🧵(8/15)
1
1
6
768
Although Polygon has a faster block time of ~2 seconds, thus any generalized MEV bot would have a much shorter time to reverse and send their own transaction, I didn't want to take the risk of being frontrun, or having a failed tx or chain reorg exposing the bug.
🧵(9/15)
1
4
717
I found that Polygon offers a private mempool to prevent MEV. However, access had to be requested through their forms. I submitted the form around 4-5 days ago, but as of now, I haven't yet received a response.
Polygon Private mempool post: polygon.technology/blog/poly…
🧵(10/15)
1
5
699
Exploit transaction: polygonscan.com/tx/0x56818a6…
Attacker EOA: polygonscan.com/address/0xb8…
Attacker contract: polygonscan.com/address/0xe5…
🧵(12/15)
1
5
688
In hindsight, I definitely should've contacted @SEAL_911 / @_SEAL_Org , who specialize in handling cases like these.
While $35K is not massive compared to other hacks, it's still upsetting that I took so long and could've prevented this or hacked it myself.
🧵(13/15)
1
8
601






