Repository navigation
fix(waf-detect): recognise x-cdn: Imperva as Imperva #604 - #643
Conversation
Signed-off-by: Nik Cubrilovic <[email protected]>
|
Reviewed the diff: the change is small and correct. I found no issues that should block merging.
Tests cover the Imperva-only case, the case with both headers, and a negative. The CHANGELOG entry is clear. I did not run the tests myself. |
|
Reviewed the diff. The change is correct, small and tested. The new regex
I did not run the tests myself. |
|
Review triage (head 33ba2bb): (low) tech-detect |
Closes #604
detectWafFromHeadersmatched Imperva'sx-cdnheader only on/incapsula/i. Imperva now sendsx-cdn: Imperva(www.imperva.com, 2026-10-09), so a response with that header and nox-iinfowas not identified, and when both were present thex-cdnheader was missing fromindicators.packages/waf-detect/src/providers.ts: thex-cdnpattern is now/incapsula|imperva/i.apps/cli/tests/utils/waf.test.ts:x-cdn: Impervaalone is Imperva,Imperva+x-iinfolists both indicators,x-cdn: Fastlyis not Imperva; the existingx-cdn: Incapsulacase stays.[Unreleased]entry.Verified: the two new positive cases fail on main and pass here;
bun test tests/utils/waf.test.ts32/32;tsgo --noEmitinpackages/waf-detectclean.Docs: no page names the WAF header signatures, so no docs change. Skill: no change needed.