samuraii77 Profile
samuraii77

@samuraiii77

Followers
641
Following
84
Media
9
Statuses
84

Blockchain Security Researcher | Multiple Top 1 / Top 3 / Top 5 Finishes 🏅 Top Ranked Watson @sherlockdefi 🕵️ Top 30 last 90-days @code4rena

Web3
Joined March 2024
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
Pinned Tweet
@samuraiii77
samuraii77
3 months
As promised in my last tweet 😤
Tweet media one
8
0
85
@samuraiii77
samuraii77
29 days
Just saw I have broken the $20,000 mark from contests 😮 It's nothing crazy but knowing that just 4 months ago I was just starting out with my first contests and had 0 earnings to 2-3 months ago when I had just around 3,000$ in earnings is pretty nice. Next mark - $50,000 🫡
Tweet media one
26
8
317
@samuraiii77
samuraii77
2 months
Find the bug in the code snippet below 🕵️
Tweet media one
30
2
120
@samuraiii77
samuraii77
1 month
#11 in the @SizeCredit contest I found 9 H/M bugs, more than everyone but 1-2 people but I guess the more unique ones ate up a lot of the reward pot and finished a lot further behind than what I expected. Lesson for next time - find even more issues and don't let that happen 🫡
Tweet media one
11
6
109
@samuraiii77
samuraii77
2 months
#2 on the Thorchain in C4. Not extremely happy with the result as I forgot to submit the only M/H left not found by me but that's a lesson learned 😅
Tweet media one
7
2
85
@samuraiii77
samuraii77
5 months
My first 4-digit payout in my second (arguably first) contest ever! Definitely pretty happy with those results but of course, there is still a lot of room to improve, had a great time auditing the @dittoproj in @code4rena !
Tweet media one
9
0
62
@samuraiii77
samuraii77
4 months
Shadow auditing is one of the best ways to improve, especially as a beginner. The contest in this thread is a great option to do a shadow audit on! (Spoiler Alert: It is not Beedle) 🧵
7
5
66
@samuraiii77
samuraii77
2 months
Around a day has passed so it is time to reveal what the issue was 🧐 Firstly, there were some lower impact issues such as: - Not validating msg.value - Redeploying the Referrer contract everytime - Users can set themselves as the referrer Now, about the high impact issue 🧵
@samuraiii77
samuraii77
2 months
Find the bug in the code snippet below 🕵️
Tweet media one
30
2
120
2
3
63
@samuraiii77
samuraii77
1 month
Doing team audits on C4 after the introduction of the Hunter and Gatherer bonuses might be the new meta 🧐 For example, in a recent contest I did, if I had teamed up with someone that had just any 2 findings which I didn't find, we would have gotten $16,000 as a gatherer bonus.
1
1
37
@samuraiii77
samuraii77
4 months
Two results from recent contests. Definitely not happy nor satisfied with these results but trust me, it won't be long before I get the #1 spot in a contest, I promise! 😉
Tweet media one
Tweet media two
5
0
33
@samuraiii77
samuraii77
5 months
Looks good, @code4rena , definitely first of many!
Tweet media one
2
1
30
@samuraiii77
samuraii77
3 months
Best strategy game ever, agree or not? 🤔
Tweet media one
2
0
16
@samuraiii77
samuraii77
2 months
I found a very similar issue in a recent audit I conducted so such an issue can definitely appear in a protocol you are auditing, definitely keep that in mind in your next audit and do not miss it😉 Congrats to everyone who managed to find it!
2
0
13
@samuraiii77
samuraii77
29 days
@AffanImran15 Learn Solidity and start contests, that's it
0
0
12
@samuraiii77
samuraii77
2 months
Well, actually not. The issue here is that even if referrer is address(0), the address of the deployed Referrer contract will not be, thus the check will always pass making it so every deposit with no referrer dilutes the rewards for actual referrers.
3
0
8
@samuraiii77
samuraii77
2 months
TIL that the Remove Comments VS Code extension doesn't just temporarily toggle off the comments but removes them completely 😵‍💫 RIP audit tags 🪦
3
0
8
@samuraiii77
samuraii77
3 months
@sherlockdefi Assumes the symbol will be a string but in reality, it could also be bytes32
1
0
6
@samuraiii77
samuraii77
2 months
Whenever a user deposits, he can set a referrer. That deploys a Referrer contract through which the referrer can interact and get some rewards. If the user has not set a referrer, we do not update the referrer units due to the address(0) check... or is that actually the case?🤔
1
0
6
@samuraiii77
samuraii77
2 months
@0xriptide please stop leaking my wallets 🫤
0
0
6
@samuraiii77
samuraii77
4 months
@zdravkohristov0 @ZivoeFinance @sherlockdefi @BiasedMerc Even worse when you saw it but didn't bother to think about it as it's just wrong event emission 😵‍💫
0
0
5
@samuraiii77
samuraii77
27 days
@woshilalala @sherlockdefi If a protocol wants to get the same quality (or even higher) as most T1 firms for a fraction of the price, this is your guy 👀
1
0
5
@samuraiii77
samuraii77
1 month
@14si20 @zzebra83 For me it's the opposite. If I find one, I know there is more but if I don't find anything for a while, I get bored
1
0
4
@samuraiii77
samuraii77
1 month
@woshilalala @SizeCredit @code4rena Congrats my man, thought I beat you this time but turns out not 😂🫡
1
0
4
@samuraiii77
samuraii77
29 days
@scripter_silver C4 / Sherlock
1
0
3
@samuraiii77
samuraii77
29 days
@AmrSec_ I don't have any tech background
1
0
3
@samuraiii77
samuraii77
2 months
@vancelotx Yes, that's an unintended issue, you can assume that the referrer contract only gets deployed once. This is a bug but doesn't really have huge impact except people paying more gas
0
0
3
@samuraiii77
samuraii77
2 months
Also assume that there is a check disallowing the depositor from setting himself as the referrer, that is not the bug I intended to put :D
0
0
2
@samuraiii77
samuraii77
4 months
Give it 2 days or more in case you are just starting out and try to find as many issues as possible. Then, read the issues found and try to understand them to the best of your abilities. Good luck!
0
0
3
@samuraiii77
samuraii77
2 months
For those saying that the referrer contract gets deployed every time, that is an unintended issue but it also doesn't really have much impact besides users paying more gas. You can assume that there is a function called getOrDeployReferrer() there instead. The bug is elsewhere
0
0
2
@samuraiii77
samuraii77
21 days
@0xJuancito @milotruck And it all depends whether they are trying to validate or invalidate the issue 😂 trying to invalidate it makes the price of the attack a trillion dollars more expensive
0
0
2
@samuraiii77
samuraii77
4 months
1
0
2
@samuraiii77
samuraii77
4 months
@arabadzhiev_ That's interesting, they refused to change the rankings and rewards when the judge found out he accidentally invalidated one of my valid issues in one of the contests.
1
0
2
@samuraiii77
samuraii77
4 months
Why is it a great option? - It's short (≈500 SLOC) - It's not hard to understand - It has a decent amount of issues, some of them very simple - It involves a lot of common DeFi concepts
1
0
2
@samuraiii77
samuraii77
2 months
@yatharthpnwr We are deploying the referrer, we are not sending any ETH to it so the fallback function wouldn't be called. Also assume that the Referrer contract is 100% trusted
1
0
2
@samuraiii77
samuraii77
4 months
@sharonplima Beedle is good, it's just that it's the only one being recommended 😆
0
0
2
@samuraiii77
samuraii77
2 months
@qwerty6875987 Will post tomorrow, stay tuned
2
0
2
@samuraiii77
samuraii77
5 months
0
0
1
@samuraiii77
samuraii77
2 months
@MartinMarchev A guy from the Immunefi team has been regularly trying to get a reply from the team, not sure if that counts as mediation or if it's something else. The team replies once every 1-2 weeks and then dips again 😅
1
0
1
@samuraiii77
samuraii77
3 months
@zdravkohristov0 Best way to relax after a long day 😄
0
0
1
@samuraiii77
samuraii77
2 months
@DAgantem1624 That's not the bug, you can imagine that the withdraw function for the referrer gets his money like this: uint256 moneyForReferrer = totalMoneyForReferrers * referrerUnits / totalReferrerUnits
0
0
1
@samuraiii77
samuraii77
5 months
0
0
1
@samuraiii77
samuraii77
3 months
0
0
1
@samuraiii77
samuraii77
5 months
@zarkk01 Not sure what the bug I found is yet haha but I think I have an idea what it was, it was not hard to spot
1
0
1
@samuraiii77
samuraii77
2 months
@MartinMarchev Me 1 month and a half after submitting an issue and still waiting for a decision 💀
1
0
1
@samuraiii77
samuraii77
29 days
@00iamma00 Learn Solidity and start contests
1
1
1
@samuraiii77
samuraii77
28 days
@InfectedCrypto Thanks man, appreciate that 🤜🤛
0
0
1
@samuraiii77
samuraii77
29 days
@4gontuk Thanks 🙏
0
0
1
@samuraiii77
samuraii77
29 days
@cholakovv 🤜🤛
0
0
1
@samuraiii77
samuraii77
5 months
@ilchovski98 @dittoproj @code4rena Your results are great as well ;)
0
0
1
@samuraiii77
samuraii77
16 days
@KoolexC I don't think this example is quite correct, there is no benefit to not investing here while the dilemma is different
0
0
1
@samuraiii77
samuraii77
2 months
@CharlesWangP Are you using internet explorer? 🤔
1
0
1
@samuraiii77
samuraii77
2 months
@Amxx Its not that deep man, check my other reply regarding that
0
0
1
@samuraiii77
samuraii77
29 days
@0xrochimaru Thank you!
0
0
1
@samuraiii77
samuraii77
2 months
@jesjupyter That's true, I made the code super simple so I missed some details but assume that there is a function used there instead that only deploys a contract if there isnt one already deployed for the referrer
0
0
1
@samuraiii77
samuraii77
1 month
@auditsbydanny Third time's the charm
0
0
1
@samuraiii77
samuraii77
29 days
0
0
1
@samuraiii77
samuraii77
11 days
@nmirchev8 @EgisSec Where is the other half? 🤔
1
0
2
@samuraiii77
samuraii77
29 days
0
0
1
@samuraiii77
samuraii77
2 months
@stanchev_33 The referrer contract will take care of that, for example by having an onlyOwner modifier and the owner being set as the referrer during the constructor. You are in the right direction though
1
0
1