vendor:
Chromium
by:
Project Zero
7,5
CVSS
HIGH
SOP Bypass
352
CWE
Product Name: Chromium
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: Yes
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2017
Bypassing the Same Origin Policy check in Blink
When an object element loads a JavaScript URL(e.g., javascript:alert(1)), it checks whether it violates the Same Origin Policy or not. The SOP violation check is made in the method HTMLPlugInImageElement::allowedToLoadFrameURL. What was noticed is that there are two uses of document().completeURL for the same URL, and the method guardedDispatchBeforeLoadEvent dispatches a beforeload event. The beforeload event is dispatched before the SOP check, so a malicious page can set the URL of the object element to a javascript: URL, and then set window.event.url to a different URL in the beforeload handler, bypassing the SOP check.
Mitigation:
Ensure that the beforeload event is not used to bypass the SOP check.