Skip to content
Skills
Problems
Questions
Roles
Skills
Interview
Contest
Leaderboard
Problems
Questions
Roles
Skills
Interview
Contest
Leaderboard
Home
/
Blockchain Developer
/
Medium
/
Using tx.origin for auth
medium
10 pts · first answer counts
security
access-control
Using tx.origin for auth
Why is require(tx.origin == owner) dangerous for access control?
Choose one answer
A.
tx.origin costs too much gas
B.
tx.origin is always the zero address
C.
If the owner is tricked into calling a malicious contract, that contract can call yours and tx.origin will still be the owner
D.
tx.origin does not exist on Layer 2 networks
Submit answer
Report a problem
← Spot the reentrancy bug
Packing storage variables →