Security Vulnerabilities Guide

Understanding and fixing common web security vulnerabilities detected by VitaPulse

Low
Cross-Origin-Opener-Policy (COOP)

Isolates your browsing context from cross-origin windows, preventing them from accessing your window object.

Risk

When your site opens a popup or is opened by another site, the two windows can reference each other via window.opener. An attacker can exploit this to navigate your window to a phishing page, access window properties, or perform Spectre-type side-channel attacks to read cross-origin data from memory.

Solution

Set Cross-Origin-Opener-Policy to 'same-origin' to fully isolate your window from cross-origin openers. Use 'same-origin-allow-popups' if your site needs to communicate with popups it opens.

Example
Cross-Origin-Opener-Policy: same-origin
Comments (0)

No messages yet.