agentleFS
fennihfennih/hunterkit/oauth/SKILL.md

oauth

Skill0 starsChanged 6 days agoMITView on GitHub

Focused hunt for OAuth 2.0 / OpenID Connect vulnerabilities: redirect_uri manipulation, missing state, code interception and reuse, PKCE absence, account linking without verification, token leakage. Use when the focus is the OAuth/SSO/social login flow of a target. Not for JWT signature attacks (use jwt) or password-reset ATO (use ato).

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use grpc, octocat and 5 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.
  • Sorcha-PlatformSkill

    grpc

    Build or review gRPC services and clients in .NET. USE FOR: ASP.NET Core gRPC, protobuf contracts, unary or streaming RPC, gRPC client factory, interceptors, deadlines, cancellation, channel reuse, backend service integration. DO NOT USE FOR: broad browser-facing APIs without gRPC-Web tradeoff review, SignalR realtime hubs, plain REST APIs. INVOKES: dotnet build/test and focused service or client smoke checks when code changes.

    Also in 5 projects that use this

  • mcollinaSkill

    octocat

    Use this skill whenever the prompt contains any `github.com` URL, even if the user only pastes a link and gives no GitHub-specific keywords. Handles git and GitHub operations using the gh CLI. Triggers include any GitHub link to an issue, pull request, commit, compare page, Actions run, release, discussion, or repository. Covers creating and reviewing PRs, repository security advisories (GHSA), their comments, and fix PRs in their temporary private forks, private vulnerability report discussions, watching CI checks, interactive rebasing, branch cleanup, submodule management, and repository archaeology with git log/blame/bisect.

    Also in 3 projects that use this

  • mcollinaSkill

    linting-neostandard-eslint9

    Configures ESLint v9 flat config and neostandard for JavaScript and TypeScript projects, including migrating from legacy `.eslintrc*` files or the `standard` package. Use when you need to set up or fix linting with `eslint.config.js` or `eslint.config.mjs`, troubleshoot lint errors, configure neostandard rules, migrate from `.eslintrc` to flat config, or integrate linting into CI pipelines and pre-commit hooks.

    Also in 3 projects that use this

  • ffsshhttiikkSkill

    gcp

    Google Cloud Platform services and best practices

    Also in 3 projects that use this

  • +3 more from mcollina

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Remove state: does login still complete?

    line 41

“Common” is measured: kept by at least 6 in 10 of the 15 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

OAuth / OIDC Attacks

When to use

  • "Test the OAuth/social login of X", "SSO issues on X"
  • Target has "Sign in with Google/Apple/GitHub/..." or an OIDC login

When NOT to use

  • JWT forging (use jwt)
  • Password reset flows (use ato)

Inputs

  • Target + two test accounts; ideally your own app registration on the same IdP if the flow allows

Rationalizations to reject

  • "state is present, so no CSRF" — present ≠ validated. Remove/change it and test.
  • "redirect_uri is checked" — checked ≠ exact match. Try every bypass shape before concluding.
  • "It worked in the browser, so the flow is fine" — replay the requests manually with curl; browser success hides header and referrer leaks.

Methodology

1. Map the flow

Identify: authorization endpoint, token endpoint, grant types in use (code, implicit, hybrid, device), response_type, PKCE presence, where the code/token exchange happens (backend vs frontend JS). Record all params of the authorization request.

2. redirect_uri attacks (highest yield)

Against the client's redirect_uri validation:

  • Exact-match bypasses: append .@your-domain, #, ?, /.., %2e%2e%2f, //, backslash, @.
  • Subdomain/path confusion: register/point a subdomain or open redirect you control under an allowed domain, chain it.
  • Missing scheme check, case tricks, unicode confusables.
  • For each success: does the code/token arrive at your domain?

3. CSRF / state

  • Remove state: does login still complete? → login CSRF (force-login your session into the victim's browser).
  • Reuse state from an old flow. Replay the callback URL twice.

4. Code handling

  • Code interception via referrer: code in URL + external links/images on the redirect page.
  • Code reuse: exchange the same code twice.
  • Implicit/hybrid: token in URL → browser history, referrer, logs.
  • Exchange in frontend JS: client_secret or token visible in the page — cross-report to info-leak.

5. Identity binding

  • Account linking by email without verification: register attacker account with victim's email on the client, trigger social login with matching email → merged?
  • IdP email verification absent (some IdPs allow unverified emails): claim an email you don't own.
  • nonce absent → replay of id_token.

6. Scope and privilege

  • Widen scope in the authorization request; does the token get more?
  • Access other users' resources via the RS with a stolen/shared token (leads to access-control).

Reporting

findings/oauth-<date>.md. Full ATO chain via redirect_uri + state = critical. Missing state alone = medium.

Focus discipline

JWT signature/alg bugs → jwt. Cross-user API access with a valid token → access-control.

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.