Inappropriate implementation in Compositing (CVE-2023-7013)
An iframe's content could be painted outside its boundary when the iframe element had CSS '-webkit-box-reflect' and 'overflow-x', even across origins. An attacker could draw their own content outside the area specified by the host.
Originally disclosed on Chrome VRP
- Fix shipped in 57 days
-------------------------
VULNERABILITY DETAILS
The content of the iframe should not be painted outside of the iframe element, but the iframe content is drawn outside of its boundary.
It happens when the iframe element has CSS "-webkit-box-reflect" and "overflow-x".
It also happens when the host and iframe have different domains (i.e., cross-origin).
This bug is a security-bug because it allows the attacker to draw their own content outside the area specified by the host.
VERSION
Chrome Version: 118.0.5976.0
Operating System: Linux (Ubuntu 20.04)
REPRODUCTION CASE
- Download host.html and iframe.html into the same directory.
- Open "host.html" in Chromium browser.
CREDIT INFORMATION
Externally reported security bugs may appear in Chrome release notes. If
this bug is included, how would you like to be credited?
Reporter credit: Suhwan Song
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a compositing bug where the combination of '-webkit-box-reflect' and 'overflow-x' on an iframe fails to clip the iframe's painted content to its bounds.
Impact
An attacker could draw their own content outside the area specified by the host, potentially misleading users, and this works even when the host and iframe have different domains.
What the attacker needed
Victim uses Chromium browser; attacker controls iframe content; host page uses specific CSS properties
How it was found
- Download host.html and iframe.html into the same directory.
- Open host.html in Chromium browser.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A web page can include another page inside a box called an iframe. Normally the inner page must stay inside that box. Here, a styling trick made the inner page's content spill outside the box, so a malicious site could show its own content in places the outer site did not intend.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.