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

Locked ETH in GmxProxy due to failed transfers.

Summary

The GmxProxy.createOrder function approves arbitrary amounts to gmxRouter, risking residual allowances.

Vulnerability Details

When creating orders, safeApprove is used with orderData.amountIn.
If the order fails or is canceled, the approval remains, allowing potential misuse.

Impact

Residual approvals could allow unauthorized transfers if gmxRouter is compromised.

Tools Used

Manual Review

Recommendations

Use safeIncreaseAllowance or reset approvals to zero after each transaction.

Updates

Lead Judging Commences

n0kto Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Informational or Gas

Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.

Support

FAQs

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

Give us feedback!