Skip to main content

XSSBase: A tool for testing XSS vulnerabilities on websites.

Project description

XSSbase

XSSbase is a professional tool designed to help web developers scan for Cross-Site Scripting (XSS) vulnerabilities. It automates the process of testing web applications for XSS vulnerabilities by using a set of predefined payloads or custom payloads provided by the user.

  • Full Documentation: Link
  • Basic XSS (Cross-Site Scripting) Vulnerable HTML Code: Link

Features

  • Automated XSS Testing: Scans web applications for XSS vulnerabilities using a list of predefined or user-specified payloads.
  • Platform Support: Currently supports Windows.
  • Custom Payloads: Allows users to provide their own payloads for testing.
  • Error Handling: Handles stale element reference errors gracefully and retries automatically.
  • Comprehensive Reports: Provides detailed information about detected XSS vulnerabilities.
  • Payload List URL: Displays a URL to a list of useful XSS payloads.

Benefits

  • Time-Saving: Automates the tedious process of testing for XSS vulnerabilities, saving developers valuable time.
  • Improved Security: Helps in identifying and fixing XSS vulnerabilities, enhancing the overall security of web applications.
  • Customizable: Users can use their own payloads for testing, making it highly customizable for specific needs.

Payload Examples

Here are a few sample XSS payloads that XSSbase can use:

  1. <script>alert('XSS')</script>
  2. <img src=x onerror=alert('XSS')>
  3. <svg onload=alert('XSS')>
  4. "><script>alert('XSS')</script>
  5. <body onload=alert('XSS')>

For a comprehensive collection of XSS payloads, refer to the payloadbox XSS payload list.

Payload List

A comprehensive list of useful XSS payloads is available at: Click Here

Installation

Currently, XSSbase is only compatible with Windows. To install, use the following command:

pip install xssbase

Usage

Basic Usage

To test a URL for XSS vulnerabilities using the predefined payloads:

xssbase --url <URL>

Using Custom Payloads

To test a URL for XSS vulnerabilities using custom payloads from a file:

xssbase --url <URL> --payload <payload-file.txt>

Example

To test http://example.com for XSS vulnerabilities using predefined payloads:

xssbase --url http://example.com

To test http://example.com for XSS vulnerabilities using payloads from custom-payloads.txt:

xssbase --url http://example.com --payload custom-payloads.txt

Arguments

--url: The URL to test for XSS vulnerabilities (required).

--payload: The file containing custom XSS payloads (optional).

License

This project is licensed under the MIT License. See the LICENSE file for details.

Disclaimer

This tool is intended for educational purposes and for use by web developers to secure their own applications. Unauthorized or malicious use is strictly prohibited.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xssbase-5.0.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

xssbase-5.0.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file xssbase-5.0.1.tar.gz.

File metadata

  • Download URL: xssbase-5.0.1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for xssbase-5.0.1.tar.gz
Algorithm Hash digest
SHA256 e1a3e43b3eff3d5b8d00902713086b953586747a4b23377a9c87dc79a306d276
MD5 e8815dd584a2b6521a0dad65b2fe0fe6
BLAKE2b-256 5a34c492c95c1ed03bdc0b47bc97da25ae07e12ca30418abd260bcfef1b9d572

See more details on using hashes here.

File details

Details for the file xssbase-5.0.1-py3-none-any.whl.

File metadata

  • Download URL: xssbase-5.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for xssbase-5.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2ac9ee553a4dd62062e41635e2e4660f4d3f8891bbc4b92d2a52dd1b606609f
MD5 7147e8ff9f6a954c02c3ff3307ccd97a
BLAKE2b-256 87e3ce44a7defad3ff60cd67c5818759629ef5a908e22f10650978158bccb26f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page