Purpose
Tests URL parameters for unvalidated redirect vulnerabilities by injecting attacker-controlled domains and following redirect chains manually. reqwest is configured with redirect policy none so each Location header can be inspected individually. Findings are classified as open_redirect (3xx to attacker domain) or potential (body contains attacker domain).
Output
redirect/results-<timestamp>.json— per-parameter findings with classification, redirect chain, and final destination.
CLI
mg-redirect acme-bounty
mg-redirect acme-bounty --evil-domain evil.example.com
Notes
- Run mg-crawl first to source URL parameters from the corpus.
- Redirect chains are followed manually, step by step, to capture each intermediate hop.
- Default evil domain is a placeholder; set
--evil-domainto a domain you control for confirmed exploitability.