BreachHunter
Pricing Blog Log inSign up
● thermal huntscan engines onlineassessment only — no exploits
  1. Home
  2. Blog
  3. Open Redirect Vulnerability: How Your Own Domain Sends Visitors to a Phishing Page

Guides · ← All guides

Open Redirect Vulnerability: How Your Own Domain Sends Visitors to a Phishing Page

Published: November 14, 2026 · Last reviewed: November 14, 2026 · 7 min read

By the Ingenious AI team

The short answer: An open redirect is a page on your site — usually a login or link-tracking endpoint with a “next”, “url” or “return” parameter — that bounces visitors to whatever URL the parameter contains, including an attacker's. The phishing email then links to your real domain, passes every “check the domain” instinct the victim has, and lands on the fake page only after your site vouches for the jump. BreachHunter's web audit includes a dedicated open-redirect check that feeds its endpoints external URLs and watches where the 30x points.

Run a free BreachHunter assessment on your site →

Redirects are plumbing: after login, send them back where they were going; from the email, route them through the tracker. The parameter that carries the destination is the vulnerability when it accepts absolute external URLs without a list. Attackers prize these because the first hop — the one in the email, the one the mail filter and the human both inspect — is genuinely, verifiably your domain.

This guide covers how the audit's probe constructs its tests, which parameters and shapes it hunts (including the protocol-relative //evil.example trick that naive filters miss), and the fix hierarchy: relative paths by default, allow-lists where external destinations are truly needed.

Why does an open redirect punch above its weight?

Because it launders trust. Phishing's weakest point is the link: users are trained to hover and read domains, and filters score unfamiliar senders and URLs. A link beginning https://your-real-domain/login?next= defeats both — the domain is right, the page it first loads is yours, and the bounce happens fast enough that many victims never register the change of address before the convincing fake login asks for their password.

The same primitive serves quieter abuses: OAuth and SSO flows whose redirect parameters can be pointed off-site leak authorization codes to the attacker's endpoint, converting a “low” redirect into account compromise. That escalation potential — not the bounce itself — is why a check for it sits in the web-audit module next to CORS and host-header tests, and why the fix is taken seriously in reviews even when the parameter looks like mere plumbing.

Relative paths, allow-lists, and the bypasses to test

The robust default: accept only relative paths. If the parameter begins with a single / and contains no scheme or host, the browser cannot leave your origin — the entire vulnerability class evaporates for login-return flows, which almost never need external destinations anyway. Where external destinations are a real feature (a link tracker sending users to merchants), keep a server-side allow-list of permitted hosts and reject everything else to a safe default.

Naive filters fail on shape-shifting input, so test the bypass set the audit knows: //evil.example (protocol-relative — many “must start with /” checks wave it through), /\evil.example, whitespace and control-character prefixes, and your own domain used as a subdomain prefix (your-domain.evil.example). A validator is done when the hostile set bounces to safety and the legitimate set still works — the same both-directions discipline as the CORS fix in the CORS guide.

Worked example: voyageluggage.example

Voyage Luggage's account login accepted a return parameter for the sensible reason of sending shoppers back to their carts. The audit probe appended an external destination and followed the response:

GET /login?return=https://accounts-voyage.example-reset.com
  -> 302 Location: https://accounts-voyage.example-reset.com
Finding: open redirect on authentication flow

The store's developers confirmed no flow ever needed an off-site return, so the parameter became relative-paths-only with a fallback to the account page. The probe set — including the protocol-relative and backslash variants — all landed on-site in retest, and the login-return feature worked exactly as before for real shoppers. The phishing email that had prompted the scan (it used the store's real domain) lost its trick retroactively.

The five actions to take

Closing open redirects without breaking return flows:

  1. Inventory redirect parameters across login, logout, tracking and SSO endpoints — grep for next, return, url, redirect, continue.
  2. Default to relative paths only; reject anything containing a scheme, a host, or a leading // or /\.
  3. Where external destinations are a real feature, enforce a server-side host allow-list with a safe fallback.
  4. Test the bypass set (protocol-relative, backslash, whitespace, look-alike subdomains) as well as the legitimate flows.
  5. Re-scan, and add “no new open redirect parameters” to the code-review checklist for auth work.

Run a free BreachHunter assessment on your site →

Frequently asked questions

Is an open redirect really exploitable if we have no login on that page?

The redirect itself launders any link, login or not: tracking endpoints are abused for phishing and for making malicious URLs inherit your domain's reputation with filters. Login and OAuth flows raise the stakes to credential and code theft, but the baseline finding stands on its own.

Why not just block the string “http” in the parameter?

Because the bypasses do not need it: //evil.example carries no scheme and still leaves your site, and encoded variants dodge substring filters. Shape validation (relative path, or allow-listed host) is the robust rule; string blocking is a sieve.

Our SSO requires external redirect URIs. How do we keep them safe?

With exact-match registration: the IdP pattern of pre-registered, fully-specified redirect URIs compared byte-for-byte, no wildcards or prefix matching. That is an allow-list with the strictest comparison — the same hierarchy, applied at the identity layer.

Does a warning interstitial (“you are leaving our site”) fix it?

It mitigates user deception for link trackers and some products accept it, but it does not fix OAuth code leakage and it trains users to click through warnings. Prefer validation; use interstitials only where external redirects are the product's purpose.

How does the scanner find these parameters?

The web audit targets common redirect parameters on discovered endpoints, submits external URLs and protocol-relative variants, and records any 30x whose Location leaves your origin. It needs no account — the bounce is visible to anyone, which is rather the point.

Testing your own redirect parameters in five minutes

Find the parameters first: search your URLs and forms for the usual names — next, return, redirect, url, continue. Then, on your own site, try the three classic shapes: a full external URL, a protocol-relative target (//other.example), and the same with an encoded slash. You are testing your own property, which is exactly what an assessment does with your permission.

The safe behaviour is boring: external targets are refused or replaced with a default page, every time, in every encoding. Anything that lands you off-domain — even once, even only for the encoded variant — is the finding, and the fix is an allow-list of paths, not a longer blocklist of tricks.

Sources

The references this guide stands on — standards, specifications and official documentation:

  • OWASP Unvalidated Redirects and Forwards Cheat Sheet (2024) — allow-list patterns for redirect targets.
  • CWE-601 (2024) — the weakness catalogue entry for open redirects.
Share this: X · Facebook · LinkedIn · WhatsApp

Related guides

  • Website Security Test: What It Checks, What It Misses, and How to Read Yours · 9 min read
  • Website Security Cheat Sheet: Headers, TLS, Cookies and Exposed Files · 7 min read
  • What a Website Security Assessment Actually Tests · 10 min read
  • TLS/SSL Basics: What Your Certificate Says About Your Site · 8 min read
  • Common Website Misconfigurations (and How to Fix Them) · 11 min read
  • Reading Your First Pentest Report: From Score to Action · 9 min read
  • Deleted ≠ Gone: What the Wayback Machine Keeps After You Delete Your Secrets · 9 min read
  • SQL Injection in Plain English: How One Login Box Can Read Your Database · 9 min read
  • What Does a Website Security Scan Check? · 8 min read
  • Exposed .git Directory: What It Leaks and How to Check · 7 min read
  • Security Headers Missing? What Each Header Stops · 7 min read
  • How Much Does a Penetration Test Cost in 2026? · 7 min read
  • Website Security Checklist for Small Teams (60-second self-check) · 6 min read
  • Reading Your Scan Results: Which Findings Fix First? · 7 min read
  • Content-Security-Policy Missing: What CSP Does and How to Add It Safely · 8 min read
  • HSTS Missing: What Strict-Transport-Security Prevents · 7 min read
  • Clickjacking and X-Frame-Options: How Framing Attacks Work · 7 min read
  • Cookie Flags Explained: Secure, HttpOnly and SameSite · 8 min read
  • Exposed .env File: What Leaks, What Attackers Do Next, What You Do First · 8 min read
  • Directory Listing Enabled: What It Shows Attackers and How to Disable It · 7 min read
  • Mixed Content: Why Your HTTPS Page Still Loads Insecure Resources · 7 min read
  • Expired SSL Certificate: What Breaks, Why Renewal Fails, and How to Catch It Early · 7 min read
  • TLS 1.0 and 1.1 Still Enabled: Why Old Protocols Show Up as a Finding · 7 min read
  • Open Ports on a Web Server: Which Ones Should Never Face the Internet · 8 min read
  • No SPF or DMARC Record: How Missing Email Auth Exposes Your Website · 7 min read
  • Subdomain Takeover: How a Dangling DNS Record Lets Attackers Claim Your Name · 7 min read
  • Forgotten Subdomains: The Staging Site You Forgot Is Still Public · 7 min read
  • WordPress Security Scan: The Exposures an Assessment Finds on WordPress Sites · 8 min read
  • Exposed Backup Files: .bak, .old and .zip Files Sitting in Your Web Root · 7 min read
  • phpinfo() in Production: The Diagnostic Page That Maps Your Server for Attackers · 7 min read
  • Server Version Banners: Why Your Headers Point Attackers to the Right Exploit · 7 min read
  • End-of-Life Software: Running a Server Stack Nobody Patches Anymore · 7 min read
  • CORS Misconfiguration: When Cross-Origin Sharing Opens Your Data to Any Site · 7 min read
  • Dangerous HTTP Methods: What TRACE, PUT and DELETE Should Never Answer · 7 min read
  • Host Header Injection: Poisoned Reset Links and Cache Attacks Explained · 7 min read
  • What Is security.txt? The Small File That Lets Researchers Reach You · 6 min read
  • Admin Panel Exposed to the Internet: What an Assessment Flags and Why · 7 min read
  • phpMyAdmin Exposed: Why This Database Door Is a Prime Brute-Force Target · 7 min read
  • Spring Boot Actuator Exposed: Environment Dumps, Heap Leaks and Shutdown Endpoints · 7 min read
  • Debug Console in Production: The Finding That Can Become Code Execution · 7 min read
  • Exposed AWS Credentials File: The /.aws/credentials Finding, Explained · 7 min read
  • Referrer-Policy and Permissions-Policy: The Two Quiet Headers You Are Probably Missing · 6 min read
  • Exposed package.json: Your Dependency List Is a Recon Gift · 6 min read
  • DNS Zone Transfer Open (AXFR): Handing Out Your Entire DNS Map · 6 min read
  • Certificate Name Mismatch: Why the Cert Does Not Match Your Domain · 6 min read
  • Website Security Assessments for Agencies: Checking Every Client Site Without a Security Team · 8 min read
  • SaaS Security Questionnaires: What Buyers Check About Your Website First · 8 min read
  • Ecommerce Website Security: The Exposures That Put Your Checkout at Risk · 8 min read
  • Small Business Website Security: The Checks That Matter at Your Size · 7 min read
  • How to Prepare for a Website Security Assessment (and Read the Report Calmly) · 7 min read
  • Vulnerability Severity Explained: What Critical, High, Medium and Low Actually Mean · 7 min read
  • Retest After Fixes: How to Prove a Security Finding Is Actually Closed · 7 min read
  • Security Assessment vs Vulnerability Scan vs Pentest: What Is the Difference? · 7 min read
  • How Long Does a Website Security Scan Take? · 6 min read
  • Website Security Drift: Why Last Month's Clean Scan Is Already Out of Date · 7 min read
  • WordPress Site Keeps Getting Hacked After Cleanup · 8 min read
  • Google Blacklist Removal: Getting the Red Warning Off Your Site · 8 min read
  • VirusTotal Flagged My Site: How to Clear a False Positive · 8 min read

Related from the Ingenious AI suite

  • Ingenious AI — the full suite of security and compliance tools
  • DomainGuard — domain impersonation and typosquat defense
  • See BreachHunter pricing →
BreachHunter · by Ingenious AI · read-only security assessment — scan only targets you own or are authorized to test
About · Contact · Blog · vs Intruder · Privacy · Terms · Security · Threats · Nextcloud Check · Verify Evidence · Help · Redeem
More from Ingenious AI:
DisclosureGuard — AI disclosure compliance · Vibe-Code Audit — AI code security scanner · Rogue-Agent Defense — AI agent firewall · ChatBreaker — AI chatbot red-teaming · ModelMinder — AI model deprecation radar · TermsWatch — AI vendor terms monitor · Agent Flight Recorder — tamper-evident agent audit trails · Agent Auth Gateway — agent credentials & kill switch · DomainGuard — domain impersonation defense · Agent Passport — Know-Your-Agent registry · AgentGate — agent policy publisher · AgentBlock — AI agent & crawler access control · BoundaryVault — agent log forensics · Agentic Receipts — verifiable agent payment receipts · EvalEgress — eval-to-production exposure scan · HomeShield MCP — home AI server exposure check · WireWatch — payment verification ceremony · ADMT Notice Kit — AI decision notice compliance · DueLadder — human-approved invoice chasing · Agent-Ready Store Audit — can AI agents buy from your store · ContentCraft AI — content operations · AgentReady — agent-readiness checks · AI Audit Exchange — AI audit exchange · CallbackShield — callback & webhook protection · CompanionGuard — AI companion safety guardrails · CRAClock — EU Cyber Resilience Act deadline clock · EInvoice Translator — e-invoice format translator · GEOFixer — geo & local listing fixes · MandateGuard — agent spending mandates · OutcomeMeter — AI outcome measurement · ProvenanceGuard — content provenance checks · ReviewDesk — review response desk · ReviewProof — verified review evidence · TakedownCoop — coordinated phishing takedowns · TrustGate — trust & safety gating · BreachHunter — website penetration testing · All 36 platforms — the Ingenious AI portfolio

We use cookies. Necessary cookies keep the site working. With your permission we also use analytics cookies (to understand usage) and marketing cookies (for ads). Read our privacy policy.

NecessaryRequired for login, security and core features. Always on.
AnalyticsHelps us understand which pages are useful.
MarketingUsed for advertising and measuring ad performance.

    No match. Try “pricing”, “php2shell” or “contact” — or press Esc to close.

    ↑↓ navigate · Enter open · Esc close