Sentryx (@sentryxsec) header
Sentryx (@sentryxsec) profile picture

We can make sure your smart contracts are safe and secure for deployment. All you need to do is reach out and let us know.

Portfolio ➛
Joined April 2024
Photo by Sentryx (@sentryxsec)Photo by Sentryx (@sentryxsec)Photo by Sentryx (@sentryxsec)Photo by Sentryx (@sentryxsec)
Sentryx retweeted
Yesterday @aviggiano hosted a live CTF with a $5k bounty up for grabs. The CTF was a Safe wallet with a custom Guard which had only certain targets and actions whitelisted. I got curious about the solutions so I summarized them in an article. medium.com/@flackoon/your-sa…
7
8
2
54
4,344
Sentryx retweeted
Managed to put our team in the top 5 spot this time🫡 My solo finding has an interesting story around it that I'll share very soon, stay tuned in!
6
3
52
3,079
Sentryx retweeted
Is the pot going to be conditional? – Probably, yeah🤷‍♂️ Do I support conditional pots? – Not really a fan 😒 Am I going to try breaking another Cosmos SDK application? – Abso-fckn-lutely🤠
The $1,000,000 @StoryProtocol x Cantina code review competition begins Dec 13th 🪐 Battle-test the World’s IP Blockchain and secure the future of AI x IP ⬇️
1
1
13
1,463
Sentryx retweeted
First competition on @cantinaxyz as part of team @sentryxsec. The codebase was extremely vague to reason about from my POV and it was first of its kind that we've encountered so I didn't expect much out of all that. Still, we managed to find 1 / 4 mediums so we'll take that🏆
3
1
26
1,056
Sentryx retweeted
While digging through an article about gas on Ethereum and more specifically the 63/64 gas rule I had a hard time making sense of this safety check in the code that the article suggests. If you had a hard time understanding the inequality like me this thread is for you🧶
1
2
2
33
6,702
Sentryx retweeted
Introducing @unichain — a new L2 designed for DeFi ✨ Fast blocks (250ms), cross-chain interoperability, and a decentralized validator network Built to be the home for liquidity across chains
1,360
1,462
1,421
6,479
3,718,388
Replying to @HalbornSecurity
That's a good summary👏 One of our security researchers wrote a short explainer on EIP-3607 a month ago, which can shed more light on the "Contract Frontrunning" security implication when CREATE2 is used for deployment. xitter.cf/flack00n/status/183145…
Have you heard of EIP-3607 👀? It suggests introducing a security check to Ethereum clients that reject transactions from senders with deployed code. If you want to know why this is actually important – keep on reading 👇 A short background: Due to ethereum addresses being only 160 bits long, there are possible collision attacks (at a significant cost of course) where an attacker can generate keys for 2^80 EOAs and simulate the deployment of 2^80 contracts from these EOAs and find a collision where an EOA has the same address as one contract. What does that mean? Well, it means that prior to this EIP if you had a contract (a router of an AMM or a liquidity pool for example) and people had given it infinite allowances for various numbers of tokens, an attacker could've generated themselves a key which would've had the same address as the contract with the allowances. This would've allowed the attacker to drain all funds since they would've been able to sign transactions on behalf of that contract. How does the EIP fix it? From this EIP onwards, Ethereum clients are expected to reject transactions where `tx.sender` has any code deployed. This means that their codehash must be empty or the transaction would be rejected otherwise. This, however, doesn't eliminate all possible attack vectors. The EIP (eips.ethereum.org/EIPS/eip-3…) outlines some of them, but one stands out: "1. An attacker can convince a user to send funds to an account before it is deployed..." Sounds familiar, doesn't it? Yes, you guessed it correctly. The famous collision attack issue submitted by 0x52 in the KyberSwap contest on Sherlock from last year – github.com/sherlock-audit/20…. Long story short, the issue is viable because the router never verifies that `msg.sender` is actually a deployed pool (as the `_getPool` function states too) and thus leaves room for an attacker with a generated private key for the same address to come in and drain the funds before a pool is actually deployed at that address. This EIP has been introduced a bit over 3 years ago and only a month after its creation it was implemented in the geth client. The commit introducing the security check can be seen here – github.com/ethereum/go-ether….
1
2
94