vendor:
WebKit
by:
Project Zero
8.8
CVSS
HIGH
Command Execution
78
CWE
Product Name: WebKit
Affected Version From: WebKit revision 246194
Affected Version To: Safari version 12.1.1 (14607.2.6.1.1)
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: N/A
2019
WebKit Editor Command Execution Vulnerability
This vulnerability allows an attacker to execute the 'InsertHTML' command and run JavaScript in the context of the victim page. This is possible due to the fact that the method checks that the 'document' argument is the document that's currently displayed on the page, but it does so before the 'updateStyleIfNeeded' call.
Mitigation:
Ensure that the 'document' argument is the document that's currently displayed on the page after the 'updateStyleIfNeeded' call.