Missing parameter validation #195
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
cmichel
Vulnerability details
Some parameters of functions are not checked for invalid values:
TreasuryManager.setPriceOracle: oracleAddress
: could break thingsTreasuryManager.setSlippageLimit: slippageLimit
: should be<= SLIPPAGE_LIMIT_PRECISION
Impact
Wrong user input or wallets defaulting to the zero addresses for a missing input can lead to the contract needing to redeploy or wasted gas.
Recommended Mitigation Steps
Validate the parameters.
The text was updated successfully, but these errors were encountered: