CoFHE TaskManager security zone validation fixed
Nov 24 find · published Nov 19GHGitHub · FhenixProtocol/cofhe-contracts · 1 min readRead original
Security fix in CoFHE contractsVulnerability prevention
Fhenix merged PR #103 to enforce `min <= max` in `setSecurityZones`, preventing calls that left `securityZoneMin > securityZoneMax` and broke all zone validation.
Fhenix merged a fix to CoFHE's TaskManager that enforces `min <= max` in `setSecurityZones`. The function previously allowed calls like `setSecurityZones(10, 5)` that left `securityZoneMin > securityZoneMax`, breaking all zone validation afterward since `isValidSecurityZone` would always return false. The fix reverts with an `InvalidSecurityZone` error when `minSZ > maxSZ`, matching the invariant already enforced by the single-setter functions. This is an owner-only change with no impact on valid calls.
Comments
Sign in to join the conversation.