QA
Senior LevelWeb Security & Cyber Defense

How do Spectre and Meltdown speculative execution CPU vulnerabilities impact web browsers and SharedArrayBuffer?

❓ Interview Prompt: Explain Spectre / Meltdown, CPU speculative execution side-channels, timing attacks on process memory, and browser isolation requirements (COOP/COEP).

Spectre and Meltdown exploit hardware speculative execution features in modern CPUs to read arbitrary memory across process boundaries:

Impact on Web Browsers:

In JavaScript, attackers used high-resolution timers ('performance.now()') and 'SharedArrayBuffer' to execute cache-timing attacks reading memory across sites co-located in the same renderer process!

Browser Mitigations (Cross-Origin Isolation):

Browsers restricted 'SharedArrayBuffer' unless pages explicitly enable Cross-Origin Isolation via two headers:

1
'Cross-Origin-Opener-Policy: same-origin' (COOP).
2
'Cross-Origin-Embedder-Policy: require-corp' (COEP).

Code Implementation Example

http
HTTP/1.1 200 OK
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp
💡Cross-Origin Isolation HTTP headers enabling SharedArrayBuffer safely.
🎯 Interview Key Takeaway

Enable COOP and COEP HTTP headers to establish Cross-Origin Isolation and mitigate Spectre CPU memory side-channel vulnerabilities.

#Spectre#Meltdown#COOP/COEP#Hardware Security#Senior
Back to all Web Security & Cyber Defense Questions→

More Web Security & Cyber Defense Interview Questions

Beginner LevelSecurity & Web Security

Explain OWASP Top 10 vulnerabilities (XSS, CSRF, SQL Injection) and their defenses.

Beginner LevelSecurity & Web Security

What are the 3 types of XSS (Stored, Reflected, DOM-based) and how do they differ?

Beginner LevelSecurity & Web Security

How do Parameterized Queries (Prepared Statements) prevent SQL Injection attacks?