An attacker crafts a malicious link containing script code, which is then sent to unsuspecting users. When clicked, the script executes in the context of the user's session on a particular website. This scenario describes a ____________ attack.

  • Cross-Site Request Forgery (CSRF)
  • Cross-Site Scripting (XSS)
  • DNS Spoofing
  • Phishing
The described scenario represents a Cross-Site Scripting (XSS) attack, where an attacker injects malicious script code into a link. When users click the link, the script executes in the context of their sessions on the targeted website. XSS attacks can lead to session hijacking and unauthorized actions. Recognizing and preventing XSS vulnerabilities is critical for maintaining the security of web applications.__________________________________________________
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *