enhancementhelp wantedsecurity/privacy
Description
Google has just released a CSP testing tool and some more detailed information about CSP.
They mention some interesting things:
- There is a new 'strict-dynamic' being created.
unsafe-inlinecan always be used as a fallback for older browsers supporting only CSPv2. CSPv3-compliant browsers will ignore this ifstrict-dynamic, nonces or hashes are used.- They do discourage the use of
'self'inscript-srcas 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: