Part 2

Zaros
PerpetualsDEXFoundrySolidity
70,000 USDC
View results
Submission Details
Severity: low
Invalid

Missing check for array length mismatch in `AssetSwapPath::configure`

Vulnerability Details

The function does not check if the lengths of assets and dexSwapStrategyIds are compatible. For example, if assets has 4 elements, dexSwapStrategyIds should have 3 elements (as per the example in the NatSpec).

function configure(
Data storage self,
bool enabled,
address[] memory assets,
uint128[] memory dexSwapStrategyIds
)
internal
{
self.enabled = enabled;
self.assets = assets;
self.dexSwapStrategyIds = dexSwapStrategyIds;
}

Recommendations

Add a check to ensure the lengths of the arrays are compatible.

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.