vendor:
N/A
by:
Anonymous
8.8
CVSS
HIGH
User-Agent Shadow Tree Leakage
200
CWE
Product Name: N/A
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
Platforms Tested: N/A
2020
Leaking Elements from User-Agent Shadow Trees
When the currently focused element is an <input>, `selection.rootEditableElement()` in [1] might point to a node inside the <input>'s user-agent shadow DOM tree. Then `insertFragmentForTestRendering` is called, which might have side effects, e.g., if the inserted fragment contains an <iframe> element its "onload" handler will be called synchronously, and it's possible to reach the user-agent shadow root object by following the ancestor chain from the <iframe>. When an attacker has access to the shadow root, she can use it to leak other elements that are only intended to be accessible from the user-agent shadow tree, e.g., the <input> element in [3].
Mitigation:
Ensure that user-agent shadow trees are not accessible to attackers.