nerdexam
EC-Council

312-50V10 · 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. The core risk of embedding third-party JavaScript from an external server is a supply-chain attack. Because the scripts live on the marketing company's servers-not the company's own infrastructure-the in-house security team has no visibility into or control over them. If the…

Hacking Web Applications

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

(32 responses)
  • A
    69% (22)
  • B
    3% (1)
  • C
    13% (4)
  • D
    16% (5)

Explanation

The core risk of embedding third-party JavaScript from an external server is a supply-chain attack. Because the scripts live on the marketing company's servers-not the company's own infrastructure-the in-house security team has no visibility into or control over them. If the marketing company's servers are compromised, an attacker can silently alter the script content (e.g., inject a keylogger or skimmer). The malicious code then runs in every visitor's browser with full access to the page DOM, form fields, and cookies-all without the monthly internal security review ever catching it. Choice B is wrong because browser same-origin policy prevents external scripts from directly accessing the company's backend servers; they run client-side. Choice C is wrong because even reputable third parties can be breached. Choice D is wrong because network traffic volume is not the primary security concern here.

Topics

#third-party scripts#supply chain risk#JavaScript#web security

Community Discussion

No community discussion yet for this question.

Full 312-50V10 Practice