0xStalin (@0xStalin) header
0xStalin (@0xStalin) profile picture

Securing the financial systems for the future sovereign individuals @Cyfrin

Contract's Storage
Joined August 2022
Photo by 0xStalin (@0xStalin)Photo by 0xStalin (@0xStalin)Photo by 0xStalin (@0xStalin)Photo by 0xStalin (@0xStalin)Photo by 0xStalin (@0xStalin)Photo by 0xStalin (@0xStalin)Photo by 0xStalin (@0xStalin)Photo by 0xStalin (@0xStalin)Photo by 0xStalin (@0xStalin)Photo by 0xStalin (@0xStalin)
1 more year has gone by, marking 2 years since I ventured into the world of web3sec. This second year, I worked full time on this craft, and man, I can tell you it’s one of the best decisions I’ve made. Over the past year, these are the most important highlights. - Won 2 contests & placed multiple times in the top 5. - Collaborated with multiple audit firms. Lately, I’ve been working with the chads @bailsecurity, securing big names in this space. I'm very grateful to all the lead auditors who have given me the opportunity to collaborate with their teams. See y'all at the top 🫡
And with this, it marks my first year in the web3sec space. Definitely the first of many 🫡 I've finally made the jump to work full time, I can't wait to start getting even better results now that I'm 100% committed to this craft. See y'all at the top 🚀
24
5
153
12,595
What I got done during 2025: > Joined @cyfrin as a full-time LSR > Fully booked during the entire year in private audits > Worked on ~30 audits, including some of the leaders in our industry > Massively outperformed myself in terms of # of bugs found compared to last year, as well as the quality and rarity of those bugs. > Got to work with very talented SRs Overall, this was an extremely successful year. I surpassed all my expectations and became a more skilled SR. Here is to a new year full of new challenges and growth. 🍾
The year is ending, which is the best time to reflect on what was achieved during the year. > Quit 9-5, jumped all in on web3sec 🚀 > Worked with @cyfrin as a Contractor for 5 different audits 🤘 > Won my 1st public competition 🥇 > Earned what once I thought would be impossible > Built my home gym :) 🦾 There were tons of learnings, definitely looking for the next year. See y'all on the battlefield ;)
5
1
98
4,750
Absolute banger 🚀 This is definitely a gold mine for improving your skills in building and auditing UniV4 Hooks
The article you've all been waiting for, finally! 🦄 Uniswap V4 Hooks Security Deep Dive 🦄 ✨ Epic @DevDacian style heuristic-based deep dive ✨ 26 categories & 126 examples of real bugs in the wild ✨ Learnings from 7 @areta_io @UniswapFND subsidized @cyfrin Link 👇
1
20
1,977
This report packs a lot of value, especially around UniV4 hooks and some interesting cross-contract state modifications. I'd give it a follow to @giovannidisiena r8 now so you don't miss his next article about Univ4. An amazing job by @alexzoid. The FV test suite he built was super helpful during the audit and mitigation review.
🫡 some really great interesting findings in this behemoth of a report! Many will feature in the upcoming Uniswap V4 deep dive article. Becoming something of a specialist. DM for Hook audits. Excellent as always working with @0xStalin @alexzoid
2
26
3,171
I’m super happy to share that I’ve joined @cyfrin as a full-time SR 🎉 I’m forever grateful to everyone I have encountered along this journey 🙏 I look forward to this new chapter and continuing my mission to secure the financial systems of the future 🫡
63
6
391
14,368
This report should be a must-read if you are building/auditing a system that integrates with UniV4s LP positions. I'd be on the lookout for @vii_finance . It's potential is tremendous, they will unlock an extra benefit for UniV3/V4s positions. Looking forward to see what kind of strategies will be built powered by this protocol 🫡
Shout out @giovannidisiena @0xStalin for brilliant work on very tough audit of @vii_finance coded by elite bug bounty hunter @kankodu, finding: * 1 Critical - liquidation DoS * 2 High - theft of fees & value extraction * 2 Med, 3 Low & 2 Info @vii_finance is a very interesting protocol allowing UniV3/V4 LPs to be used as collateral in @eulerfinance vaults! Truly an honor for such a chad bounty hunter such as @kankodu to choose @cyfrin to audit his own code!
1
3
21
3,577
Making diamonds out of dust 101: 😀 - Oh, look at this comment, it doesn't match what the code actually does, but it looks like this is intended and the comment may be outdated, let's report it as an info, just in case. 10 contracts later and a ton of coffee: - Oh snap, that little discrepancy between the comment and what the code actually does ends up breaking up the entire system when this condition is triggered. Write down everything that makes your spidey senses tingle, you never know when that informational can be escalated to a critical 🫡
11
1,095
Massive congrats to the @RemoraUS team for putting in the effort to fix all the issues we reported to them. The post-state of the codebase improved by orders of magnitude, not to mention now they have a foundry test suite to help increase test coverage for all their future development. There is some good alpha on the report, definitely worth a read 🫡
Shout out @0xStalin & myself for amazing result on the finalized security audit of @RemoraUS finding: * 3 Critical * 3 High * 17 Medium * 13 Low * 9 Info, 12 Gas @RemoraUS is an innovative RWA protocol enabling real-estate developers to tokenize and sell fractional shares of physical properties; investors can earn a share of passive rental income receiving regular yield payouts without the headache & burden of traditional landlord responsibility! Our findings include a great mix of solidity "gotchas" & business logic edge-cases; as part of the audit we also developed our own targeted fuzz testing suite which the protocol team merged! Huge shout out to @RemoraUS for fixing virtually everything @cyfrin found - great example of a protocol who takes security seriously!
9
849
Always a pleasure collaborating with @DevDacian No foundry test suite? Not a prob, Dacian builds one from scratch for the rest of the team to fully focus on PoCing the exact scenarios we need to test. I'm very pleased with the results we got on this audit. Some really cool findings + foundry test suite for the protocol 🫡
Shout out @Stalin_eth & myself for amazing result on 6-day audit of interesting RWA protocol aiming to tokenize physical real-estate! Together we found: * 3 Crit * 3 High * 13 Med * 12 Low Plus we wrote a targeted fuzz testing suite which the client merged to their repo!
4
1
23
5,335
Thanks to @CodeHawks for featuring my story. Reading it brings tears to my eyes because it reminds me of the early days when I chose to transition to Web3 security. From day one, I knew this was the professional path I wanted to pursue (even though the way wasn't clear back then), and thank God, now I'm living the life I visualized two years ago. Accelerate 🚀
From uninspired DevOps engineer to CodeHawks Eagle. 🦅 @Stalin_eth walked away from a stable career to pursue a more ambitious mission: securing the future of DeFi. No shortcuts. No hype. Just relentless focus. 👇
7
4
54
5,921
Easy test about storage layout 😃 What's the difference in the storage layout between these 2 contracts? - If 𝑼𝒑𝒈𝒓𝒂𝒅𝒆 contract would be used to upgrade the 𝑶𝒓𝒊𝒈𝒊𝒏𝒂𝒍 contract, what would happen to the storage layout, and why? Share your answer without using any tool to inspect the actual storage layout.
4
2
18
2,297
Full answer: - EnumerableSets takes 2 slots on the StorageLayout as opposed to DynamicArrays taking only 1 slot as the base slot where it is stored the array's length. - Immutable Variables don't affect the storage layout. Immutable variables as well as constants are stored on the contract's bytecode. After the upgrade, the owner will no longer read from slot 2, instead, will read from slot 3, which is empty since owner's value is stored on slot 2. So, owner will be address(0). This is a preview of the actual storageLayout for the 2 contracts:
3
410
This simple trick helped us to identify a critical issue during our most recent engagement. When upgrading existing contracts, always ensure that the storage layout remains intact to prevent corruption.
There are two methods to get the storage layout of contracts: 1. Deployed Contracts (you don't necesarily have the contract's code) 2. You have the contract's code psst: It lists all the contract's storage variables, public and private. 1/3🧵 teapawt.net/Stalin_eth/status/1865…
3
1
23
4,673
congrats to @sin1st3r__ on this win. This camp disappears and then makes the best of the best comebacks. I guess its time for him to disappear again
And we’re back with another win. 5th overall contest win & my 4th consecutive solo contest win 🏆. I was able to find the overwhelming majority of H/M bugs including 3 solo highs & 1 solo med, take the gatherer + hunter bonuses and single handedly take 70% of the H/M pot allocated for the contest. This codebase has to be the most complex codebase I’ve audited to date honestly, and it lasted a month. I had to work every single day for the entire month and it turned out to be worthwhile in the end praise to Allah. Thanks @code4rena @recallnet for the opportunity.
10
880
SRs Max Pain is getting one of your findings rounded down to Medium and see other findings rounded up to Medium. There should be a change in the Medium Severity? Maybe having 3 tiers? - Upper Medium (3 points) - Solid Medium (2 points) - Lower Medium (1 point) There is a clear difference in the findings that are closer to high severity than those stretched from low to medium. What do you all think?
11
1
39
3,556
Time to share some alpha I've been asked quite a lot. 𝐇𝐨𝐰 𝐭𝐨 𝐭𝐚𝐜𝐤𝐥𝐞 𝐚𝐧 𝐚𝐮𝐝𝐢𝐭 𝐟𝐨𝐫 𝐚 𝐦𝐞𝐝𝐢𝐮𝐦-𝐥𝐚𝐫𝐠𝐞 𝐜𝐨𝐝𝐞𝐛𝐚𝐬𝐞. I logged my work on the last contest I participated in, it was a codebase of 5k sloc. I hope this helps somebody to improve your audit methodology. For the more experienced chads, what do you make different compared to my approach? medium.com/@stalin.macias.et…
4
15
1
127
5,779
Should there be an extra penalty for submissions with fake PoCs? For example, a PoC is supposed to do X,Y,Z, but something along the way, a crucial step is skipped, or ignored, making it possible to show what the reporter wants the PoC to show. For example, suppose there is a PoC to demonstrate X problem, and the PoC is supposed to execute all the calls to set up everything, but after a close inspection, the PoC somehow makes a call to the 0 address when it should make a call to an Oracle to update the prices. So, as a result, prices are not even set, and what the reporter wants to show is indeed shown on the PoC, but all of it is because the oracles have no price set. Does it make sense? The point is, should this action be more penalized than submitting invalid reports? Idk, maybe losing twice as many points as if the submissions would had been invalid?
34%Absolutely, double penalt
37%Same as invalid
29%You tripping men
76 votes • Final results
4
1
15
2,380
Auditing, it breaks you or it makes you, but you definitely escape reality for a while. The code becomes your reality. Man, is amazing how you lose sense of time and space while auditing 💯
Without mentioning drugs or alcohol, what is the best way to escape reality?
1
2
59
2,574
It's official: I finally won my 1st contest on the platform, which saw me grow from the beginning. @code4rena Has a special place in my ❤️. I spent most of my 1st year as a security researcher grinding contest after contest in it. I'm happy I finally can say I've won a contest at C4 Let the grind continue 🚀
36
8
282
8,532
Casually found a high thanks to @cantinaxyz policy of enforcing PoCs. I originally was thinking of submitting the issue as low because it was a borderline medium-low severity, but, after spending some time coding the PoC I realized the impact was way higher than what I had realized Coded PoCs good 🤘
6
1
57
3,417