Business logic DoS for WeatherNft::fulfillMintRequest
caused by a lack of check on deposit amount in WeatherNft::requestMintWeatherNFT
when the user enables the automation (_registerKeeper is set to true).
Business logic DoS for WeatherNft::fulfillMintRequest
caused by a lack of check on deposit amount in WeatherNft::requestMintWeatherNFT
when the user enables the automation.
This makes the user unable to fulfill their mint request because the deposit amount is not sufficient.
The requestMintWeatherNFT
function does not check if the deposit amount is greater than 0 when the user enables the automation. This can lead to a situation where, each time the user calls fulfillMintRequest
, the function reverts because the deposit amount is not sufficient.
There is no function that enables the user to update the deposit amount after the request is sent. This can lead to a situation where the user is unable to fulfill their mint request because the deposit amount is not sufficient.
Likelihood: MEDIUM
It's easy to pass 0 value as deposit parameter
Impact: HIGH
The request will be stuck and cannot be fulfilled anymore because the deposit amount is not sufficient.
Consider adding a check to ensure that the deposit amount is greater than 0 when the user enables the automation. This can be done by adding a require statement in requestMintWeatherNFT
.
Otherwise, consider the possibility of adding a function that allows the user to update the deposit amount after the request is sent.
This is informational/invalid. If the LINK deposit is not enough, the function `registerUpkeep` will revert and it is responsibility of the user to provide the correct amount of `_initLinkDeposit`, if the user wants automated weather updates.
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.