Comment by robomc
11 days ago
I mean, really that situation is CSP finally earning its keep. Put whatever you want in tag manager but at the end of the day it's not going to work unless I review it.
11 days ago
I mean, really that situation is CSP finally earning its keep. Put whatever you want in tag manager but at the end of the day it's not going to work unless I review it.
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…
I think that works for script-src but not connect-src.