Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Attacking and Exploiting Modern Web Applications

You're reading from  Attacking and Exploiting Modern Web Applications

Product type Book
Published in Aug 2023
Publisher Packt
ISBN-13 9781801816298
Pages 338 pages
Edition 1st Edition
Languages
Authors (2):
Simone Onofri Simone Onofri
Profile icon Simone Onofri
Donato Onofri Donato Onofri
Profile icon Donato Onofri
View More author details

Table of Contents (14) Chapters

Preface 1. Part 1: Attack Preparation
2. Chapter 1: Mindset and Methodologies 3. Chapter 2: Toolset for Web Attacks and Exploitation 4. Part 2: Evergreen Attacks
5. Chapter 3: Attacking the Authentication Layer – a SAML Use Case 6. Chapter 4: Attacking Internet-Facing Web Applications – SQL Injection and Cross-Site Scripting (XSS) on WordPress 7. Chapter 5: Attacking IoT Devices – Command Injection and Path Traversal 8. Part 3: Novel Attacks
9. Chapter 6: Attacking Electron JavaScript Applications – from Cross-Site Scripting (XSS) to Remote Command Execution (RCE) 10. Chapter 7: Attacking Ethereum Smart Contracts – Reentrancy, Weak Sources of Randomness, and Business Logic 11. Chapter 8: Continuing the Journey of Vulnerability Discovery 12. Index 13. Other Books You May Enjoy

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:

  1. Install npm, the default package manager for the runtime environment Node.js, with apt:
    $ sudo apt install nodejs npm
  2. Clone the repository using git, enter the directory with cd, and checkout 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...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}