DeFiFoundry
50,000 USDC
View results
Submission Details
Severity: low
Invalid

Unsafe use of tx.origin

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.

Updates

Lead Judging Commences

n0kto Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

invalid_tx-origin

Lightchaser: Medium-5

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.