Repository navigation
fix(rules): security/exposed-actuator reads a 5xx through isUnverifiedReply #2101 - #2151
Merged
Merged
Conversation
…dReply, never part of a pass #2101 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
marked this pull request as ready for review
November 20, 2026 20:32
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
security/exposed-actuatornow usesisUnverifiedReplyfromprobe-httpto decide whether an answer can count. This is the same helpersecurity/exposed-filesuses. 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 >= 500branch 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
isUnverifiedReplyfrom probe-http) and is never part of a pass, matching security/exposed-files. Seepackages/rules/src/security/exposed-actuator.ts: theisUnverifiedReply(reply)branch pusheswhy: "server-error"to unchecked./actuator/envand 404 elsewhere yieldsexposed-actuator-not-checked, notexposed-actuator. The test isa server error (500 or 503) on /actuator/env, 404 elsewhere: env is not checked, no pass, nothing clearedinpackages/rules/tests/exposed-actuator.test.ts. It replaces the earlier 503-only test with stronger assertions: noexposed-actuatorcheck, 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 filesbun test --timeout 30000 tests/exposed-actuator.test.ts tests/probe-unverified-1920.test.ts tests/exposed-files.test.ts: 91 pass, 0 failpackages/audit-enginetests/streaming-rules-canonical-golden.test.ts: 1 pass, 0 failpackages/rulesbun run typecheck: pass (the package has no lint or format script)Docs: no change (behaviour unchanged). The squirrelscan agent skill needs no change.