PrivateBin/PrivateBin

Going forward with CSP

Open

#108 opened on Sep 26, 2016

View on GitHub
 (7 comments) (2 reactions) (0 assignees)PHP (4,616 stars) (627 forks)batch import
enhancementhelp wantedsecurity/privacy

Description

Google has just released a CSP testing tool and some more detailed information about CSP.

They mention some interesting things:

  1. There is a new 'strict-dynamic' being created.
  2. unsafe-inline can always be used as a fallback for older browsers supporting only CSPv2. CSPv3-compliant browsers will ignore this if strict-dynamic, nonces or hashes are used.
  3. They do discourage the use of 'self' in script-src as it can be bypassed in certain cases.

In CSPv3 you can AFAIK also define subdirectories (privatebin.org/scripts), which could be another way to strengthen our policy. However in this case there might be compatibility issues.

So together with https://github.com/PrivateBin/PrivateBin/issues/82 this might be an issue we can address in the future when CSP has further developed itself :smiley:

Contributor guide