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

Replay protection for failed transactions

Summary

The Perpetual Vault Protocol does not have explicit protections against replay attacks for failed transactions.

Vulnerability Details

The GmxProxy and PerpetualVault contracts do not implement mechanisms to prevent replay attacks on failed transactions. This could allow an attacker to replay a failed transaction and potentially cause unintended effects.

Impact

An attacker could replay a failed transaction, potentially causing the contract to execute unintended actions or consume unnecessary gas.

Tools Used

  • Manual code review

Recommendations

Implement nonce-based transaction protection or use EIP-712 for signed transactions to prevent replay attacks. Ensure that failed transactions cannot be replayed by tracking and validating transaction hashes.

Updates

Lead Judging Commences

n0kto Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Too generic
Assigned finding tags:

Suppositions

There is no real proof, concrete root cause, specific impact, or enough details in those submissions. Examples include: "It could happen" without specifying when, "If this impossible case happens," "Unexpected behavior," etc. Make a Proof of Concept (PoC) using external functions and realistic parameters. Do not test only the internal function where you think you found something.

Support

FAQs

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

Give us feedback!