tx.origin in access control #2758
Replies: 2 comments
-
Yes, Slither can detect dangerous use of tx.origin via its tx-origin detector, which flags contracts that use tx.origin in sensitive logic (like access control). The detection is quite reliable for common patterns, especially when used like:
however, Slither will not catch all complex proxy patterns or complicated logic, so you should still review code manually. As a best practice, always use |
Beta Was this translation helpful? Give feedback.
-
Thanks, yes that confirms what the course says then |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Can Slither detect issues related to unsafe use of tx.origin in access control? If so, how reliable is the detection?
Beta Was this translation helpful? Give feedback.
All reactions