Skip to main content

     


Web Security Assessment Tool, Bypass 403

A cutting-edge utility designed exclusively for web security aficionados, penetration testers, and system administrators. WebSecProbe is your advanced toolkit for conducting intricate web security assessments with precision and depth. This robust tool streamlines the intricate process of scrutinizing web servers and applications, allowing you to delve into the technical nuances of web security and fortify your digital assets effectively.

This tool is a Proof of Concept and is for Educational Purposes Only.


WebSecProbe is designed to perform a series of HTTP requests to a target URL with various payloads in order to test for potential security vulnerabilities or misconfigurations. Here's a brief overview of what the code does:

  • It takes user input for the target URL and the path.
  • It defines a list of payloads that represent different HTTP request variations, such as URL-encoded characters, special headers, and different HTTP methods.
  • It iterates through each payload and constructs a full URL by appending the payload to the target URL.
  • For each constructed URL, it sends an HTTP GET request using the requests library, and it captures the response status code and content length.
  • It prints the constructed URL, status code, and content length for each request, effectively showing the results of each variation's response from the target server.
  • After testing all payloads, it queries the Wayback Machine (a web archive) to check if there are any archived snapshots of the target URL/path. If available, it prints the closest archived snapshot's information.

Does This Tool Bypass 403 ?

It doesn't directly attempt to bypass a 403 Forbidden status code. The code's purpose is more about testing the behavior of the server when different requests are made, including requests with various payloads, headers, and URL variations. While some of the payloads and headers in the code might be used in certain scenarios to test for potential security misconfigurations or weaknesses, it doesn't guarantee that it will bypass a 403 Forbidden status code.

In summary, this code is a tool for exploring and analyzing a web server's responses to different requests, but whether or not it can bypass a 403 Forbidden status code depends on the specific configuration and security measures implemented by the target server.


Click to expand: Payload Breakdown

Here's a brief breakdown of the payloads:

  • Empty String:

    • An empty string as a payload.
  • URL Encoding (%2e):

    • URL encoding of a dot (.) concatenated with the path.
  • Path with Slash (/):

    • Path followed by a slash (/).
  • Double Slash (//):

    • Double slash before and after the path.
  • Path with Current Directory (./):

    • Current directory (./) before and after the path.
  • Request Header (-H X-Original-URL):

    • X-Original-URL header with the path.
  • Request Header (-H X-Custom-IP-Authorization):

    • X-Custom-IP-Authorization header with the IP address 127.0.0.1.
  • Request Header (-H X-Forwarded-For):

  • Request Header (-H X-rewrite-url):

    • X-rewrite-url header with the path.
  • URL Encoding (%20 and %09):

    • URL encoding with space (%20) and tab (%09).
  • Query Parameter (?):

    • Query parameter with a question mark (?).
  • Path with HTML Extension (.html):

    • Path with .html extension.
  • Path with Query String (/?anything):

    • Path followed by a query string.
  • Fragment Identifier (#):

    • Fragment identifier with a hash (#).
  • POST Request Header (-H Content-Length:0 -X POST):

    • Content-Length header set to 0 and a POST request.
  • Wildcard (*):

    • Wildcard after the path.
  • Path with PHP Extension (.php):

    • Path with .php extension.
  • Path with JSON Extension (.json):

    • Path with .json extension.
  • HTTP Method (-X TRACE):

    • TRACE HTTP method.
  • Request Header (-H X-Host):

    • X-Host header with the IP address 127.0.0.1.
  • Path Traversal (..;/):

    • Path traversal.
  • Whitespace at the Beginning (" " + self.path):

    • Whitespace added at the beginning of the path.
  • Path with Semicolon (;):

    • Semicolon added before and after the path.
  • Path with Extra Slashes:

    • Test for bypassing by adding extra slashes (e.g., //path).
  • Path with URL-encoded Slash:

    • Use URL-encoded slash to bypass (e.g., %2Fpath).
  • Path with Double URL-encoded Slash:

    • Use double URL-encoded slash (e.g., %252Fpath).
  • Path with Path Parameter:

    • Add a path parameter (e.g., /path;parameter).
  • Path with Query Parameter in Path:

    • Add a query parameter within the path (e.g., /path?parameter).
  • Path with Additional Dots:

    • Add additional dots in the path (e.g., /path/../path).
  • Path with Unicode Encoding:

    • Use Unicode encoding to represent characters (e.g., %u002Fpath).
  • Path with Double URL-encoded Dot:

    • Use double URL-encoded dot (e.g., %252E).
  • Path with URL-encoded Null Byte:

    • Use URL-encoded null byte (e.g., %00).
  • Path with Hex Encoding:

    • Use hex encoding for characters in the path (e.g., /path%2Ehtml).

This list covers a variety of common techniques used in web security testing. However, the effectiveness of these payloads depends on the specific vulnerabilities or misconfigurations present in the target system.


OS compatibility :

Requirements:

⭔ PYPI Installation : https://pypi.org/project/WebSecProbe/


pip install WebSecProbe

How To Run On CLI:

WebSecProbe <URL> <Path>

Example:

WebSecProbe https://example.com admin-login

Python Code

from WebSecProbe.main import WebSecProbe

if __name__ == "__main__":
    url = 'https://example.com'  # Replace with your target URL
    path = 'admin-login'  # Replace with your desired path

    probe = WebSecProbe(url, path)
    probe.run()

Contribution:

Contributions and feature requests are welcome! If you encounter any issues or have ideas for improvement, feel free to open an issue or submit a pull request.

😴🥱😪💤 ToDo:

  • Bypass 401 & header

💬 If having an issue Chat here

Discord Server

⭔ Snapshots:


If you find this GitHub repo useful, please consider giving it a star! ⭐️

Release files for WebSecProbe 0.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for WebSecProbe 0.0.12
File Size Uploaded
WebSecProbe-0.0.12.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for WebSecProbe 0.0.12
File Interpreter ABI Platform
WebSecProbe-0.0.12-py3-none-any.whl Python 3 none any Details

Total release size: 16.0 kB

Release files / WebSecProbe-0.0.12.tar.gz

Download URL WebSecProbe-0.0.12.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
457e2d73a25a51568dc7c9e2767f1e31c6ec99b71263e5596eea7a73a3fba0eb
BLAKE2b-256 checksum
How to use checksums
4d2f3c57e3583db3ba751bebb31533f01137e5a82704a820c4b7af5d57c6f213
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release files / WebSecProbe-0.0.12-py3-none-any.whl

Download URL WebSecProbe-0.0.12-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42565ec696a83decce77e423b8a02aea74fb0ee17fc87068825d70f3c24f228d
BLAKE2b-256 checksum
How to use checksums
9f0daf20fa0af0eb85407eb3ce77fade19db52f3e7ef300b80e0a680fd094253
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.0.12 This release

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page