google / google/csp-evaluator

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

Open
#61 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
404
Forks
59
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.