Hello,

I am wondering about the secuirty considerations for loading third party scripts on a website, and whether they were generally considered mad practice. I am still working on my web secuirty knowledge as I come from an infra background.

Tag managers are commonplace for user analytics I get that, and we can add CSP headers to restrict the scripts which can run, however it seems that when loading scripts form a third party that if they had their devops pipeline compromised and a script with updated to contain malicious code it could then A) run any JavaScript they want on your website, B) bypass CSP headers and start loading other 3rd party scripts. So essentially a third party / supply chain compromise completely pop your website.

Is this theory correct? Or are there other secuirty controls I am missing which could help mitigate?

Share This Discussion

1 Comment

  • bunyfofu69

    November 10, 2021

    Google “Magecart” the king of supply chain JavaScript loading.

    Reply

Leave a Comment

Note: By filling this form and submitting your commen, you acknowledge, agree and comply with our terms of service. In addition you acknowledge that you are willingly sharing your email address with AiOWikis and you might receive notification emails from AiOWikis for comment notifications. AiOWiksi guarantees that your email address WILL NOT be used for advertisement or email marketting purposes.

This site uses Akismet to reduce spam. Learn how your comment data is processed.