Skip to content
Misconfiguration Advisory Intermediate CVE-2023-7013

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.

Suhwan Song Follow

Originally disclosed on Chrome VRP

Bounty$1,000 Medium View original
  • 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

  1. Download host.html and iframe.html into the same directory.
  2. 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

The original report as published on the Chromium issue tracker, by Suhwan Song. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

  1. Download host.html and iframe.html into the same directory.
  2. 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.

More by Suhwan Song

View all

1 more disclosed report, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.