Skip to content

fix(rules): security/exposed-actuator reads a 5xx through isUnverifiedReply #2101 - #2151

Merged
nc9 merged 1 commit into
mainfrom
boat/actuator-5xx-2101
Nov 20, 2026
Merged

nc9 merged 1 commit into
mainfrom
boat/actuator-5xx-2101

Conversation

@nc9

@nc9 nc9 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Summary

security/exposed-actuator now uses isUnverifiedReply from probe-http to decide whether an answer can count. This is the same helper security/exposed-files uses. A 5xx on an actuator path is not checked and is never part of a pass. Throttled or challenged answers still stop the rule first, as before.

Note: on main, an inline response.status >= 500 branch already marked a 5xx as not checked. So this PR makes the rule share the probe-http reading, and pins the issue's exact case (500 on /actuator/env, 404 elsewhere) in a test. It does not change any verdict.

Closes #2101

Acceptance criteria

  • An actuator probe answered with HTTP 5xx is not checked (it uses isUnverifiedReply from probe-http) and is never part of a pass, matching security/exposed-files. See packages/rules/src/security/exposed-actuator.ts: the isUnverifiedReply(reply) branch pushes why: "server-error" to unchecked.
  • A test with a 500 on /actuator/env and 404 elsewhere yields exposed-actuator-not-checked, not exposed-actuator. The test is a server error (500 or 503) on /actuator/env, 404 elsewhere: env is not checked, no pass, nothing cleared in packages/rules/tests/exposed-actuator.test.ts. It replaces the earlier 503-only test with stronger assertions: no exposed-actuator check, nothing cleared, and a message that names the env URL with the 5xx reason. With the 5xx branch disabled it fails (40 pass, 1 fail); restored, it passes.

Gates

  • bun run scripts/test-suites.ts --run rules (the CI step): 12504 pass, 24 todo, 0 fail across 406 files
  • bun test --timeout 30000 tests/exposed-actuator.test.ts tests/probe-unverified-1920.test.ts tests/exposed-files.test.ts: 91 pass, 0 fail
  • packages/audit-engine tests/streaming-rules-canonical-golden.test.ts: 1 pass, 0 fail
  • packages/rules bun run typecheck: pass (the package has no lint or format script)

Docs: no change (behaviour unchanged). The squirrelscan agent skill needs no change.

…dReply, never part of a pass #2101

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 marked this pull request as ready for review November 20, 2026 20:32
@nc9
nc9 merged commit dc38bfb into main Nov 20, 2026
8 of 15 checks passed
@nc9
nc9 deleted the boat/actuator-5xx-2101 branch November 20, 2026 21:55
nc9 added a commit that referenced this pull request Nov 21, 2026
* origin/main:
  test(audit-engine): carriedCheckAsFailure keeps the continuation mark #2098 (#2166)
  fix(rules): correct zoom-disabled 1.4.4 wording, related criteria for wcagNone rules #2115 (#2174)
  refactor(cli): list bash completion flags one per line #2116 (#2175)
  feat(rules): waive a public Supabase table by bare name in security/supabase-rls #2103 (#2177)
  test(rules): every site rule emits a check on a clean site, with a shrinking baseline #1741 (#2179)
  feat(rules): report each 5xx page as its own crawl/server-errors finding #2130 (#2181)
  fix(rules): one finding per leaked field across json-sensitive-fields and auth-endpoint-disclosure, deduped by the runner #2083 (#2154)
  fix(cli): report --input keeps meta.partialAudit and publishes with it #2102 (#2153)
  fix(cli): local incremental re-audit counts carried findings in the full audit's check units (#2159)
  fix(crawler): cap stored entity refs and edges, skip corrupt refs rows #2135 (#2158)
  fix(crawler): a quick crawl fetches the start URL when a sitemap lists it past maxPages #2127 (#2157)
  fix(rules): security/exposed-actuator reads a 5xx through isUnverifiedReply, never part of a pass #2101 (#2151)
  fix(rules): hold large text to 3:1 in a11y/color-contrast #2105 (#2155)
  fix(cli): size the report list date column from rendered dates #2095 (#2152)

Signed-off-by: Nik Cubrilovic <[email protected]>
nc9 added a commit that referenced this pull request Nov 21, 2026
* origin/main:
  test(audit-engine): carriedCheckAsFailure keeps the continuation mark #2098 (#2166)
  fix(rules): correct zoom-disabled 1.4.4 wording, related criteria for wcagNone rules #2115 (#2174)
  refactor(cli): list bash completion flags one per line #2116 (#2175)
  feat(rules): waive a public Supabase table by bare name in security/supabase-rls #2103 (#2177)
  test(rules): every site rule emits a check on a clean site, with a shrinking baseline #1741 (#2179)
  feat(rules): report each 5xx page as its own crawl/server-errors finding #2130 (#2181)
  fix(rules): one finding per leaked field across json-sensitive-fields and auth-endpoint-disclosure, deduped by the runner #2083 (#2154)
  fix(cli): report --input keeps meta.partialAudit and publishes with it #2102 (#2153)
  fix(cli): local incremental re-audit counts carried findings in the full audit's check units (#2159)
  fix(crawler): cap stored entity refs and edges, skip corrupt refs rows #2135 (#2158)
  fix(crawler): a quick crawl fetches the start URL when a sitemap lists it past maxPages #2127 (#2157)
  fix(rules): security/exposed-actuator reads a 5xx through isUnverifiedReply, never part of a pass #2101 (#2151)
  fix(rules): hold large text to 3:1 in a11y/color-contrast #2105 (#2155)
  fix(cli): size the report list date column from rendered dates #2095 (#2152)

Signed-off-by: Nik Cubrilovic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rules: security/exposed-actuator counts a 5xx answer as clean (should be not-checked)

1 participant