google / csp-evaluator

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

www.googletagmanager.com does not need unsafe-eval for CSP bypass #61

Open masatokinugawa opened 1 year ago

masatokinugawa commented 1 year ago

Currently the evaluator believes that a bypass via www.googletagmanager.com requires unsafe-eval. However, this endpoint hosts AngularJS: https://www.googletagmanager.com/debug/badge Also, this endpoint returns JSONP: https://www.googletagmanager.com/debug/api/vtinfo?gtm_auth=xFSd[...]&env_id=env-3&public_id=GTM-[GTMID_HERE]&templates=&callback=element.click Therefore, actually unsafe-eval is not needed. Since Google Tag Manager is a very popular tool, I think it would be better if this bypass was detected.