@xb0g0
bogo
5 months
💬"Hmm, those guys are using .codehash to check if a contract was already deployed. Did they research the opcode? Why are they assuming it is always 0?" - See how developer assumptions are questioned from the very beginning 💬"Ok, lets research the EIP for this opcode and check…
Tweet media one
Tweet media two
3
1
12

Replies

@xb0g0
bogo
5 months
I analyzed the report of a contest I participated in on @code4rena . One specific finding by @milotruck taught me a LOT. It was so simple, yet only 3 out of 125 auditors found it. WHY ? - They asked the right questions!! I'm doing a breakdown of the mental model that empowered…
10
24
177
@xb0g0
bogo
5 months
A short summary of the exploit: 📌 It's a p2p lending protocol, that has the functionality to sanction lenders/borrowers 📌 When sanctioned an escrow vault is deployed for that account to hold it's funds. If sanction is lifted funds get returned to the account 📌…
Tweet media one
2
0
23
@xb0g0
bogo
5 months
Check the full finding (3 min read time). It's short & you don't need to know the codebase in order to understand it :
1
1
12
@xb0g0
bogo
5 months
My main goal here is to explain why I missed the bug and analyze the proper approach of those awesome auditors. đź“ŚMake sure you've red the finding first
1
0
5
@xb0g0
bogo
5 months
This is what I was thinking when going through the above code logic: 💬"Hmm, this contract uses .codehash to check if an escrow vault was already deployed for this account. Wait what is .codehash ?" Then I googled it and red the first definition I stumbled upon: - & I though:…
Tweet media one
1
0
9
@xb0g0
bogo
5 months
So ignorant and naive of me! I just considered everything is fine and did not doubt it for a second!
1
0
3
@xb0g0
bogo
5 months
Now let's see what the rockstar auditors did
1
0
3
@xb0g0
bogo
5 months
As you can see, there is nothing complex about the exploit, it's dead simple actually. Yet ONLY 2% found it. Let that sink in - 2% PERCENT! WHY? Because they asked the right questions and questioned everything, all the time!
1
0
8
@xb0g0
bogo
5 months
What's the morale of the story? âś… ALWAYS DOUBT EVERY ASSUMPTION made in the code you audit âś…KEEP ASKING QUESTIONS, until you find one that sparks your creativity âś…BE CRITICAL and take nothing for granted, research it
3
0
24
@r0bre
r0bre
5 months
@xb0g0 recommend reading code instead of eips. e.g. look up and see in what cases 0 is returned
1
1
2
@xb0g0
bogo
5 months
@r0bre Good recommendation! Thanks!
0
0
2
@InfectedCrypto
InfectedCrypto
5 months
@xb0g0 Man that was really interesting! Thanks for this breakdown! No wonder you will kill it soon Was thinking of sharing my post contest review too
1
0
4
@xb0g0
bogo
5 months
@InfectedCrypto I appreciate the motivating words🙏 Most of all I’m grateful for the opportunity to provide value for all fellow auditors🛡
0
0
2