Skip to content

bug(waf-detect): x-cdn: Imperva is not recognised as Imperva #604

Closed

Description

@nc9

What happens

detectWafFromHeaders (packages/waf-detect/src/providers.ts) identifies Imperva by x-cdn only when the value matches /incapsula/i. Imperva now sends x-cdn: Imperva (seen on www.imperva.com on 2026-10-09, together with x-iinfo). Today detection still works on that site because x-iinfo is present, but a response that carries x-cdn: Imperva without x-iinfo is not identified, and when both are present the x-cdn header is missing from the indicators.

This matters wherever the WAF provider is named: refused-fetch reporting (which bot protection blocked the crawl) and challenge-page detection.

Expected

x-cdn: Imperva identifies Imperva, the same as x-cdn: Incapsula.

Found while working on #600.

Acceptance Criteria

  • detectWafFromHeaders on a response with x-cdn: Imperva and no x-iinfo returns provider imperva
  • x-cdn: Incapsula is still detected as imperva
  • With both x-cdn: Imperva and x-iinfo present, both appear in indicators
  • An x-cdn value naming another vendor (for example x-cdn: Fastly) is not detected as imperva
  • A regression test covers the cases above

Activity

  1. added
    bug
    P3
    size: XS
    rules
    on Oct 9, 2026
  2. nc9 commented on Oct 11, 2026

    @nc9
    ContributorAuthor

    Landed in 8312d0b (#643): all five criteria verified against the diff (x-cdn: Imperva alone, Incapsula still detected, both indicators with x-iinfo, Fastly negative, regression tests in apps/cli/tests/utils/waf.test.ts); main CI green.

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

    P3bugrulessize: XS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions