[Zoom] Force join meeting vulnerability via GET request for an image to localhost
The video conferencing software's local web server accepts a GET request to a fixed localhost port to join a meeting, and its website triggers this by loading an image, which browsers allow cross-origin. Any website can therefore force a user who has the software installed into a video call with their camera active, without user interaction.
Originally disclosed on Mozilla
- Fixed in 7 months
- Paid in 3 months
- Disclosed after 7 months
Created attachment 9059490
Screenshot 2019-03-26 19.23.24.png
VULNERABILITY DETAILS
Chrome/FireFox/Safari allows CORS bypass on image requests made against localhost
This was originally discovered while researching a security vulnerability in a very popular piece of video conferencing software (similar to Skype for Business or Google Hangouts).
The infrastructure of this video conferencing software allows a user to send meeting invites as links to participants.
When participants click the link, it is opened in their browser and the browser is able to launch the user into a video call by opening the companies software on their local machine.
This process only requires the user to have installed the software on their computer, there's no need for the user to have installed an external Firefox plugin.
I was curious about how this process worked, so I began exploring the Javascript that executes in the browser that enables this to happen.
What I found was that the Javascript on the companies site makes an HTTP GET request for an image to the following URL:
http://localhost:19421/launch?action=join&confno=[some conference number]
The reason that the Javascript loads an image instead of making a XMLHttpRequest is because Chrome/FireFox/Safari blocks CORS request against localhost.
Related:
https://bugs.chromium.org/p/chromium/issues/detail?id=67743
In order to bypass this protection, the company instead used the loading of an image.
The screenshot attached shows the pseudo-case-switch statement they use to convey information from the localhost server to the JavaScript running in the browser.
The dimensions of the image returned by the GET request are used by the Javascript to determine the success/failure of the webservers ability to join the user to the call.
For example, a 1x1 image response indicates a sucsess.
This vulnerability can be abused to forcibly join someone to a video call using the following HTML:
<img src="http://localhost:19421/launch?action=join&confno=577781437"/>
Using this vulnerability, any website can effectively DOS a users machine with the following HTML:
<body>
<script>
var attackNumber = "614249281"
setInterval(function(){
console.log("Fired");
var image = document.createElement("img");
// Use a date to bust the browser's cache
var date = new Date();
image.src = "http://localhost:19421/launch?action=join&confno=" + attackNumber + "&" + date.getTime();
document.body.appendChild(image);
}, 1);
</script>
</body>
Using the vulnerability described above, a malicious attacker is able to forcibly join anyone with the vulnerable software installed (a majority of users) into a video call with their camera active by default. No user interaction required besides navigating to an impacted site.
It's important to note, that the company with the impacted software has over 650,000 business customers and over 85% of the top 200 US universities. As of 2015, they had over 35 million active users.
VERSION
FireFox Version: 66.0.3 (64-bit)
Operating System: macOS Mojave 10.14.3 (18D109)
REPRODUCTION CASE
Run any local web server that is hosting an image.
Create an image tag that makes a CORS request for that resource from some other domain.
NOTE:
I understand that this may be a "works as intended" feature, but given the potential implications of this "feature" being maliciously abused on the local machines of users, I felt obligated to inform the Firefox and Chrome security team.
I have no idea what other features that this localhost server running on millions of users computers might be capable of or what vulnerabilities may exist that can be exploited.
DETAILS FROM THE CHROME SECURIT TEAM:
The feedback from the Chrome Security Team about this issue can be summarized in this comment made by [address removed]:
> At the moment there isn't a whole lot that Chrome can do about this. One proposal that has been made is CORS-RFC1918 https://wicg.github.io/cors-rfc1918/. +mkwst@ who wrote that and may have more thoughts to add here.
Here are some other examples in support for RFC1918:
- https://bugs.chromium.org/p/project-zero/issues/detail?id=693&redir=1
- https://portswigger.net/blog/exposing-intranets-with-reliable-browser-based-port-scanning
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
The local web server exposes a state-changing action over an unauthenticated GET request, and the website triggers it via an image load, which browsers do not block cross-origin.
Impact
An attacker could force any user with the software installed into a video call with their camera active, without user interaction beyond visiting a page, and could repeatedly trigger joins to disrupt the machine.
What the attacker needed
Victim has the video conferencing software installed; victim visits a malicious page; local server listens on a fixed port
The fix
The local server should require a user confirmation or a nonce for join actions and should not accept state-changing GET requests from arbitrary origins.
How it was found
- Install the video conferencing software so its local server runs.
- Visit a malicious page containing an image tag pointing at the localhost launch URL.
- The browser loads the image, sending the GET request to the local server.
- The local server joins the user to the specified meeting.
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 visit a website, your browser normally stops that site from reading data from other sites, including services running on your own computer. But loading an image is allowed across sites. This software runs a small web server on your machine that joins meetings when it receives a simple web request, so a malicious page can make your browser send that request just by showing an image, and you end up in a call.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.