tx.origin
-based protection can be abused by a malicious contract if a legitimate user interacts with the malicious contract.
Using tx.origin
may lead to problems when users are interacting via smart contract with GmxProxy protocol. In GmxProxy::setPerpVault
be used
to validate the owner. However if owner is interacting with some malicious protocol if can lead to a problem
aderyn
use msg.sender
in place of tx.origin
Lightchaser: Medium-5
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.