What Are Suspicious Redirects?
A suspicious redirect occurs when visiting one URL automatically sends users to another—potentially malicious—destination. Attackers use redirect chains to disguise the true destination of links, bypass security filters, and make phishing attacks more convincing.
For Shopify merchants, redirect-based attacks can:
- Send customers to fake checkout pages
- Disguise phishing links in marketing emails
- Exploit trust in your domain to deliver malware
- Damage your brand reputation when customers realize they’ve been tricked
How Redirect Attacks Work
Simple Redirect
yourstore.com → phishing-site.com
Easy to detect—most security tools catch direct redirects to known bad domains.
Redirect Chain
yourstore.com → tracking-service.com → shorturl.cc → phishing-site.com
Harder to detect—each hop may look legitimate individually, but the chain leads to danger.
Open Redirect Exploitation
If your site has an open redirect vulnerability:
yourstore.com/redirect?url=https://evil-site.com
Attackers can create links that start on your trusted domain but end anywhere. Your customers see your domain and trust the link.
Common Redirect Attack Scenarios
Fake Order Tracking
Scammers send emails with tracking links:
"Track your order: yourstore.com/track?id=12345&redirect=phishing-site.com"
The link starts at your domain, gaining customer trust, then redirects to a credential-stealing page.
Compromised Marketing Links
Attackers target URL shorteners and tracking services used in your marketing:
- Your email contains:
link.yourstore.com/promo - Attacker compromises the shortener or intercepts DNS
- Link now redirects to a fake site
SEO Spam Injection
Attackers inject hidden redirects into your site:
- Normal visitors see your regular site
- Search engine bots see spam/malware redirects
- Google flags your site as dangerous
Affiliate Link Hijacking
Attackers modify your affiliate or referral links to:
- Steal commission by replacing affiliate IDs
- Redirect to competitor sites
- Inject malware download pages
Signs Your Store Has Redirect Issues
| Warning Sign | What It Means |
|---|---|
| Google Search Console warnings | Google detected malicious redirects |
| Unexpected traffic drops | Users bouncing due to redirect warnings |
| Customer complaints about strange links | Phishing using your domain |
| Browser warnings on your site | Security tools detecting redirect chains |
| Unusual referral traffic patterns | Redirect exploitation in progress |
Open Redirect Vulnerabilities
An open redirect is a security flaw where your site redirects to any URL specified in a parameter without validation.
Vulnerable Code Example
# DANGEROUS - accepts any URL
/redirect?url=https://evil-site.com
Secure Implementation
# SAFE - only allows whitelisted destinations
/redirect?destination=order-status
Why Open Redirects Are Dangerous
- Borrowed trust: Attackers use your trusted domain to make the destination look safer
- OAuth token theft: Intercept authentication flows
- Malware delivery: Bypass email and browser filters
- SEO penalties: Google may flag your entire site
Shopify and Redirects
Built-in Redirect Features
Shopify provides legitimate redirect functionality:
- URL redirects in Settings > Navigation
- Automatic HTTPS redirects (HTTP → HTTPS)
- Domain redirects for connected domains
These are safe and managed by Shopify.
Third-Party App Risks
Shopify apps that create redirects can introduce vulnerabilities:
- URL shorteners: May be compromised or abused
- Tracking pixels: Redirect chains for analytics
- Affiliate tools: Parameter-based redirects
Audit apps that modify URLs or create tracking links.
Theme Code Risks
Custom theme code might include redirect logic:
// DANGEROUS - redirects based on URL parameter
const target = new URLSearchParams(window.location.search).get('goto');
if (target) window.location = target;
Never redirect based on user-controlled input without validation.
How Recon Detects Suspicious Redirects
Recon monitors your domains for redirect issues:
| Check | What We Detect |
|---|---|
| Redirect chain analysis | Multi-hop redirects to suspicious destinations |
| Final destination verification | Whether redirect chains end at safe sites |
| Known malware endpoints | Redirects to flagged domains |
| Unusual redirect patterns | Sudden changes in redirect behavior |
Issue Severity
| Finding | Severity | Description |
|---|---|---|
| Redirect to malicious site | Critical | Direct redirect to known-bad domain |
| Suspicious redirect chain | High | Multiple hops through questionable sites |
| Open redirect vulnerability | High | Your domain can redirect anywhere |
| Redirect to unverified site | Medium | Destination isn’t clearly safe or dangerous |
Fixing Redirect Problems
If Your Site Is Redirecting Maliciously
- Check for malware: Scan your theme code for injected scripts
- Review apps: Disable recently added apps
- Check DNS records: Ensure records haven’t been modified
- Review Shopify redirects: Settings > Navigation > URL Redirects
- Contact Shopify support if you can’t identify the source
If Your Domain Is Used in Phishing
- Report the phishing site to Google Safe Browsing
- Warn customers through official channels
- Monitor for open redirect exploitation on your site
- Document and report to relevant registrars
Preventing Open Redirects
- Use allowlists: Only redirect to pre-approved URLs
- Use mapping tokens:
redirect?to=order-statusinstead of full URLs - Validate destinations: Check against trusted domain list
- Add warning pages: “You’re leaving our site” interstitials
How Recon Helps
Recon protects your Shopify store by:
- Continuously monitoring your domain’s redirect behavior
- Alerting you when redirects point to suspicious destinations
- Detecting changes that might indicate compromise
- Identifying open redirect vulnerabilities
- Checking redirect chains, not just immediate destinations
FAQ
Q: How do I know if my store has an open redirect?
A: Try adding ?redirect=https://google.com to various URLs on your site. If any page redirects to Google, you may have an open redirect. Recon scans for these vulnerabilities automatically.
Q: Can Shopify apps create redirect vulnerabilities?
A: Yes. Apps that create tracking links, URL shorteners, or affiliate systems can introduce redirect risks. Review app permissions and monitor for unusual redirect behavior.
Q: What if Google flagged my site for malicious redirects?
A: Check Google Search Console for specific warnings. Clean the malware, then submit your site for review. The flagging typically lifts within a few days after the issue is resolved.
Q: Are Shopify’s built-in redirects safe?
A: Yes. Redirects created through Shopify’s URL Redirects feature (Settings > Navigation) are safe and don’t create open redirect vulnerabilities.
Q: How quickly should I respond to redirect warnings?
A: Immediately. Malicious redirects can compromise customer data, damage your reputation, and result in Google penalties. Treat redirect warnings as critical security incidents.
OWASP Classification
Unvalidated redirects are classified under OWASP A01:2021 Broken Access Control. They’re a well-documented vulnerability category with established prevention techniques.
For technical details, see the OWASP Unvalidated Redirects Cheat Sheet.
Want us to monitor this for you?
Get automated brand security monitoring for your Shopify store with Recon.
Install on ShopifyRelated Articles
Brand Impersonation on Shopify: How It Works
How to verify a copied storefront, preserve evidence, and choose the right reporting path without overstating what a lookalike proves.
Brand Monitoring for Shopify Brands
What brand monitoring can check, what it cannot, and how Shopify teams should prioritize domain impersonation risks.
Combosquatting and Shopify Brands
Understand combosquatting attacks where criminals combine your Shopify brand with words like 'shop', 'sale', or 'official'.