CWE-942 · CWE-942
CWE-942 (Permissive Cross-Domain Policy): Code Remediation & Guardrails
Apply fail-closed server-side controls and schema checks for CWE-942 across the Untrusted origin -> Authenticated API response trust boundary.
Coverage ledger tracking key
standard:cwe-942::phase:remediation::skill:web-protocol-auth-audit
ZAP 40040 CORS check
Risk boundary
// Boundary risk for CWE-942
// Trust boundary crossed: Untrusted origin -> Authenticated API responseHardened guard
// Phase action (Code Remediation & Guardrails)
// Primary skill: web-protocol-auth-audit | Companion: zap-baseline-passiveVerification steps
- 01Run web-protocol-auth-audit focused on Untrusted origin -> Authenticated API response.
- 02Pair dynamic signal (ZAP 40040 CORS check) with exact source file:line proof.
- 03Promote only proven candidates to confirmed in findings.json and SARIF 2.1.0.