312-50V11 · Question #65
Assume a business-crucial web-site of some company that is used to sell handsets to the customers worldwide. All the developed components are reviewed by the security team on a monthly basis. In…
The correct answer is A. External script contents could be maliciously modified without the security team knowledge. Loading third-party JavaScript from external servers introduces a supply chain risk where the external code can be modified maliciously without the host company's knowledge or detection.
Question
Assume a business-crucial web-site of some company that is used to sell handsets to the customers worldwide. All the developed components are reviewed by the security team on a monthly basis. In order to drive business further, the web-site developers decided to add some 3rd party marketing tools on it. The tools are written in JavaScript and can track the customer's activity on the site. These tools are located on the servers of the marketing company. What is the main security risk associated with this scenario?
Options
- AExternal script contents could be maliciously modified without the security team knowledge
- BExternal scripts have direct access to the company servers and can steal the data from there
- CThere is no risk at all as the marketing services are trustworthy
- DExternal scripts increase the outbound company data traffic which leads greater financial losses
How the community answered
(39 responses)- A72% (28)
- B5% (2)
- C8% (3)
- D15% (6)
Why each option
Loading third-party JavaScript from external servers introduces a supply chain risk where the external code can be modified maliciously without the host company's knowledge or detection.
Because the JavaScript files are hosted on the marketing company's servers, the website fetches and executes them at runtime in the user's browser. If those external servers are compromised or the script files are tampered with, the malicious code executes within the context of the host company's site - capable of stealing session tokens, credentials, or payment data from customers. The company's monthly security review only covers their own components, so any change to the external scripts goes undetected.
Client-side JavaScript runs in the user's browser sandbox and does not have direct network access to the company's backend servers or databases; it can only interact with what the browser exposes.
Even reputable third-party providers can be breached or their CDN compromised; assuming trustworthiness eliminates a real and documented attack vector known as a supply chain or watering hole attack.
Increased outbound traffic volume is a minor operational concern compared to the critical risk of malicious code executing in customers' browsers and exfiltrating sensitive data.
Concept tested: Third-party script supply chain security risk
Source: https://owasp.org/www-project-top-ten/2017/A9_2017-Using_Components_with_Known_Vulnerabilities
Topics
Community Discussion
No community discussion yet for this question.