Comment by captn3m0

10 days ago

Google’s suggested workaround for CSP enabled sites for GTM is to use a nonce, which GTM then propagates to all further scripts that it injects.

https://developers.google.com/tag-platform/security/guides/c...

Nonce would kill this idea, but fortunately it is the webadmin that needs to install it.

In the end this is a tradeoff between security and convenience.

  • Perhaps I’m not really following, but it seems like in this case they were executing blind anyhow? If they implemented a nonce where would they have derived the trust for it? If they’re just running what they’re given this attack came from the trusted vector so i would assume a nonce wouldn’t add much other than rubber stamping what was already corrupted…