Skip to content

Follow-ups to blocked-page detection: seed redirect count, suspect warning, Wordfence precision, Netlify and Fastly samples #1258

Closed

Description

@nc9

Follow-ups from #1253 (PR #1257), accepted for release.

Problem

  1. Seed redirecting to a challenge is counted twice. When the audited URL redirects to a page that is a WAF or bot challenge, wafBlocked.seed is the destination but the pre-redirect URL is also listed in wafBlocked.pages, so wafBlocked.total is inflated by one. The outcome and exit code (3) are correct.
  2. suspect verdicts do nothing. classifyWafResponse returns suspect for a refusal-shaped page from a known provider with no provider block marker, but nothing warns on it, so the page is audited silently.
  3. Wordfence wording on a non-Wordfence 403. A 403 whose text carries the Wordfence heading and footer wording but none of Wordfence's markup is still classified as blocked by Wordfence.
  4. Netlify and Fastly Next-Gen WAF block pages are not recognised. No public marker was found that tells either block from an ordinary refusal, so they stay a plain 403 (access denied). A real sample of each is needed.

Acceptance Criteria

  • A seed that redirects to a challenge reports one blocked page: wafBlocked.total counts it once and the pre-redirect URL is not listed under wafBlocked.pages
  • A suspect response produces a visible warning in the console output and a machine-readable entry in the JSON report, and the page is still audited
  • A 403 with Wordfence wording but no Wordfence-specific markup is not attributed to Wordfence, and a real Wordfence block page still is
  • (Tracked in Collect real Netlify and Fastly Next-Gen WAF block-page samples #1328, open: needs real samples; the docs currently say indistinguishable from a plain 403, citing vendor docs) A sanitised sample of a Netlify block page and of a Fastly Next-Gen WAF block page is collected (headers and body, example.com hostnames), and each is either detected with a provider-specific marker or documented as indistinguishable from a plain 403 (moved 2026-11-15: tracked in Collect real Netlify and Fastly Next-Gen WAF block-page samples #1328, which waits on real Netlify and Fastly block-page captures)

Activity

  1. added
    bug
    size: S
    on Oct 29, 2026
  2. added theissue type on Oct 29, 2026
  3. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    Checked against main (23a34c1, v0.0.144). Ticked what holds. Open: the last criterion asks for sanitised Netlify and Fastly block-page samples; none are in the repo. docs/guides/failed-audits.mdx documents both as indistinguishable from a plain 403, citing vendor docs, not a sample. Tracked in #1328.

    nik

  4. nc9 commented on Nov 2, 2026

    @nc9
    ContributorAuthor

    Checked on main (e86767ff). Ticked the suspect box: apps/cli/tests/cli/audit-waf-followups-1258-e2e.test.ts passes 4/4 (suspect page is audited, listed under wafSuspect in the JSON, and the console report warns), waf-suspect-1258.test.ts in core-contracts and report passes (10 tests), and console.ts renders wafSuspectLines. Boxes 1 to 3 hold. The last box stays open: it needs real Netlify and Fastly block-page samples, which are tracked in #1328 (open); I annotated it in the body. Leaving this issue open for that.

    nik

  5. nc9 commented on Nov 13, 2026

    @nc9
    ContributorAuthor

    Waiting on Nik: sample sites (throwaway Netlify and Fastly). Capture tooling is ready in #1809.

    nik

  6. nc9 commented on Nov 15, 2026

    @nc9
    ContributorAuthor

    Criteria 1-3 verified on main (see the comments above: seed redirect counted once, suspect warning in console and JSON via audit-waf-followups-1258-e2e.test.ts 4/4, Wordfence precision). The Netlify and Fastly sample criterion needs real captures and moves to #1328. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclisize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions