Reviewing Content Security Policy

Review a content security policy as a script-injection defense and judge whether it would actually stop injected script, with the discipline that a weak policy is a real finding mainly where an injection sink it would otherwise block exists. Covers a script source that allows inline script with no neutralizing nonce or hash, that allows arbitrary hosts or data URLs, or that trusts a host serving attacker-usable script; a nonce that is static, reused, low-entropy, or reflected from input; a missing base-uri or object-src that defeats an otherwise strong nonce policy; and a report-only header shipped as the only policy. Use when reviewing a policy in a response header, a meta tag, or config, alongside the pages it protects. The policy is the control under test, injected script is the sink it must block, and a gap the injection reaches is the bug.

UnboundCompute cd8c7c7 9.0 KB Updated

File contents

UnboundCompute/security-agent-skills/tree/main/skills/reviewing-content-security-policy commit cd8c7c7007

Frequently asked questions

npx skillmds@latest add unboundcompute/reviewing-content-security-policy