Web open redirect

From NoorQureshi/security-skills · View interactive version

Web open redirect is an AI agent skill from the GitHub repository NoorQureshi/security-skills. Open redirect — abuse a redirect param to send users to attacker sites, and chain it (OAuth token theft, SSRF filter bypass, phishing). Load on params like redirect=, next=, url=, return=, callback=, dest=, or a 30x Location built from input. Signals: `?returnUrl=`, login redirects, OAuth `redirect_

How to use this skill

Skill file

Open redirect

When it applies

The app redirects to a location derived from user input without validating it stays on-site.

Low severity alone — but a powerful chain link.

Why it works

The redirect target is attacker-controlled and trusted. On its own it's phishing; chained, it

turns other flows malicious (OAuth codes/tokens sent to your host, SSRF allowlist bypass via a

redirect to an internal URL).

Method

  1. Find the param (redirect/next/url/return/dest/callback) and set it to an external URL;

follow the response — a 30x Location: https://evil.com (or JS/meta redirect) confirms.

  1. Bypass naive validation: //evil.com, https:evil.com, https://target.com@evil.com,

https://target.com.evil.com, /\evil.com, whitelisted-prefix tricks, double-encoding, CRLF.

  1. Chain for impact:

Gotchas

Verify success

The app redirects the user to an attacker-controlled origin, or (chained) a token/code is

delivered to your host / an SSRF filter is bypassed.

References

PortSwigger OAuth+redirect labs; OWASP Unvalidated Redirects Cheat Sheet.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.