Cyber Risks · PortSwigger Research

Hackability inspector

Summary: PortSwigger researcher Gareth Heyes released a Hackability inspector that enumerates JavaScript objects in any rendering engine, using ES5/6 features and bruteforce to find properties and ordering them by interest against a list of known window properties. While testing Safari with the tool for the __proto__ bug, he found that accessing a cross-domain object throws an exception containing the frame's origin, letting an attacker read the origin of any iframe or cross-domain window, and the technique works with popups where X-Frame-Options would not apply.

Key Takeaway: A browser exception that leaks a frame's origin hands an attacker a map of every cross-domain iframe and popup on a page, and the popup variant sidesteps X-Frame-Options entirely.

Read the original at PortSwigger Research ↗

Topics
Vulnerabilities & Patching
Related