writing-plans: verifying a security boundary needs adversarial probes (encoded paths, concurrency), not happy-path negatives

Author: abat-kekCreated Sep 30, 2026Updated Sep 30, 2026
  • I searched existing issues and this has not been proposed before

What problem does this solve?

A plan exposed an API through a reverse proxy with a path allowlist, and its verification step checked the block with two harmless negatives (/admin/login, /). A review of the plan found that the proxy compares the decoded, normalised path but forwards the raw one, while the backend routes on the raw path: /admin/users/..%2F..%2F..%2Fapi%2Fv1%2Fx passes the allowlist and reaches the admin guard. The plan also relied on a login rate limit that had only been tested sequentially; 40 parallel requests all got through. The plan's verification step could never have found either.

Proposed solution

In writing-plans, What a Step Contains (or a Self-Review item next to 4. Review Focus): when a plan exposes a service externally or rests its security on a boundary (path filter, allowlist, rate limit, lock), the verification step includes adversarial negatives:

  • encoded separators and dot segments (%2F, ..%2F, %2e), percent-encoded letters, double slashes and case variants — sent with curl --path-as-is against the real proxy+backend combination, not each component alone;
  • one concurrency test per counting limit: N simultaneous requests, expect at most the limit to succeed.

What alternatives did you consider?

Leaving it to Review Focus: that section lists input classes the spec implies, and neither spec nor plan author thought of a decode-vs-raw disagreement between two components — which is exactly why a short fixed list for this class helps. A dedicated security skill: too heavy; the gap is one verification step.

Is this appropriate for core Superpowers?

Yes — any plan that opens something to a network and claims "blocked" as verified.

Environment (required)

Field Value
Superpowers version observed on 6.3.0; the gap is still present on dev as of 2026-10-01
Harness (Claude Code, Cursor, etc.) Claude Code (desktop app, Code tab)
Harness version 2.1.272
Your model + version Claude Opus 5.5 (claude-opus-5-5)
All plugins installed superpowers, task-observer, claude-mem, context7, plus private skill plugins unrelated to this area
OS + shell Windows 11, Git Bash

Context

Principle: a security boundary is verified only once the check tries to bypass it — at the seam of two components that interpret the same input differently, and under concurrency. Happy-path negatives only confirm the intent.