News for hackers. Stuff that matters.
Re:Barclays Bank Using Internet Archive as CDN for JavaScrip... by onion2k on Friday July 03, 2020 @06:54AM (#23722902)
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.

Re:Barclays Bank Using Internet Archive as CDN for JavaScrip... by mijoharas on Friday July 03, 2020 @08:07AM (#23723265)
I'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

I really hope they have a postmortem and actually implement a CSP for their site, pretty crazy not to, especially for a bank.

Re:Barclays Bank Using Internet Archive as CDN for JavaScrip... by yyyk on Friday July 03, 2020 @08:31PM (#23728928)
"implement a CSP for their site, pretty crazy not to, especially for a bank."

I just checked some of the local banks. Oh dear...