TheNaubit (@thenaubit) header
TheNaubit (@thenaubit) profile picture

Web3 Security Researcher. I also like to code in my free time.

Joined February 2016
Photo by TheNaubit (@thenaubit)Photo by TheNaubit (@thenaubit)Photo by TheNaubit (@thenaubit)Photo by TheNaubit (@thenaubit)Photo by TheNaubit (@thenaubit)Photo by TheNaubit (@thenaubit)Photo by TheNaubit (@thenaubit)Photo by TheNaubit (@thenaubit)
I have been away for several weeks not doing contests nor tweeting, I was working with a company in some audit of a really cool project merging somehow AI and crypto, gonna be cool once released! Now back to audits and contests! 🫡
2
213
I have been these days super busy with the private audit I was finishing, reviewing the updates for thenfoxes the project implemented. Now everything is done, right in the perfect time to start with the zksync audit! (Although I have a finding for @immunefi that I want to finish the POC asap)
1
1
9
1,740
I was going to submit a finding to a project in Immunefi and I just found it was removed 🥲
2
3
394
Lately in almost every contest platform you can find DeFi projects intending to deploy in Arbitrum. That is an important detail because there are some technical differences that you might find useful when trying to find an issue! When reading about that I found this article from @officer_secret and I think it is one of the best articles out there about the topic. 100% worth reading! 👉 officercia.mirror.xyz/d798TV…
10
765
Today I was reading some findings on @SoloditOfficial and I found this unique finding (well, 2 people found it, 0x52 and Kow). And probably just by reading that you might think it was a really complex finding that only highly experienced auditors could find, but the reality is way different. Let me introduce you to... The H-3 finding in one of the Blueberry contests in @sherlockdefi ! Obviously, it looks complex without studying the full code but let's dive into the report: "CurveTricryptoOracle#getPrice incorrectly divides the LP price by the price of ETH which causes it to return the price of LP in terms of ETH instead of USD" So basically, lpPrice is a function that takes several params and return the price of the LP in USD. But then (and here is the issue), the result is divided by the ethPrice, resulting in a returning value in ETH instead of USD. Later on, in other places of the code, they expect this return to be in USD so this leads to LPs that are massively undervalued causing positions that are actually heavily over-collateralized to be liquidated. So yeah, a really dangerous finding. But as you can see it was not about things like: - Wrong Solidity code - Complicated math errors It was something simpler (but easy to miss). That leads me to a few things to learn from here: 1. Check always that the return of the functions is what the code is expecting. But not only its type or decimals but also its internal logic. In this case, the returned price is in USD! 2. Understand what you read. You don´t need only to understand what is the Solidity code doing but also why are they doing that and what should we expect from there. Obviously, these things sound logical and easy but in the contests, they are easy to miss (as you saw here, only 2 people found it). That is where the experience matters. And to gain it, you just need to keep practicing. So see you in the arena (or the contests in this case)! 🫡 P.S: Here is the report: github.com/sherlock-audit/20…
2
6
37
4,042
So, inspired by my friend (and sometimes auditing partner @14si20 ) I have decided to keep myself publicly accountable for my web3 progress. It might also help motivate others, something really needed in this space if we want to make it safer enough to onboard millions of people! What did I do this week? I was doing a private audit for an upcoming NFT protocol which I got offered by someone in my DMs. It was my second private audit ever and it was a really cool experience. I found 2H and 4M and several lows and gas optimizations. I delivered the full report this past Thursday and later on next week I will check the fixes they are implementing to the protocol. You know, as @pashov says, you must make sure to deliver the best customer experience, not only a good audit! Earnings Since this is the first public report, instead of trying to find all the previous earnings I will start the count from zero, so it is easier to track. Since I already got paid for the past week's audit we are now at: Week: $3200 Total: $3200 Plans for the next week This past Friday I started the MaiaDAO C4 contest and even if it is a big contest I want to try and find something cool there. Not sure if I will be able to spend a lot of hours on it because next week I might be able to book another private audit (currently in talks) plus the other protocol review but let's see. Side notes The past weekend I submitted a critical to Immunefi and after some time the protocol rejected it (saying it was intended, which made no sense). So I asked for mediation from the Immunefi team and... they are on it. So hopefully in next week's report, we will have some news! Finally, I would like to share some ideas with new auditors (or security researchers). - Try to not spend time just studying. Study is good but you also need action to learn! Go for contests as soon as possible! - Don't be sad when compared to others. Obviously everyone wants to earn a lot but focus on yourself and the rest will come - And finally, Solodit is really good for learning. Don't do pattern matching in audits, focus on fully understanding every line you audit! See you in the next week's report! 🫡 P.S.: I will share the report of the private audit once the protocol allows me, probably after they fix the issues and launch!
2
8
901
I am just in the middle of reading the book but if you want a nice reading for this weekend, make sure to check the new @RareSkills_io book about Gas Optimization! teapaw.org/RareSkills_io/status/1…
The RareSkills Book of Gas Optimization has been published. With over > 90 pointers and 11k+ words, not including source code, you are almost certainly going to see a trick or two you haven't seen before. We assume you know the EVM to a certain degree, this is not a beginner tutorial. As you can see from the photo, the post is so long we ran into size issues with our hosting platform! So we will publish the next section shortly and link to it. This was a team effort. Authors: @Jesserc_ @AmadiMichaels @supernovahs444. Stay tuned, we are ramping up the scale of content production and building systems to publish quality articles and books even faster. Soon enough, RareSkills will be your one-stop shop for all the advanced tutorials you could ever wish for. We have big plans with more announcements to come! Enjoy! rareskills.io/post/gas-optim…
3
327
I won't be doing intro videos to web3, there are already really good channels for that, like @PatrickAlphaC and @TheBlockChainer (check their YouTube channels!)
1
2
80
My plan is to focus more into advanced topics and explain them in a fun and entertaining way; mixing them with some hands off material
1
65
For all my fellow auditors and protocols, this is something new and exciting, fingers crossed to get an invitation and share more insights about that! 🫡
We have some exciting news... Cantina Beta is Live! Before you dive in - let's talk about what all of this means for protocols and researchers today 🪐 ( Read to the end for researcher access codes 👀 ) 🧵👇
1
220
We have some exciting news... Cantina Beta is Live! Before you dive in - let's talk about what all of this means for protocols and researchers today 🪐 ( Read to the end for researcher access codes 👀 ) 🧵👇
7
92
87
143
69,014
A reminder that one of the most detailed articles about proxies security was made by @yAcademyDAO and it would be an amazing use of your weekend time! proxies.yacademy.dev/pages/s…
136
The Findings Summary table from our latest public Smart Contract Security Review Report for @phi_xyz Found: • Critical: 1 • Medium: 3 • Low: 2 • Informational: 15 LINK: github.com/shieldify-securit… I’d appreciate a retweet, spread the knowledge for a safer Web3 Space
2
8
1
37
3,828
TheNaubit retweeted
One of the best ways to improve in web3 sec is by doing audits. The other is by reading past reports. And in my opinion, one of the best starting resources is this free book with more than 5000 unique findings to learn from! 🫡 theauditorbook.com/
1
5
402
Do you know any videos/articles/repos/whatever diving deep in the DeFi math of the contracts? I feel like that is a key thing when auditing and I need more content to study 👀
1
231