You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!--@license https://github.com/t2ym/thin-hook/blob/master/LICENSE.mdCopyright (c) 2017, 2018, Tetsuya Mori <t2y3141592@gmail.com>. All rights reserved.--><!DOCTYPE html><html><head><metacharset="utf-8"><scriptsrc="../../thin-hook/hook.min.js?no-hook=true&hook-name=__hook__&context-generator-name=method&discard-hook-errors=false&fallback-page=index-fb.html&hook-property=true&hook-global=true&hook-prefix=_pp_&compact=true"></script><scriptcontext-generatorsrc="no-hook-authorization.js?no-hook=true"></script><scriptcontext-generatorsrc="context-generator.js?no-hook=true"></script><scriptcontext-generatorsrc="bootstrap.js?no-hook=true"></script><!-- NEW --><scriptsrc="hook-callback.js?no-hook=true"></script><scriptsrc="hook-native-api.js?no-hook=true"></script></head><body></body></html>
Even if hook.min.js and other hooking infrastructure script are inexistent in DOM, they are installed before their script tags are overwritten by srcdoc document.
The text was updated successfully, but these errors were encountered:
[vulnerability] Scripts in
iframe srcdoc
are not hookedRoot Cause
iframe.setAttribute('srcdoc', '<HTML>')
is not hookediframe.srcdoc
property is not hookedsrcdoc
has URIabout:srcdoc
and bypasses Service WorkerImplementation
hook.parameters.baseURI
- URL object for the entry pagehook.parameters.emptyDocumentUrl = new URL('./empty-document.html', baseURI);
hook.parameters.bootstrap = "<script>frameElement.dispatchEvent(new Event('srcdoc-load'))</script>";
hook.parameters.onloadWrapper = "event.target.addEventListener('srcdoc-load', () => { $onload$ })";
hook.min.js?service-worker-initiator={Entry page URL}
- automatically setsrcdoc
toonload
and setsrc
withemptyDocumentUrl
iframe.setAttribute('srcdoc')
iframe.srcdoc
propertyonload
event handlerAddEventHandler('load', handler)
(Fix "load" event handler is called prematurely for iframe.srcdoc #243)contentWindow
andcontentDocument
javascript:
in src attribute and propertyExamples
bootstrap.js
Notes
hook.min.js
and other hooking infrastructure script are inexistent in DOM, they are installed before their script tags are overwritten bysrcdoc
document.The text was updated successfully, but these errors were encountered: