google / csp-evaluator

https://csp-evaluator.withgoogle.com
Apache License 2.0
315 stars 45 forks source link

CSP evaluator doesn't support newest the newest CSP directives and keywords and breaks some policies #60

Open GalacticHypernova opened 1 year ago

GalacticHypernova commented 1 year ago

Like stated in #54 and #56 there are some additions to CSP that the evaluator does not recognize, which makes it inaccurate in analyzing most up-to-date policies. The directives that aren't supported include but aren't limited to:

  1. wasm-unsafe-eval #54, Mozilla
  2. inline-speculation-rules #56
  3. unsafe-hashesCSP.com, Mozilla Also, the evaluator gets the some keywords wrong , for example hashes, and autocompletes to sha-512- and sha-384- in stead of sha512- and sha384- which breaks the policy by prodiving inaccurate keywords.