The _createContingentPool function does not validate that the _poolParams.collateralAmount
is greater than zero before proceeding with token operations. This oversight allows users to create a contingent pool with zero collateral, which results in the minting of wTokens without any corresponding collateral being supplied to Aave.
If _poolParams.collateralAmount
is zero, the _handleTokenOperations
function will still mint wTokens, even though no collateral is supplied to Aave. This creates a scenario where users can mint wTokens for free, undermining the contract's economic model.
Attackers can mint wTokens without depositing any collateral.
Add a validation check in _createContingentPool
to ensure that _poolParams.collateralAmount
is greater than zero before proceeding with token operations.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.