Steadefi

Steadefi
DeFiHardhatFoundryOracle
35,000 USDC
View results
Submission Details
Severity: low
Invalid

Cache fields used to authorize callbacks are public. Malicious actor could craft fake calls bypassing checks.

Summary

The fields used to authorize valid callback calls are publicly accessible. This allows malicious actors to bypass validation checks by crafting fake callback calls.

Vulnerability Details

Structs like Store contain public fields like depositCache and withdrawCache in GMXCallback.sol contract. These fields hold deposit/withdraw keys used to validate the target of callbacks. As the keys are public, anyone can construct a fake callback call with arbitrary keys. This circumvents the internal validation checks meant to authorize only real callback events.

Impact

Malicious actors can spoof callback events that should not be processed.

Tools Used

Manual Review

Recommendations

Make authorization data private to only be accessible within the contract.

Updates

Lead Judging Commences

hans Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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