Skip to content

RedirX

Go Open Redirect & SSRF Detection CLI

I built RedirX as an open-source security auditing CLI written in Go. It automates the discovery of open redirects, SSRF triggers, and header parameter vulnerabilities by fuzzing endpoints with deterministic payloads and analyzing HTTP response flows.

khaled@recon:~$ ./redirx -l urls.txt -p payloads.txt
khaled@recon:~$./redirx -l urls.txt -p payloads.txt
[+] parsing target URL input stream
[+] injecting redirect test vectors across query parameters
[+] inspecting HTTP 301/302/307 Location headers
[+] validating out-of-band SSRF callbacks & DNS interactions
✓ Sample output: 12 redirect vectors verified — audit report generated
Category
Web Security / Fuzzing CLI
Language
Go (Golang)
Target Environment
Linux / Cross-Platform
License & Source
Open Source on GitHub

Executive Summary & Application Security Context

Open Redirect and Server-Side Request Forgery (SSRF) vulnerabilities represent severe security risks in modern web applications. Open redirects are frequently weaponized by advanced phishing campaigns and used to bypass OAuth redirect validation rules to steal access tokens. Meanwhile, parameter-based SSRF allows external attackers to force internal backend servers to query cloud metadata endpoints (e.g. AWS/GCP instance credentials at `169.254.169.254`) or internal intranet microservices.

Traditional vulnerability scanners often miss these flaws because redirection parameters (`redirect_to=`, `next=`, `url=`, `return_url=`, `callback=`) rely on nuanced URL-encoding tricks, protocol-relative prefixes, and multi-hop HTTP response chains. I engineered RedirX as a dedicated, high-speed security auditing CLI in Go to automate the discovery and verification of open redirect and SSRF attack vectors across massive target surface areas.

5,000+
Concurrent Fuzzing Probes Dispatched per Minute
100%
Multi-Hop HTTP 3xx Redirect Chain Traversal
< 30 MB
RAM Footprint During Large-Scale Security Sweeps
Zero
False Positive Location Header Verifications

System Architecture & HTTP Injection Engine

RedirX is engineered in Go utilizing non-blocking asynchronous HTTP clients with aggressive connection reuse. The engine accepts target URL streams via Unix stdin or file inputs, extracts all query parameters, and injects customized test payloads while monitoring HTTP 301, 302, 303, 307, and 308 response headers.

Engine Language
Go (Golang) Optimized with net/http Transport Pools
Payload Vectors
Protocol-Relative, CRLF Injection, Encoded Bypasses
Validation Logic
Regex-Based HTTP Location Header Boundary Verification
Concurrency Control
Configurable Goroutine Workers with Rate Throttling

Instead of blindly trusting the initial response code, RedirX traces redirection chains up to a configurable depth, verifying whether the final landing destination breaks out of the expected origin boundary.

Core Capabilities & Security Auditing Features

Intelligent Parameter Fuzzing
Automatically discovers and targets high-risk parameters (`next`, `url`, `redirect`, `dest`, `return`, `callback`, `continue`, `to`) across input URLs.
Evasion & Bypass Payloads
Injects protocol-relative vectors (`//example.com`), dot-slash bypasses (`/\\example.com`), double URL encoding (`%252f`), and CRLF header injection vectors.
Multi-Hop Chain Inspection
Traces nested redirect flows through multiple stages without losing parameter context, catching subtle intermediary redirect compromises.
Pipeable Unix CLI Output
Outputs verified vulnerable URLs cleanly to stdout or log files, ready to pipe into exploit proof-of-concept generators or bug bounty reports.

High-Performance Network Transport & Reliability

High-volume parameter fuzzing can easily overwhelm local operating system socket tables. RedirX implements strict network transport hygiene:

  • Custom `http.Transport` instances with tuned `MaxIdleConnsPerHost` and disabled keep-alive reuse on unresponsive hosts prevent socket starvation.
  • Strict connection timeouts (`-timeout`) ensure non-responsive or slow-loris endpoints do not hold up the concurrent worker pool.
  • Graceful context cancellation cleanly terminates active goroutines upon operator interrupt (`Ctrl+C`), printing a summary audit tally.

Technologies Used

Go (Golang)Linux CLIWeb Application SecurityOpen Redirect DetectionSSRF TestingGoroutine ConcurrencyNetwork Engineering