How to find and exploit XSS in Electron JavaScript applications to obtain RCE
We will now begin our journey into Electron applications. Since Aurora’s sources are available, we can directly download the build environment, which is also the most up-to-date one.
Downloading the source code and running the application
Follow the instructions on the GitHub page (https://github.com/cyb3rfox/Aurora-Incident-Response) to download the source code. Follow these steps:
- Install
npm
, the default package manager for the runtime environment Node.js, withapt
:$ sudo apt install nodejs npm
Clone
the repository usinggit
, enter the directory withcd
, andcheckout
the specific commit we used in this chapter – that is,bb4533e81b16aa37c2baba6f73fce97c8b1b1d3d
(the latest at the time of writing):$ git clone https://github.com/cyb3rfox/Aurora-Incident-Response && cd Aurora-Incident-Response && git checkout bb4533e81b16aa37c2baba6f73fce97c8b1b1d3d...