agentleFS
fennihfennih/hunterkit/open-redirect/SKILL.md

open-redirect

Skill0 starsChanged 6 days agoMITView on GitHub

Focused hunt for open redirects: redirect param validation bypasses, chains into OAuth/SSRF/filters, and Referer-based leaks. Use when the focus is open redirect on a web target. Usually reported as info/low unless chained — this skill exists to find the chain, not the bare redirect.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use csrf, mass-assignment and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • langbyyiSkill

    csrf

    CSRF testing playbook. Use when reviewing state-changing web flows, anti-CSRF defenses, SameSite behavior, JSON CSRF, login CSRF, and OAuth state handling.

    Also in 5 projects that use this

  • KaanBicaklarSkill

    mass-assignment

    SAST detection methodology for mass assignment / auto-binding (CWE-915), including whole-request-body binding to models (Rails strong-params gaps, Spring @ModelAttribute data-binder, Django ModelForm fields='__all__', Sequelize/Mongoose req.body spread), privilege escalation via isAdmin/role/ is_verified/balance, nested/related-object over-posting, and GraphQL input over-binding. Use when reviewing create/update handlers that persist objects built from request data. Writes confirmed findings to findings/20-mass-assignment.md.

    Also in 3 projects that use this

  • langbyyiSkill

    path-traversal

    Path traversal and LFI playbook. Use when file paths, download endpoints, include operations, archive extraction, or wrapper behavior may expose filesystem control.

    Also in 4 projects that use this

  • iAskShahramSkill

    file-upload

    Uploads a local file to Cloudflare R2 bucket `public` with wrangler and returns the public URL on assets.shahram.dev. Use when the user wants a public link, public URL, or to host/upload a local image or file to R2.

    Also in 6 projects that use this

  • +2 more from langbyyi

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    OAuth: use the open redirect as redirect_uri target if the client allows a path under the redirect domain.

    line 43
  2. Very specific:

    If the *server* fetches your URL → hand off to ssrf.

    line 57

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Open Redirect

When to use

  • "Hunt open redirect on X", "find redirect chains on X"
  • Chain material for: OAuth redirect_uri (oauth), SSRF filters (ssrf), token/secret leak via Referer, CSRF-ish flows

When NOT to use

  • Server-side URL fetching (that's ssrf — the server fetches; open redirect = victim's browser moves)

Inputs

  • Target + params list; look for ?url=, ?next=, ?redirect=, ?return=, ?continue=, ?dest=, ?target=, ?r=, ?u=, and post-login redirects

Rationalizations to reject

  • "It redirects to my site" — that IS the finding, but bare redirects are info/low in most programs. Spend the effort on the chain before reporting.
  • "Param validated, closed" — you tested your bypass list, not all bypasses. Exhaust the list below before concluding.

Methodology

1. Bypass list (in order)

Against the redirect validation:

  • https://target.com@your-domain.com (userinfo trick)
  • https://your-domain.com/target.com, https://your-domain.com#@target.com
  • //your-domain.com (protocol-relative)
  • https:your-domain.com, \/\/your-domain.com
  • \/your-domain.com, /\/your-domain.com
  • https://target.com/your-domain.com (path confusion)
  • https://target.com\.your-domain.com, https://target.com%2F@your-domain.com
  • @, #, ?, %23, %2f, %5c combos
  • Subdomain of an allowed domain you control, or an open redirect on an allowed domain (redirect chain: allowed → allowed → yours)
  • POST-based redirect endpoints (often forgotten)
  • Header-based: Location reflected from ?url= without validation on error paths

2. Chain construction (the value)

  • OAuth: use the open redirect as redirect_uri target if the client allows a path under the redirect domain.
  • SSRF filters: server fetching a URL that redirects (allowed URL → yours) — hand off to ssrf.
  • Token leak: redirect with token/code in URL → does the destination page load external resources (Referer leak to your host)?
  • Phishing credibility: same-domain redirect chain for credential harvesting (report as impact narrative).

3. DOM redirects

JS: location = params.get('next'), location.href = unvalidated, window.open(userInput). Same bypass list client-side. Check postMessage-driven redirects too.

Reporting

findings/open-redirect-<date>.md. Bare = info/low; chained (OAuth/token leak) = medium/high. Always state the chain explicitly, with the full request sequence as evidence.

Focus discipline

If the server fetches your URL → hand off to ssrf. If the redirect is part of an OAuth flow → oauth.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.