vendor:
WebKit
by:
Anonymous
7.5
CVSS
HIGH
Cross-Site Scripting (XSS)
79
CWE
Product Name: WebKit
Affected Version From: WebKit revision 246194
Affected Version To: Safari 12.1.1
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: N/A
2019
FrameLoader::detachChildren() Vulnerability
When a cached page is being restored, and the page that's being navigated away is not cacheable, there exists a time frame during which two documents are attached to the same frame. If an attacker finds a way to run JS during this time frame, she will be able to use one of the documents to execute JavaScript in the context of the other one. The attack has a restriction that significantly limits its applicability -- a victim page should load a (potentially sandboxed) <iframe> with attacker-controlled content, so the attacker's JS has a chance to run inside Document::prepareForDestruction.
Mitigation:
Ensure that all frames are properly detached from the document before transitioning to a new page.