Fast query of registered URL schemes through XMLHttpRequest for system fingerprinting
Firefox returned different XMLHttpRequest status codes depending on whether a custom URL scheme was registered on the system, letting a page quickly enumerate installed applications. An attacker could use this to build a fingerprint of the victim's machine rather than just the browser.
Originally disclosed on Mozilla
- Fixed in 3 months
- Paid in 3 months
- Disclosed after 3 months
System fingerprinting like https://schemeflood.com/ use a slow variant, the bug enables tracking-services to fast list up all registered URL protocols. The problem on URL scheme fingerprinting is, that it will create a fingerprint for the system and not just the browser.
Tested on Windows 10 with Firefox 92 and Firefox 90.
The problem is that XMLHttpRequest will return different status codes dependent on the registration-state of the protocol or not.
Javascript code snippet:
var scheme = "spotify://dummy";
try {
var ajaxObj = new XMLHttpRequest()
ajaxObj.open("GET", scheme, false);
ajaxObj.send();
} catch (error) {
if (ajaxObj.status === 0) {
console.log("Protocol found: " + scheme);
} else { // regulary ajaxObj.status == 200
console.log("Protocol NOT found: " + scheme);
}
}
A fix would be to disallow XMLHttpRequest requests with protocols others than http, https, ...
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 page could quickly list registered URL protocols and so fingerprint the whole system, not just the browser; the text only demonstrates this on Windows with Firefox 90 and 92.
What the attacker needed
Victim visits a malicious page; Firefox on Windows
The fix
The browser should refuse XMLHttpRequest requests to schemes other than http and https.
How it was found
- Create a synchronous XMLHttpRequest for a custom scheme URL.
- Send the request inside a try/catch block.
- Check the status code: zero means the protocol is registered, otherwise it is not.
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 you click a link like spotify://, your computer opens the Spotify app if it is installed. This report shows that a website could quietly ask the browser to open many such links and watch how the browser responds, learning which apps you have installed. That list of apps is a fingerprint that can identify your specific computer.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.