vendor:
Safari
by:
Project Zero
7,5
CVSS
HIGH
Same-Origin Policy Violation
16
CWE
Product Name: Safari
Affected Version From: Safari 10.0.3
Affected Version To: Safari 10.0.3
Patch Exists: YES
Related CWE: N/A
CPE: a:apple:safari:10.0.3
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Mac
2017
SOP Violation in Safari 10.0.3
This exploit is a Same-Origin Policy (SOP) violation in Safari 10.0.3. It is possible to bypass the SOP check before the SubframeLoader::requestFrame method is called. This can be done by calling showModalDialog which enters a message loop that may start pending page loads. This allows the frame's document to be changed before frame->script().executeIfJavaScriptURL is called, allowing for a SOP violation.
Mitigation:
Ensure that the SOP check is done after the frame's document is changed.