Skip to content
Security
← V4 known risks
V4-17RecommendationOpenGovernance & configuration

Duplicate member detection depends on the member list staying sorted

Duplicates are found by comparing neighbors, which only works on a sorted list.

Why this is a risk, not a vulnerability · Documented behavior

Every code path in the immutable program keeps the list sorted. Reports must show a duplicate actually being accepted. What is a vulnerability
Program
Squads V4
Source
Certora SQRC-05
Code
View at dcac867

The invariant detects duplicate members by comparing adjacent entries. Every current code path keeps the list sorted, so the check holds today. The same pattern is used for spending-limit members. Because the program is immutable, no future path can break this, but integrators should not rely on it as a general guarantee.

What to do

  • Integrators: validate member lists for duplicates client-side.