Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of tx.origin #1335

Open
Robinhood21 opened this issue Mar 2, 2024 · 1 comment
Open

Usage of tx.origin #1335

Robinhood21 opened this issue Mar 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Robinhood21
Copy link

馃悰 Bug Report

馃摑 Description

the usage of tx.origin in checkTxOrigin() is generally discouraged due to itssusceptibility to certain attack vectors, such as a cross-contract authorization vulnerability. It's typicallysafer to use msg.sender for authentication and authorization purposes, as tx.origin represents theoriginating sender of the transaction, which can be manipulated in certain scenarios.

route

core/tests/ts-integration/contracts/context/context.sol

@Robinhood21 Robinhood21 added the bug Something isn't working label Mar 2, 2024
@EmilLuta
Copy link
Contributor

cc: @vladbochok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants