# XSS Scanner | Detects Cross-Site Scripting Vulnerabilities In Website

**URL:** <https://onehack.st/t/xss-scanner-detects-cross-site-scripting-vulnerabilities-in-website/178113>\
**Category:** Tools & Scripts\
**Tags:** tools, programming, hacking, freebies\
**Created:** [April 8, 2021, 11:39am UTC](https://onehack.st/t/xss-scanner-detects-cross-site-scripting-vulnerabilities-in-website/178113 "2021-04-08T11:39:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prometheus](https://onehack.st/user_avatar/onehack.st/prometheus/32/34950_2.png) [@Prometheus](https://onehack.st/u/Prometheus)\
**Post date:** [April 8, 2021, 11:39am UTC](https://onehack.st/t/xss-scanner-detects-cross-site-scripting-vulnerabilities-in-website/178113/1 "2021-04-08T11:39:48Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/6/8/683f8a6703c6852a4104c0dafbb25c8a0b8da377.jpeg)

Cross-Site Scripting (XSS) is one of the most well known web application vulnerabilities. It even has a dedicated chapter in the OWASP Top 10 project and it is a highly chased vulnerability in bug bounty programs.

The scanner gets a link from the user and scan the website for XSS vulnerability by injecting malicious scripts at the input place. The injection happens in headless browser named Chromium and controlled by Puppeteer automation.

It works in two steps:

1. Find the target: In this first step, the tool tries to identify all the places at the page including injectable parameters in forms, URLs, headers, etc.
2. Test for XSS: For each place discovered in the previous step, the scanner will try to detect if the parameters are vulnerable to Cross-Site Scripting. The tool injects a piece of JavaScript code, including some special HTML characters (\>, \<, “, ‘) and it will try to see if they are returned in the response page without sanitization. If the tool detects at least one vulnerability, it will return that the website have XSS vulnerability.

**Technologies**

- Puppeteer
- Javascript
- NodeJS
- Express

**How to install**

Clone the repository:

```auto
git clone https://github.com/MariaGarber/XSS-Scanner.git

```

Enter the clonned folder:

```auto
cd XSS-Scanner

```

Install the dependencies:

```auto
npm install

```

Run the application:

```auto
npm start

```

Open the browser at [http://localhost:4000/](http://localhost:4000/)

## GitHub:

> **[GitHub - MariaGarber/XSS-Scanner: XSS scanner that detects Cross-Site Scripting...](https://github.com/MariaGarber/XSS-Scanner)**
>
> XSS scanner that detects Cross-Site Scripting vulnerabilities in website by injecting malicious scripts
