vendor:
N/A
by:
N/A
3.1
CVSS
MEDIUM
Unload Event Handler Execution
20
CWE
Product Name: N/A
Affected Version From: WebKit trunk
Affected Version To: WebKit trunk
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: N/A
2020
Frame::setDocument() Unload Event Handler Execution
The Frame::setDocument() function calls Document::prepareForDestruction, which might trigger JavaScript execution via a nested frame's 'unload' event handler. The m_documentIsBeingReplaced flag is used to prevent the execution of the 'unload' event handler.
Mitigation:
Ensure that the m_documentIsBeingReplaced flag is set before calling the Document::prepareForDestruction function.