# Unset flag blocks permissionless path

A permissionless action gated on a flag, capability or assertion no reachable path can satisfy

_Area: Smart contract access control and control flow. Seen in 3 disclosed reports; latest 2025-08-27. Updated 2026-11-09._

## How it works
A permissionless action is gated on a condition that is supposed to be satisfiable by anyone: a boolean flag, a capability, or an assertion. The root cause is that no reachable path ever makes that condition true. Either the only code that could set the flag is unreachable, the off-chain component that must honor it panics or refuses on the relevant input, or a downstream assertion is incompatible with the branch that reaches it. The gate looks like a legitimate access check, so reviewers read it as "only authorized callers" rather than "nobody can call this."

## Where it shows up
- A permissionless entry point requiring a flag (e.g. `l1Inclusion == true`) that only a privileged or off-chain actor can produce.
- A two-step flow (request/execute) where step two is gated to a specific caller that never implements or exposes the call.
- Off-chain provers or handlers with chain/type dispatch branches that panic or revert instead of returning a default.
- A shared trailing assertion (time, state, expiry) applied to an `any`/multi-branch condition where only some branches satisfy it.
- Capability or role checks whose granting function is never called on any path.

## How to review
For every gate on a permissionless path, name the exact code path that makes the condition true, and confirm it is reachable by an unprivileged caller. The invariant: **for each permissionless action, at least one reachable, unprivileged path must satisfy every precondition.** Check the off-chain side too: if a contract requires a flag, the component that computes it must handle every input it will see, not panic on some. For multi-branch conditions, verify each downstream assertion is compatible with every branch that can reach it.

## How finders spotted it
- Read the slasher-type branch in `_slashValidator` and compared it to the README claim that the oracle calls `executeSlash`; cross-checked `VetoSlasher.executeSlash`'s middleware-only access control to expose the contradiction [E1](https://bugbountylibrary.com/r/cantina%3Aprimev_oct2024%3A3.1.4.md).
- Read `_verifyProof`'s `L1Inclusion` requirement against the Rust viewcalls handler and noticed the else-branch panic for non-OP/non-Linea chains including ETH mainnet [E2](https://bugbountylibrary.com/r/sherlock%3A2025-07-malda%3AM-8.md).
- Read `announcer_penalize.clsp`, saw the `any` clause permits three violation types but a trailing `ASSERT_SECONDS_ABSOLUTE TIMESTAMP_EXPIRES` gates all of them on price expiry [E3](https://bugbountylibrary.com/r/cantina%3Acircuit_puzzles%3A3.3.5.md).

## Variants seen
- Two-step slasher: middleware requests a slash but never implements the middleware-gated `executeSlash`, so validators escape slashing [E1](https://bugbountylibrary.com/r/cantina%3Aprimev_oct2024%3A3.1.4.md).
- Cross-component flag: contract requires `l1Inclusion=true`, but the ZK coprocessor panics on ETH mainnet, blocking permissionless proofs [E2](https://bugbountylibrary.com/r/sherlock%3A2025-07-malda%3AM-8.md).
- Shared assertion: penalty puzzle's unconditional expiry assertion lets undercollateralized announcers escape penalties until TTL lapses [E3](https://bugbountylibrary.com/r/cantina%3Acircuit_puzzles%3A3.3.5.md).

## Impact and severity
Misbehaving validators escape slashing entirely [E1](https://bugbountylibrary.com/r/cantina%3Aprimev_oct2024%3A3.1.4.md); permissionless external actions are impossible on a major chain [E2](https://bugbountylibrary.com/r/sherlock%3A2025-07-malda%3AM-8.md); persistent undercollateralization plus governance voting weight lets announcers damage protocol economics and governance [E3](https://bugbountylibrary.com/r/cantina%3Acircuit_puzzles%3A3.3.5.md). Severity rises when the blocked path is the only enforcement mechanism or when the escapee gains governance power.

## Evidence
- E1: https://bugbountylibrary.com/r/cantina%3Aprimev_oct2024%3A3.1.4.md
- E2: https://bugbountylibrary.com/r/sherlock%3A2025-07-malda%3AM-8.md
- E3: https://bugbountylibrary.com/r/cantina%3Acircuit_puzzles%3A3.3.5.md
