Owner Can Break Core Functionality via Gas Limit Updates in WeatherNft
.
Impact: High severity—disrupts minting and updates, affecting all users.
The WeatherNft.sol
contract allows the owner to update Chainlink Functions and Automation gas limits via updateFunctionsGasLimit
and updateKeeperGaslimit
. Setting these to very low values (e.g., 0) causes Chainlink requests to fail, halting NFT minting (requestMintWeatherNFT
) and weather updates (performUpkeep
).
Likelihood:
The owner accidentally or maliciously sets s_functionsConfig.gasLimit
or s_upkeepGaslimit
to 0.
A compromised owner account is used to call these functions with invalid values.
Impact:
Chainlink Functions requests fail, preventing NFT minting and weather updates.
Users cannot mint new NFTs or keep existing ones updated, breaking core functionality.
Scenario: Owner sets gas limit to 0
User tries to mint NFT
Result: Chainlink Functions request fails due to insufficient gas
After adding the MIN gas limit constant variables, make sure to add the requirements at the functions necessary.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
View preliminary resultsAppeals are being carefully reviewed by our judges.
The contest is complete and the rewards are being distributed.