Inappropriate User Authorization
The Solidity 'tx.origin' should not be used for authorization e.g. when transferring ether to a wallet because tx.origin is the address of EOA (Externallly Owned Account) that the originated the trans
Reference: https://docs.soliditylang.org/en/develop/security-considerations.html#tx-origin
1. Vulnerable Wallet
For example, the following wallet validates a user with tx.origin == owner
. However, this tx.origin
is vulnerable because tx.origin
is not
2. Implement Attack Wallet using the Vulnerable Wallet
Last updated