XSS to RCE
A cross-site scripting (XSS) vulnerability existed in the display name field of a conferencing application, affecting both the web and native desktop clients. An attacker could inject a script that, when executed in the native client, leveraged Node.js to run arbitrary code on the victim's machine.
Published on matatall.com
I accidentally triggered a cross-site scripting (XSS) vulnerability in <conf provider X> that worked when using the web application as well as the native OS X application (and possibly additional clients). Nowadays, XSS -> Remote Code Execution (RCE) is possible thanks to Node.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application failed to properly sanitise user-supplied display names before rendering them in the meeting interface, and the native client executed the injected script in a Node.js context with access to system functions.
Impact
An attacker could execute arbitrary code on the computers of meeting participants using the native client, and the exploit could work on any publicly known or guessable meeting ID.
What the attacker needed
Victim joins a meeting; attacker can set display name; native client uses Node.js
The fix
The vulnerability was fixed.
How it was found
- Enter a meeting with a display name containing an XSS payload.
- Observe that the payload executes in the web and native clients.
- Use a debug console payload to explore the impact.
- Craft a payload that loads and executes remote JavaScript.
- Join any existing meeting with the payload as the display name.
- Victims in the meeting see an alert and, in the native app, the calculator opens.
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 write-up has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is a flaw where a website lets an attacker insert their own JavaScript code, which then runs in other users' browsers. Here, the attacker put code in their display name, and when other people joined the meeting, that code ran on their computers. Because the desktop app was built with Node.js (a tool that can run system commands), the attacker could go beyond the browser and open programs like the calculator.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.