Open Redirect Check: What StackShield Tests
Looks for endpoints that redirect to any address given in a query parameter such as redirect or next.
What This Check Detects
Looks for endpoints that redirect to any address given in a query parameter such as redirect or next.
Full Documentation
What this check looks for
StackShield requests your login, logout and registration pages, the common redirector paths such as /redirect and /out, and any link on your home page that already uses a redirect-style parameter. Each request carries the usual parameter names (redirect, next, url, return_to and others), each pointing at a made-up host under example.com. If the response redirects to one of those hosts, the endpoint is an open redirect and the host shows which parameter caused it.
The test is repeated with the address written as //host, which gets past filters that only reject values starting with http.
Why it matters
An open redirect lets an attacker build a link that starts with your real domain and ends on their page. That defeats the one check most people make before clicking, so it is a staple of phishing. On endpoints involved in sign-in it can also leak OAuth codes or tokens that are appended to the redirect address.
What the findings mean
A medium finding names the path and the parameter that redirected off-site. A warning means a sign-in form carried the external address forward in a hidden field. Whether it is honoured after sign-in cannot be tested anonymously, so try it once by hand.
Redirect only to relative paths or to an explicit allowlist of hosts, and reject values that start with a scheme, // or a backslash. redirect()->intended() and named routes avoid the problem entirely.
How to Fix This Issue
Redirects using unvalidated user input let attackers craft links that appear to come from your domain but redirect victims to malicious sites.
Read the full fix guideRelated Security Checks
Cross-Site Scripting Scan
Crawls the site and tests every parameterised URL for reflected and DOM cross-site scripting using katana and dalfox. Re...
Account Enumeration
Checks whether the login and password reset forms reveal which email addresses have accounts.
Host Header Injection
Checks whether the application builds its URLs, including password reset links, from a forged host name.
Is your Laravel app exposed right now?
34% of Laravel apps we scan have at least one critical issue, and most teams do not find out until something breaks. The free scan checks your live app in 60 seconds. Then StackShield re-runs every check after each deploy, so a fix you ship today does not quietly regress next week.