OpenRedireX
A fuzzer for detecting open redirect vulnerabilities
🏗️ Install
⛏️ Usage
📚 Dependencies
Install
git clone https://github.com/devanshbatham/openredirex
cd openredirex
sudo chmod +x setup.sh
./setup.sh
Usage
The script is executed from the command line and has the following usage options:
openredirex [-p payloads] [-k keyword] [-c concurrency]
-p,--payloads: File containing a list of payloads. If not specified, a hardcoded list is used.-k,--keyword: Keyword in URLs to replace with payload. Default is "FUZZ".-c,--concurrency: Number of concurrent tasks. Default is 100.
The script expects a list of URLs as input. Each URL should contain the keyword specified by the -k option. The script replaces the keyword with each of the payloads, and attempts to fetch the modified URL.
Example usage:
cat list_of_urls.txt | openredirex -p payloads.txt -k "FUZZ" -c 50
List of URLs should look like below:
cat list_of_urls.txt
https://newsroom.example.com/logout?redirect=FUZZ
https://auth.example.com/auth/realms/sonatype/protocol/openid-connect/logout?redirect_uri=test
https://exmaple.com/php?test=baz&foo=bar
This example reads URLs from the file list_of_urls.txt, replaces all the values of the parameters to FUZZ (if --keyword is not supplied), then again replaces the keyword FUZZ or the supplied keyword with each payload from payloads.txt, and fetches each URL concurrently, with a maximum of 50 concurrent tasks.
Dependencies
The script uses the following libraries:
argparsefor handling command-line arguments.aiohttpfor making HTTP requests.tqdmfor displaying progress.concurrent.futuresfor handling concurrent tasks.asynciofor managing asynchronous tasks.
You need to install these dependencies before running the script. Most of them are part of the standard Python library. You can install aiohttp and tqdm using pip:
pip install aiohttp tqdm
You can use this script to check for open redirects in web applications. However, you should only use it on systems that you have been given explicit permission to test.
Metadata
Release files for openredirex 2023.8.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openredirex-2023.8.9.tar.gz | 5.4 kB | Without provenance | Details for openredirex-2023.8.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openredirex-2023.8.9-py3-none-any.whl | Python 3 | none | any | Details for openredirex-2023.8.9-py3-none-any.whl |
Total release size: 11.2 kB
Release files / openredirex-2023.8.9.tar.gz
| Download URL | openredirex-2023.8.9.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db35857f90341a658f11d5d7c9585571d68fbb26ef8c2d5acf519bfdd51cd715
|
|
BLAKE2b-256 checksum How to use checksums |
fc2084228a0741c473b85517aed51fe7db174475dc43a0ae605f5c047c7b1e6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / openredirex-2023.8.9-py3-none-any.whl
| Download URL | openredirex-2023.8.9-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7fcb3ca8521c769fbe6ed8fca5b87a4988503896571fe483e28a66ad41c2d730
|
|
BLAKE2b-256 checksum How to use checksums |
dd91a03d2409a04632bfd7675c061d3d467bc6bdb42a28b917c17a8d65efa8a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for openredirex 2023.8.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.