logoalt Hacker News

Csp-toolkit – Python library to parse, analyze, and find bypasses in CSP headers

11 pointsby bitscraperlast Wednesday at 2:37 PM1 commentview on HN

Comments

thitamilast Thursday at 11:24 AM

CSP headers are one of those things that look simple until you actually audit them. The bypass detection is the useful part — I've seen plenty of Laravel apps with a CSP that looks reasonable until you notice it allows unsafe-inline because someone needed a quick fix three years ago and nobody noticed. Does it handle report-uri vs report-to differences? The migration between those two has caught a few teams I've worked with off guard.

show 1 reply