跳到正文
Skillpedia
安全48k · #4892

hunt-oauth

它能做什么

这个工具用来帮助查找使用 OAuth 的登录系统中的安全漏洞,它会寻找访问其他用户账户或绕过登录的方法。

适用场景

  • ✓测试使用社交登录(如 Google、Facebook 等)的网站或应用的安全性时。
  • ✓在获得许可的情况下,查找认证系统漏洞时。
  • ✓了解登录系统漏洞如何被利用时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-oauth/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-oauth/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请使用 OAuth 检查 example.com 的登录漏洞。”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具会检查处理 OAuth 登录流程的代码路径和服务器响应,查找可能被利用的已知错误模式。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

Crown Jewel Targets

OAuth vulnerabilities are among the highest-value bug classes in web security because they directly enable account takeover, session theft, and authentication bypass — the trifecta that programs pay most for.

Highest-value targets:

  • Consumer identity providers (Google, Facebook, PayPal, Apple SSO integrations) — any compromise cascades across all relying parties
  • Mobile apps with custom deep link OAuth handlers — Android/iOS intent handling is notoriously loose
  • Multi-tenant SaaS platforms (GitLab, Reddit-scale apps) where one OAuth flaw hits millions of accounts
  • Gaming/entertainment platforms with federated login (Rockstar, Oculus) — often security-immature teams
  • Enterprise SSO connectors — critical infrastructure, high severity payouts

Asset types that pay most:

  • OAuth authorization endpoints (/oauth/authorize, /connect/authorize)
  • Token exchange endpoints (/oauth/token)
  • Mobile deep link handlers (push_notification_webview, custom scheme URIs)
  • Social login callback handlers (/auth/callback, /oauth/callback)

Typical payouts: $500–$20,000+ depending on program; account takeover findings often hit max bounty.


Attack Surface Signals

URL Patterns to Hunt

/oauth/authorize
/oauth/token
/connect/authorize
/auth/callback
/oauth/callback
/login?redirect_uri=
/signin?next=
/auth?return_to=
/oauth/redirect
/push_notification_webview

Response Headers That Signal OAuth

Location: https://accounts.example.com/oauth/...
Set-Cookie: oauth_state=
WWW-Authenticate: Bearer
Content-Type: application/json (with access_token in body)

JavaScript Patterns (grep in JS bundles)

redirect_uri
client_id
response_type=code
response_type=token
state=
nonce=
oauth_token
access_token
push_notification_webview
deeplink
intent://

Tech Stack Signals

  • Android apps with intent-filter in AndroidManifest.xml handling http:// or custom scheme URIs
  • Apps using Doorkeeper, OmniAuth, Devise (Ruby), Passport.js (Node), Spring Security OAuth
  • Social login buttons (Google, Facebook, Apple) = OAuth surface guaranteed
  • .well-known/openid-configuration present = full OIDC surface available

Step-by-Step Hunting Methodology

  1. Enumerate all OAuth entry points

    • Spider the app for /oauth, /connect, /auth, /login paths
    • Check .well-known/openid-configuration and .well-known/oauth-authorization-server
    • Decompile mobile APKs: apktool d app.apk and grep for redirect_uri, intent://, deep link schemes
  2. Map the full OAuth flow

    • Capture the authorization request: note client_id, redirect_uri, state, nonce, response_type
    • Capture the callback: note where tokens/codes land, what validates state/nonce
  3. Test redirect_uri validation (highest yield)

    • Try exact host bypass: redirect_uri=https://legit.com.evil.com
    • Try path traversal: redirect_uri=https://legit.com/callback/../../../evil
    • Try open redirects on the legitimate domain first, then chain into OAuth
    • Try parameter pollution: redirect_uri=https://legit.com&redirect_uri=https://evil.com
    • Try encoded characters: %2F, %40, %23 to confuse parsers
  4. Test state parameter (CSRF)

    • Remove state entirely — does the flow complete?
    • Reuse a fixed state value across sessions
    • Check if state is validated server-side or only client-side
  5. Test nonce parameter (replay/bypass)

    • Capture a nonce from one flow, attempt to replay it in another
    • Check if nonce is validated after token exchange

…

常见问题

OAuth 是什么?

OAuth 是一种标准,允许应用在用户授权的情况下访问其他应用中的信息,而无需分享密码。可以把它理解为给某项特定服务发放一把临时钥匙,而不是交出总钥匙。

OAuth 漏洞是什么?

这些是 OAuth 系统中的缺陷,可能让攻击者访问你的账户、窃取你的会话,甚至完全绕过登录。

使用这个工具需要许可吗?

需要。使用前必须获得系统所有者明确的书面许可。未经许可使用属于违法行为。

详情

作者的原始描述

Hunting skill for oauth vulnerabilities. Built from 19 public bug bounty reports. Use when hunting oauth on any target.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4892
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能