Phishing attack in Web3 — Why you shouldn’t use tx.origin?

Bloqarl
3 min readMar 7, 2023

If you can’t read this article because of the firewall, go here to read it for free!

Let’s understand what is the role of tx.origin and msg.sender and when it’s recommended to be used and after this I will go through why using tx.origin can be vulnerable to a phishing attack.

tx.origin

--

--

Bloqarl

| Enhance Web3 Security | Build On-Chain | Master DeFi | If you share my same goals, I share everything I learn. My Twitter https://twitter.com/TheBlockChainer