CSPLens - Analyser & Policy builder banner

CSPLens - Analyser & Policy builder

7 devlogs
23h 23m 20s

CSPLens is a developer-focused tool for analyzing, understanding, and improving Content Security Policies.
PROTECT YOUR SITE FROM XSS AND INJECTIONS!!!!!

Demo Repository

Loading README...

Pratik

Shipped this project!

Same things as last devlog,
added report exporting feature that supports JSON and markdown, look at the previous devlog for more details

Pratik

Exporting analysis report - added!

Formats supported:

  • JSON
  • Markdown
    pdf coming soon!

now you can save the reports locally and show in meetings if you are employed

  • added a little loading skeleton in analysis
    33
Attachment
Attachment
Attachment
0
Pratik

Shipped this project!

Hours: 19.46
Cookies: 🍪 486
Multiplier: 24.95 cookies/hr

CSPLens is a tool I built to analyze and understand Content Security Policies. It parses CSP headers, evaluates directives and sources, highlights misconfigurations, and maps them to real attack surfaces like XSS, data exfiltration, clickjacking, etc :3

While building it, I learned a lot about real-world CSP stuff (somehow bad-looking CSP is still OK in some specific cases, need to work on my analyser more lol), parser edge cases, and how to turn (a bit) low-level security rules into something developers can actually read and reason about. The project focuses on reason and recommendation over “this bad, that bad”, showing why a policy is risky, not just that it is. :3

This is MVP, more updates coming soon when i feel like it :)

Pratik

Added attack surface, improved types to include attack class, improved parser to remove header name and work around invalid directives, added bunch of more directives in rule table

MPV is ready.

Attachment
0
Pratik

Major style changes, improved badges, changed directive item style a bit, added missing directives list in overview, added a small help component, removed unique sources for now (will be added in future), made a banner for this and also made the README file

Attachment
0
Pratik

A lot of stuff:

  • Replaced that boring stats with policy grade
  • Added a better tooltip with reason, fix recommendation, and reference
  • Updated parser logic
Attachment
Attachment
0