News for hackers. Stuff that matters.
Re:Barclays Bank Using Internet Archive as CDN for JavaScrip... by kevin_thibedeau on Friday July 03, 2020 @11:24AM (#23724796)
No bank should ever use third party resources. Problem solved.
Re:Barclays Bank Using Internet Archive as CDN for JavaScrip... by baybal2 on Friday July 03, 2020 @11:36AM (#23724890)
Imagine a situation where somebody manages to inject own script into bank's page not through employee's negligence, but through some exploit.

You would still have an issue where there is simply no functionality to killswitch all those novel APIs of arguable safety, and tell the browser to shut down any script not explicitly listed as allowed on the site.

Re:Barclays Bank Using Internet Archive as CDN for JavaScrip... by simonw on Friday July 03, 2020 @04:54PM (#23727538)
"tell the browser to shut down any script not explicitly listed as allowed on the site"

Isn't that what CSP headers are for?

Re:Barclays Bank Using Internet Archive as CDN for JavaScrip... by baybal2 on Friday July 03, 2020 @06:56PM (#23728338)
CSP has been an inconsistent, ever growing standard, with a history of implementation breakages. I think only CSP 3.0, and a long WIP safe types standard have approached the level of being actually useful.

I saw websites with a screen long CSP header to work around standard's inconsistencies like frame-src/child-src, and form redirects. I think it's only a matter of time when somebody will find a chink in that weak armour.

The lack of sane by-default policy makes you vulnerable the moment attacker finds a way to redirect a browser to a non-CSP protected page on your domain. Mitigations exist, but... many buts.

Reflection attacks, when attacker injects your own hashed scripts, and data exfiltrating css on pages where they shouldn't be are still possible in various scenarios unless you inline all scripts, and set CSP per every URL.

Other data exfiltration sources, and injection sinks keep being found few times a year.

CSP is a paint over rust.