12 vulnerabilities classified as CWE-1022 (使用windows.opener访问指向不可信目标的web链接). AI Chinese analysis included.
CWE-1022 represents a security weakness where web applications generate links to untrusted external sites without adequately restricting the target page’s access to the originating window’s properties. Attackers typically exploit this vulnerability by using the `target="_blank"` attribute to open external links in new tabs, allowing the malicious site to manipulate the `window.opener` object. By modifying critical properties like `window.opener.location`, the attacker can redirect the original user to a phishing site or execute cross-site scripting attacks, effectively hijacking the user’s session or trust. To prevent this, developers must implement the `rel="noopener noreferrer"` attributes on all external links. This practice severs the connection between the new window and the opener, ensuring that the external site cannot access or modify the parent window’s properties, thereby neutralizing the attack vector and preserving user security.
<a href="http://attacker-site.example.com/useful-page.html" target="_blank">window.opener.location = 'http://phishing.example.org/popular-bank-page';Vulnerabilities classified as CWE-1022 (使用windows.opener访问指向不可信目标的web链接) represent 12 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.