Google Chrome: Type confusion in HTMLKeygenElement::shadowSelect()
Chrome bug:
https://bugs.chromium.org/p/chromium/issues/detail?id=666246
PoC:
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