opyebCspLab

About

CspLab started from the question “I added a CSP, so why is it still exploitable?”. A policy is one line, but a single value inside it can allow inline script or collapse the trust boundary, and that usually shows up only after a breach.

What it does

It takes an existing policy (header, `_headers`, Nginx, Apache, meta tag), splits it into directives, and rebuilds it from toggles and source lists. 35 practical audit rules check `'unsafe-inline'`, `'unsafe-eval'`, wildcards, `data:`, `http:`, missing `object-src`, and broken nonce/`'strict-dynamic'` combinations, with a bypass scenario and a fix for each. Results export as a Markdown or JSON report and a `_headers` file, and the policy converts to each deployment format.

How it runs

It ships as static HTML, CSS and JavaScript. There are no accounts, no database, no API and no analytics. Every calculation runs in the visitor's browser and input is not uploaded. See the privacy policy.

Limits

The tool analyses the policy string; it does not reproduce browser enforcement. The score is a relative-risk signal, and real risk depends on the service. Every preset domain and value is synthetic.

0 bytes of your input sent to a server (advertising and affiliate widgets excluded)