GitHub Actions (CI/CD YAML) · CWE-79

GitHub Actions: XSS, DOM Sinks & CSP Bypass (Adversarial PoC Verification)

Prove boundary crossing with paired positive/negative controls. Prevent untrusted strings or javascript:/data: URLs from executing inside browser contexts. Tailored for GitHub Actions: Pin actions to 40-char commit SHAs and never run untrusted PR head code with write tokens.

Primary AegisSec skill
client-side-mobile-ipc-audit ->
Companion: zap-baseline-passive
Coverage ledger tracking key
surface:github-actions::boundary:xss-dom-csp::angle:verification
ZAP 40012 / 40014 XSS and CSP header check
Risk boundary
// Unverified GitHub Actions path (CWE-79 · Adversarial PoC Verification)
// Handler accepts input without validating OIDC sub claim.
Hardened guard
// Hardened GitHub Actions (CWE-79 · Adversarial PoC Verification)
// 1. Pin actions to 40-char commit SHAs and never run untrusted PR head code with write tokens
// 2. Enforce contextual escaping, validate URL protocols strictly, and deploy strict CSP headers.

Verification steps

  1. 01Seed coverage-ledger.json for every GitHub Actions handler touching XSS, DOM Sinks & CSP Bypass.
  2. 02Trace request parameters through OIDC sub claim validation down to the sink.
  3. 03Verify with paired positive/negative evidence via zap-baseline-passive.