: The script accesses the document.cookie object, which often contains session identifiers, login keys, and personalization data.
A is a malicious tool used by threat actors to hijack user sessions by exfiltrating browser cookies. This type of attack is a form of Cross-Site Scripting (XSS) , where an attacker injects JavaScript into a trusted website to capture sensitive data. How the Script Works
: The attacker finds an XSS vulnerability on a target site or uses spear-phishing emails to deliver the script.