Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 1.23 KB

Calls to `setParams` may set invalid values and produce unexpected behavior in the staking contracts.md

File metadata and controls

27 lines (23 loc) · 1.23 KB

CCertain parameters of the contracts can be configured to invalid values, causing a variety of issues and breaking expected interactions between contracts.

setParams allows the owner of the staking contracts to reparameterize critical parameters. However, reparameterization lacks sanity/threshold/limit checks on all parameters.

Recommendation:

Add proper validation checks on all parameters in setParams. If the validation procedure is unclear or too complex to implement on-chain, document the potential issues that could produce invalid values.


Slide Screenshot

066.jpg


Slide Text

  • ToB Audit Ox Protocol Finding 21
  • Data Validation
  • Medium Severity
  • No setParams Validation
  • Undefined Behavior
  • Add Validation
  • Document Behavior

References


Tags