OWASP ZAP (Medium / Verify) · ZAP-40040

OWASP ZAP-40040 (CORS Misconfiguration) for GitHub Actions SARIF Gate

Triage and verify ZAP rule 40040 (CORS Misconfiguration) inside GitHub Actions SARIF Gate pipelines without flooding SARIF 2.1.0 reports with header noise.

Primary AegisSec skill
zap-active-daemon-triage ->
Companion: zap-baseline-passive
Coverage ledger tracking key
zap:40040::context:ci-sarif
ZAP plugin 40040 (Medium / Verify)
Risk boundary
// Raw ZAP alert 40040 on GitHub Actions SARIF Gate
// Treat alert as needs_validation or Hardening Note until HTTP pair or handler code confirms risk.
Hardened guard
// Clean triage policy (Medium / Verify)
// 1. Route header-only gaps to hardening-notes.md
// 2. Verify substantive exploit alerts via zap_to_findings + finding-verifier.

Verification steps

  1. 01Check alert 40040 against rules.tsv and GitHub Actions SARIF Gate staging routes.
  2. 02Inspect the actual server handler or SPA router to rule out soft-404 phantoms.
  3. 03Export confirmed or valid leads cleanly into findings.json and SARIF 2.1.0.