RedirX
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.
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.
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.
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
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.