3 ms·
Adding scripts might be considered OK (content editors could be given light-weight developer tasks), but modifying the site's CSP definitely isn't. There aren't
by onion2k 6y ago
Adding scripts might be considered OK (content editors could be given light-weight developer tasks), but modifying the site's CSP definitely isn't. There aren't many things you can do to stop an attacker injecting code in to your site, but having a CSP that whitelists servers under your control and blocks everything else is something that you can implement. Changes to the CSP should not be done lightly.
The fact that the CSP is whitelisting archive.org makes this look like an attack to me, or at least a test run before a real attack. I don't believe this was a simple mistake.
- mijoharas 6y agoI'm gonna invoke hanlon's razor (never attribute to malice what can equally be explained by stupidity) here to assert that this isn't an attack. Looks like their main homepage doesn't have a CSP policy at all https://cspvalidator.org/#url=https://www.barclays.com https://cspvalidator.org/#url=https://www.barclays.com I really hope they have a postmortem and actually implement a CSP for their site, pretty crazy not to, especially for a bank.
- yyyk 6y ago"implement a CSP for their site, pretty crazy not to, especially for a bank." I just checked some of the local banks. Oh dear...