Description:
GmxProxy.setPerpVault
uses tx.origin == owner()
for authorization. This allows phishing attacks where a malicious contract impersonates the owner.
Impact:
Unauthorized vault setup if owner interacts with a malicious contract.
Affected Code:
GmxProxy.sol#setPerpVault()
checks tx.origin == owner
.
Recommendation:
Replace tx.origin
with msg.sender
for authorization.
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.