QuantAMM

QuantAMM
49,600 OP
View results
Submission Details
Severity: low
Invalid

Denial of Service via Unvalidated Pool Addresses and Zero Liquidity in UpliftOnlyExample Smart Contract

Summary

https://github.com/Cyfrin/2024-12-quantamm/blob/a775db4273eb36e7b4536c5b60207c9f17541b92/pkg/pool-hooks/contracts/hooks-quantamm/UpliftOnlyExample.sol#L219

In the addLiquidityProportional function, there is no validation to ensure that the input amount is greater than zero or that the provided pool address as params is valid.

Vulnerability Details

An attacker can mint NFTs with input amount of 0 and use multiple invalid pool addresses, enabling a Denial of Service (DoS) attack.

Impact

It can prevent other users from minting NFTs.

Tools Used

Recommendations

In the addLiquidityProportional function, there must be a validation to ensure that the input amount is greater than 0 and that the provided pool address is valid.

Updates

Lead Judging Commences

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

Informational or Gas / Admin is trusted / Pool creation is trusted / User mistake / Suppositions

Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood 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!