Open Redirect
Abuse redirect parameters to send victims to attacker-controlled sites.
Mission briefing
LinkBridge powers post-login redirects for several partner portals. After authentication, users are sent wherever the return URL parameter points. Security wants proof that an attacker could steer victims to a look-alike login page.
Every task in this room is done. Your rank progress just moved forward.
Objectives
- Redirect to an arbitrary external URL
- Bypass a naive host prefix allowlist
Task 1 Unvalidated Redirect Low 10 pts
Scenario
LinkBridge sends users to a URL taken from the redirect query parameter after login. There is no allowlist—any absolute URL is followed. Demonstrate a redirect to an external domain you control.
Your approach
- Open the unvalidated redirect lab and inspect the login link.
- Note the redirect parameter in the query string.
- Set it to an external HTTPS URL such as a dummy attacker site.
- Follow the redirect and confirm the lab marks success.
- Submit the task flag shown after the external redirect.
The redirect parameter is followed with no validation.
Open lab →Hint
?redirect=https://evil.example
Task 2 Prefix Bypass Medium 10 pts
Scenario
LinkBridge tightened policy: redirect targets must start with the trusted corporate host. The check is a simple prefix test on the full URL string. Still reach an external site without breaking the prefix rule literally.
Your approach
- Read the error when you point redirect at a plain external URL.
- Review how the prefix validator parses the scheme and host.
- Try URL forms where the trusted host appears early but another host receives the visit.
- Confirm the browser lands off-site and the lab accepts the bypass.
- Submit the flag from the success message.
Only URLs starting with a trusted host are allowed.
Open lab →Hint
https://www.hackerz-labs.test@evil.example