Part 2

Zaros
PerpetualsDEXFoundrySolidity
70,000 USDC
View results
Submission Details
Severity: high
Invalid

Unrestricted Allowance Updates via updateAssetAllowance

**Summary **:

The updateAssetAllowance function allows the MarketMakingEngine to dynamically update the allowance for the underlying asset. This introduces a risk if the MarketMakingEngine is compromised.

**Vulnerability Details **:

  • The updateAssetAllowance function sets the allowance for the underlying asset without additional safeguards.

  • A malicious actor with control over the MarketMakingEngine could set an unlimited allowance and drain funds from the vault.

**Impact **:

  • High risk of fund theft or misuse by a malicious actor with control over the MarketMakingEngine.

  • Potential loss of all assets in the vault.

**Tools Used **:

  • Manual code review.

  • MythX for access control analysis.

**Recommendation **:

  • Require admin approval for large allowance changes.

  • Implement a pull-based model where the MarketMakingEngine requests tokens only when needed, reducing the risk of excessive allowances.

Updates

Lead Judging Commences

inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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

Give us feedback!