原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚 登录

wooyun-legacy Skill

代码仓库 ↗

作者:tanweai★ 1,7921 个 skill

安装

能做什么

wooyun-legacy skill for claude code

作者提供的原文

  • 连接方式 供 AI 读取的指令文件
  • 账号或密钥 README 和 SKILL.md 中未发现密钥
  • 分类 写代码
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/skill/tanweai-wooyun-legacy.svg)](https://mcp.popnx.com/en/skills/tanweai-wooyun-legacy)

可搭配使用

在同一工作中把 AI 连到服务的 MCP

REA

Reverse engineer anything from your terminal or agent with one CLI and MCP server.

作者:morluto广泛使用↓ 38.9万/周★ 46.9万8天前更新

MCP · 连接服务在你的电脑上运行

Fallow

Codebase intelligence for TypeScript and JavaScript, exposed as structured MCP analysis tools.

作者:fallow-rs广泛使用↓ 244.1万/周★ 5385昨天更新

MCP · 连接服务在你的电脑上运行

相似的 Skill

同类工作,排序与 Skill 列表相同

与相似项目对比
本项
wooyun-legacy
reaandrej-karpathy-skillsgraphifyMoneyPrinterTurbo
作者tanweaimorlutomultica-aiGraphify-Labsharry0703
Skill 数11111
GitHub 星标1,792468,733234,332150,287144,566
最近代码更新2026年7月14日2026年11月19日2026年4月20日2026年11月18日2026年11月18日
许可证–MIT–Apache-2.0MIT

tanweai 提供的 1 个 Skill(指令集),AI 读取后照做 · 不是 MCP server

Skill 和 MCP 有什么不同

MCP = 手

把 AI 连到外部服务或数据,例如读取 Notion 或开发票。需要有程序或服务器在运行。

Skill = 手册

教 AI 怎么做某项工作的文本文件,不连接任何服务。

有些会重叠:少数 Skill 带有调用工具的脚本,少数 MCP 只提供知识。请从你想完成的工作出发。

适用的应用

Claude Code

依据开发者 README 和 repo 中的文件夹

安装

安全吗?

  • 作者

    GitHub 账号 tanweai(个人)才创建 9 个月,请格外小心

  • 使用与维护

    ★ 1,792 星 · 代码最近更新 2026年7月14日

  • 有脚本吗?

    没有,都是纯文本文件,由 AI 阅读后照做

  • 会联网吗?

    没有脚本,所以不会自己联网

  • 会修改整台电脑的设置吗?

    没有发现 hook 或写入电脑设置的操作

根据仓库 commit d6a69e1 中的文件自动检查(只读取文件,没有运行任何内容)。这不是安全保证,请自己阅读后再决定

第一步:你用哪个 AI?

选择你用的应用,本页只显示该应用的安装方法

方式 1上传到 claude.ai(网页和应用)

  1. 从 GitHub 下载

    这个 Skill 没有说明许可证,所以我们不在网站上提供 ZIP。请从 GitHub 下载并自己整理文件夹,或者用上面的"让 AI 帮你安装",更简单

    从 GitHub 下载(整个仓库)↗

    解压后,只把 plugins/wooyun-legacy/skills/wooyun-legacy 文件夹重新压缩。ZIP 的最上层必须是包含 SKILL.md 的 wooyun-legacy 文件夹,不能直接放散乱的文件

  2. 打开 claude.ai 的 Skills 页面并上传

    +Create skillUpload a skill选择文件 wooyun-legacy.zip

    打开 claude.ai/customize/skills ↗

  3. 看不到 Upload 按钮?请先开启创建文件的权限

    SettingsCapabilitiesCode execution and file creation

    Turn on Code execution and file creation first (newer menus: Create and edit files) · personal plans: Settings → Capabilities · Team/Enterprise: an admin turns it on under Organization settings → Plugins & skills · every plan, including Free

Upload once; it works in claude.ai and Claude Desktop, and in recent Claude Code signed in with a Claude account (not with an API key)

Cowork and cloud sessions use the skills turned on in your claude.ai account, not ~/.claude/skills on your computer (Claude Desktop scheduled tasks run locally and still load it)

Checked against official docs 2026年11月12日 · Source: support.claude.com, support.claude.com, code.claude.com

方式 1让 Claude Code 帮你安装

复制这句话,粘贴到 Claude Code 的对话中

安装到哪里
Please install the skill wooyun-legacy from https://github.com/tanweai/wooyun-legacy 文件夹 plugins/wooyun-legacy/skills/wooyun-legacy(commit d6a69e1) for all my projects, at ~/.claude/skills/wooyun-legacy. First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill wooyun-legacy from https://github.com/tanweai/wooyun-legacy 文件夹 plugins/wooyun-legacy/skills/wooyun-legacy(commit d6a69e1) into the project this chat is open in (at .claude/skills/wooyun-legacy). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

如果只用于一个项目,请粘贴到在该项目文件夹中打开的对话里 · AI 在安装前一定会先告诉你路径

AI 会先说明要做什么,每一步都会征求你的同意

重新打开 Claude Code,输入 /wooyun-legacy,或直接提出相关任务,Claude 会自动选用

Checked against official docs 2026年11月12日 · Source: code.claude.com

适合使用 Terminal 的人

Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。

开发者推荐的方式

/plugin marketplace add tanweai/wooyun-legacy
/plugin install wooyun-legacy@tanweai-security

摘自开发者 README,会下载并运行开发者的代码

  1. 打开终端

    Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”

  2. 把 skill 文件夹复制到 ~/.claude/skills

    这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹

    git clone --depth 1 https://github.com/tanweai/wooyun-legacy.git /tmp/popnx-skill-tanweai-wooyun-legacy-d6a69e1 && mkdir -p ~/.claude/skills && cp -R '/tmp/popnx-skill-tanweai-wooyun-legacy-d6a69e1/plugins/wooyun-legacy/skills/wooyun-legacy' ~/.claude/skills/wooyun-legacy
  3. 重新打开 Claude Code,输入 /wooyun-legacy,或直接提出相关任务,Claude 会自动选用

自己安装的 Skill 可用于 ChatGPT 桌面应用、Codex CLI 和 IDE 中的 Codex 扩展 · 网页版和手机版 ChatGPT 不能使用自己安装的 Skill,只能使用目录中插件自带的 Skill

ChatGPT 桌面应用

ChatGPT 桌面应用内置 Codex,Codex 从 ~/.agents/skills 文件夹读取 Skill

方式 1让 ChatGPT 帮你安装

在 ChatGPT 桌面应用中打开 Codex,把这句话粘贴到对话中

安装到哪里
Please install the skill wooyun-legacy from https://github.com/tanweai/wooyun-legacy 文件夹 plugins/wooyun-legacy/skills/wooyun-legacy(commit d6a69e1) for all my projects, at ~/.agents/skills/wooyun-legacy. First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill wooyun-legacy from https://github.com/tanweai/wooyun-legacy 文件夹 plugins/wooyun-legacy/skills/wooyun-legacy(commit d6a69e1) into the project this chat is open in (at .agents/skills/wooyun-legacy). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

AI 在安装前一定会先告诉你路径

AI 会先说明要做什么,每一步都会征求你的同意

方式 2自己放入文件夹

把 wooyun-legacy 文件夹放到 ~/.agents/skills/wooyun-legacy

~ 是你的主文件夹($HOME)

适合使用 Terminal 的人

Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。

  1. 打开终端

    Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”

  2. 把 skill 文件夹复制到 ~/.agents/skills

    这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹

    git clone --depth 1 https://github.com/tanweai/wooyun-legacy.git /tmp/popnx-skill-tanweai-wooyun-legacy-d6a69e1 && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-tanweai-wooyun-legacy-d6a69e1/plugins/wooyun-legacy/skills/wooyun-legacy' ~/.agents/skills/wooyun-legacy

安装之后

  • ChatGPT 桌面应用:打开侧边栏中的 Skills,确认 Skill 已出现
  • 使用方法:在 ChatGPT 中输入 @ 并选择 Skill · 在 Codex CLI 或 IDE 扩展中运行 /skills,或输入 $ 加 Skill 名称
  • Codex 会自动发现新安装的 Skill;如果没有出现,请重启 Codex

Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com

网页版和手机版 ChatGPT

不能使用你自己安装的 Skill,只能使用目录中插件自带的 Skill

想在 ChatGPT 中使用这个 Skill,请按上面的方法使用 ChatGPT 桌面应用

Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com

方式 1让 Codex 帮你安装

复制这句话,粘贴到 Codex 的对话中 · 适用于 ChatGPT 桌面应用中的 Codex、Codex CLI 和 IDE 扩展

安装到哪里
Please install the skill wooyun-legacy from https://github.com/tanweai/wooyun-legacy 文件夹 plugins/wooyun-legacy/skills/wooyun-legacy(commit d6a69e1) for all my projects, at ~/.agents/skills/wooyun-legacy. First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill wooyun-legacy from https://github.com/tanweai/wooyun-legacy 文件夹 plugins/wooyun-legacy/skills/wooyun-legacy(commit d6a69e1) into the project this chat is open in (at .agents/skills/wooyun-legacy). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

如果只用于一个项目,请粘贴到在该项目文件夹中打开的对话里 · AI 在安装前一定会先告诉你路径

AI 会先说明要做什么,每一步都会征求你的同意

Codex 会自动发现新安装的 Skill;如果没有出现,请重启 Codex · 使用方法:在 ChatGPT 中输入 @ 并选择 Skill · 在 Codex CLI 或 IDE 扩展中运行 /skills,或输入 $ 加 Skill 名称

Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com

适合使用 Terminal 的人

Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。

  1. 打开终端

    Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”

  2. 把 skill 文件夹复制到 ~/.agents/skills

    这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹

    git clone --depth 1 https://github.com/tanweai/wooyun-legacy.git /tmp/popnx-skill-tanweai-wooyun-legacy-d6a69e1 && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-tanweai-wooyun-legacy-d6a69e1/plugins/wooyun-legacy/skills/wooyun-legacy' ~/.agents/skills/wooyun-legacy
  3. 重新打开 Codex 并提出相关任务,Codex 会列出这个 skill

方式 1让 Cursor 帮你安装

复制这句话,粘贴到 Cursor 的对话中

安装到哪里
Please install the skill wooyun-legacy from https://github.com/tanweai/wooyun-legacy 文件夹 plugins/wooyun-legacy/skills/wooyun-legacy(commit d6a69e1) for all my projects, at ~/.cursor/skills/wooyun-legacy. First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill wooyun-legacy from https://github.com/tanweai/wooyun-legacy 文件夹 plugins/wooyun-legacy/skills/wooyun-legacy(commit d6a69e1) into the project this chat is open in (at .cursor/skills/wooyun-legacy). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

如果只用于一个项目,请粘贴到在该项目文件夹中打开的对话里 · AI 在安装前一定会先告诉你路径

AI 会先说明要做什么,每一步都会征求你的同意

在 Cursor 的 Agent 聊天中输入 / 并选择 wooyun-legacy

Checked against official docs 2026年11月12日 · Source: cursor.com

适合使用 Terminal 的人

Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。

  1. 打开终端

    Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”

  2. 把 skill 文件夹复制到 ~/.cursor/skills

    这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹

    git clone --depth 1 https://github.com/tanweai/wooyun-legacy.git /tmp/popnx-skill-tanweai-wooyun-legacy-d6a69e1 && mkdir -p ~/.cursor/skills && cp -R '/tmp/popnx-skill-tanweai-wooyun-legacy-d6a69e1/plugins/wooyun-legacy/skills/wooyun-legacy' ~/.cursor/skills/wooyun-legacy
  3. 在 Cursor 的 Agent 聊天中输入 / 并选择 wooyun-legacy

方式 1让 AI 帮你安装

适用于其他能读取 Skill 的应用。这句话列出了 Claude Code、Codex 和 Cursor 的路径,AI 会按你的应用选择 · 复制这句话,粘贴到应用的对话中

安装到哪里
请帮我从 https://github.com/tanweai/wooyun-legacy 文件夹 plugins/wooyun-legacy/skills/wooyun-legacy(commit d6a69e1) 安装名为 wooyun-legacy 的 Skill,供我所有项目使用,放在 ~/.claude/skills/wooyun-legacy(Codex 用 ~/.agents/skills/wooyun-legacy,Cursor 用 ~/.cursor/skills/wooyun-legacy)。请先把所有文件给我看,告诉我有没有脚本或会不会修改电脑设置,再告诉我要安装的完整路径,等我同意后再继续。
请帮我从 https://github.com/tanweai/wooyun-legacy 文件夹 plugins/wooyun-legacy/skills/wooyun-legacy(commit d6a69e1) 安装名为 wooyun-legacy 的 Skill,安装到这个对话当前打开的项目中(放在 .claude/skills/wooyun-legacy;Codex 用 .agents/skills/wooyun-legacy,Cursor 用 .cursor/skills/wooyun-legacy)。请先把所有文件给我看,告诉我有没有脚本或会不会修改电脑设置,再告诉我项目名称和要安装的完整路径,等我同意后再继续。

如果只用于一个项目,请粘贴到在该项目文件夹中打开的对话里 · AI 在安装前一定会先告诉你路径

AI 会先说明要做什么,每一步都会征求你的同意

Checked against official docs 2026年11月12日 · Source: code.claude.com, learn.chatgpt.com, cursor.com

适合使用 Terminal 的人

其他支持 Agent Skills 的应用(如 Gemini CLI、GitHub Copilot)使用不同文件夹,请查看该应用的指南,再把含 SKILL.md 的文件夹复制过去。

在 GitHub 上查看 ↗

已于 2026年11月11日 对照 Claude Code、Codex 和 Cursor 官方指南核实 skill 文件夹

✓ 命令已检查 2026年11月19日

查看原始 SKILL.md

以下文字来自开发者的 repo,不是 PopNx MCP 的指令

7,501 个字符 · 在 GitHub 打开完整文件

---
name: wooyun-legacy
description: >-
  WooYun business logic vulnerability methodology — 22,132 real cases across 6 domains (authentication bypass, authorization bypass, payment tampering, information disclosure, logic flaws, misconfiguration) and 33 vulnerability classes.
  Use for ANY security testing, auditing, or code review of web apps, APIs, or business systems — even without explicit "security" keywords.
  Triggers: penetration testing, security audit, vulnerability, bug bounty, payment security, IDOR, password reset, weak credentials, unauthorized access, race condition, parameter tampering, code review, 渗透测试, 安全审计, 漏洞挖掘, 支付安全, 越权, 逻辑漏洞, 业务安全, SRC, 代码审计.
  Also triggers on implicit intent: "test this endpoint", "find bugs", "can I bypass this", "帮我测测这个接口", "这个参数能不能改", "帮我找bug".
---

# WooYun 业务逻辑漏洞方法论

> 22,132 个真实漏洞案例 · 6 个领域 · 33 类漏洞

**Extended trigger keywords (not in description due to length limits):**
Implicit black-box testing: "看看这个功能有没有问题"、"这个流程有漏洞吗"、"怎么绕过这个限制"、"订单/支付/退款流程测试"、"这个系统安全吗"、"接口有没有风险"、"check this API"、"is this flow secure"、"review this for issues".
Tools & techniques: 抓包分析、Burp Suite、拦截请求、修改参数、重放攻击、并发测试、遍历ID、爆破、薅羊毛、刷单、套利、风控绕过、短信轰炸、接口滥用、未授权接口、任意文件、数据泄露、信息收集、子域名、目录扫描、指纹识别、intercept、replay、fuzz、enumerate、brute force、rate limiting bypass、coupon abuse.

业务逻辑漏洞无法通过扫描器发现。它们存在于开发者的本意与应用实际允许的行为之间的空隙中。本方法论教会你像编写代码的开发者一样思考,像滥用应用的用户一样发起攻击。

**数据基础:** WooYun(2010-2016),大型公开漏洞披露平台。

## 漏洞严重性优先级

测试应优先考虑高危漏洞类别。下表按 WooYun 数据集中高危发现的比例排序——百分比越高,代表关键影响的可能性越大。

| 排名 | 漏洞类别 | 案例数 | 高危占比 | 领域 |
|------|---------|-------|---------|------|
| 1 | 密码重置 | 777 | 88.0% | 认证 |
| 2 | 任意账号 | 220 | 86.4% | 授权 |
| 3 | 提现 | 59 | 83.1% | 金融 |
| 4 | 金额篡改 | 176 | 83.0% | 金融 |
| 5 | 余额篡改 | 113 | 77.9% | 金融 |
| 6 | 任意用户注册 | 24 | 75.0% | 授权 |
| 7 | 逻辑漏洞 | 266 | 74.8% | 逻辑流 |
| 8 | 订单篡改 | 1,227 | 74.2% | 金融 |
| 9 | 价格篡改 | 70 | 74.3% | 金融 |
| 10 | 配置不当 | 1,796 | 72.6% | 配置 |
| 11 | 任意操作 | 40 | 72.5% | 授权 |
| 12 | 支付绕过 | 1,056 | 68.7% | 金融 |
| 13 | 设计缺陷 | 1,391 | 65.3% | 逻辑流 |
| 14 | 信息泄露 | 4,858 | 64.7% | 信息 |
| 15 | 越权 | 1,705 | 62.3% | 授权 |
| 16 | 弱口令 | 7,513 | 58.2% | 认证 |

## 四阶段方法

每个阶段都建立在前一阶段的基础上。跳过任何阶段会导致浅层测试,无法发现扫描器无法找到的逻辑漏洞。

### 第一阶段:业务流程映射

在测试任何端点之前,理解应用做了什么,以及资金、数据和权限如何在其中流动。

1. **理解业务**
   - 这个应用做什么?(电商、银行、社交、SaaS)
   - 主要参与者是谁?(匿名用户、普通用户、管理员、商户、API 客户端)
   - 收入模式是什么?(资金如何流动?)
   - 哪些数据敏感?(个人信息、财务数据、医疗数据、凭证)

2. **映射用户旅程**
   - 注册 → 登录 → 核心操作 → 登出
   - 购买 → 支付 → 履行 → 退款
   - 密码重置 → 验证 → 新密码
   - 管理员 → 用户管理 → 权限分配

3. **识别状态转移**
   ```
   对每个业务流程:
     - 列出所有状态(待审、活跃、已支付、已发货、已退款)
     - 列出所有有效转移(待审→已支付、已支付→已发货)
     - 问题:能否强制执行无效转移?(待审→已发货)
     - 问题:能否反向转移?(已支付→待审)
   ```

4. **映射信任边界**
   - 客户端 vs 服务器:哪些验证仅在客户端进行?
   - 用户 vs 管理员:什么分隔了权限级别?
   - 租户 vs 租户:什么防止跨租户访问?
   - 内部 vs 外部:哪些假设了受信任的内部来源?

### 第二阶段:假设形成

使用下面的参考文件形成特定领域的假设。每个领域文件包含详细的攻击模式矩阵、测试清单和防御模式,这些都源自数千个真实的 WooYun 案例。

**第一层:领域参考(方法论 + 攻击模式矩阵)** — 优先加载

| 领域 | 参考文件 | 案例数 |
|------|---------|-------|
| 认证绕过、凭证缺陷 | [authentication-domain.md](references/authentication-domain.md) | 8,846 |
| 权限绕过、IDOR、权限提升、任意操作 | [authorization-domain.md](references/authorization-domain.md) | 6,838 |
| 支付、订单、余额、价格篡改 | [financial-domain.md](references/financial-domain.md) | 2,919 |
| 个人信息泄露、凭证泄露、调试信息 | [information-domain.md](references/information-domain.md) | 6,446 |
| 状态机滥用、竞态条件、流程绕过 | [logic-flow-domain.md](references/logic-flow-domain.md) | 1,679 |
| 配置不当、默认设置、加固缺陷 | [configuration-domain.md](references/configuration-domain.md) | 1,796 |

**第二层:深度分析手册(技术细节 + 根因分析)** — 需要深入某个技术领域时加载

| 技术领域 | 知识文件 | 内容 |
|---------|---------|------|
| 命令执行 | [command-execution.md](../../knowledge/command-execution.md) | 系统命令注入、代码注入、表达式注入的完整攻击链 |
| 文件遍历 | [file-traversal.md](../../knowledge/file-traversal.md) | 路径穿越、任意文件读取/下载的绕过技术 |
| 文件上传 | [file-upload.md](../../knowledge/file-upload.md) | 上传绕过(类型、后缀、内容检测)的 Payload 矩阵 |
| 信息泄露 | [info-disclosure.md](../../knowledge/info-disclosure.md) | 敏感信息暴露路径、调试接口、配置文件泄露 |
| 逻辑缺陷 | [logic-flaws.md](../../knowledge/logic-flaws.md) | 密码重置、支付绕过、验证码绕过的根因矩阵 |
| SQL 注入 | [sql-injection.md](../../knowledge/sql-injection.md) | 注入类型分类、WAF 绕过、盲注技巧 |
| 未授权访问 | [unauthorized-access.md](../../knowledge/unauthorized-access.md) | 未授权接口发现、权限校验缺失模式 |
| XSS | [xss.md](../../knowledge/xss.md) | 存储型/反射型/DOM XSS 的输入点和绕过 |

**第三层:漏洞案例库(真实案例标题 + 高频 Payload)** — 需要引用具体案例或 Payload 模式时加载

| 漏洞类型 | 案例文件 | 用途 |
|---------|---------|------|
| SQL 注入 | [sql-injection.md](../../categories/sql-injection.md) | 15 个典型案例 + 高频注入 Payload |
| 命令执行 | [command-execution.md](../../categories/command-execution.md) | 15 个典型案例 + 命令执行 Payload |
| 未授权访问 | [unauthorized-access.md](../../categories/unauthorized-access.md) | 15 个典型案例 + 越权模式 |
| 弱口令 | [weak-password.md](../../categories/weak-password.md) | 15 个典型案例 + 高频弱口令 |
| 信息泄露 | [info-disclosure.md](../../categories/info-disclosure.md) | 15 个典型案例 + 泄露路径 |
| XSS | [xss.md](../../categories/xss.md) | 9 个典型案例 + XSS Payload |
| 配置不当 | [misconfig.md](../../categories/misconfig.md) | 15 个典型案例 + 错误配置模式 |
| 逻辑缺陷 | [logic-flaws.md](../../categories/logic-flaws.md) | 15 个典型案例 + 逻辑绕过 |
| 文件上传 | [file-upload.md](../../categories/file-upload.md) | 11 个典型案例 + 上传绕过 Payload |
| SSRF | [ssrf.md](../../categories/ssrf.md) | SSRF 攻击模式 |
| CSRF | [csrf.md](../../categories/csrf.md) | CSRF 利用模式 |
| 文件遍历 | [file-traversal.md](../../categories/file-traversal.md) | 5 个典型案例 + 遍历 Payload |
| RCE | [rce.md](../../categories/rce.md) | 3 个典型案例 + RCE 链 |
| XXE | [xxe.md](../../categories/xxe.md) | XXE 注入模式 |
| 其他 | [other.md](../../categories/other.md) | 13 个典型案例 |

> **渐进加载规则:** 先读第一层(领域参考)确定测试方向,再按需读第二层(深度分析)获取技术细节,最后在需要引用具体案例或 Payload 时才读第三层(案例库)。不要一次性加载所有文件。

**对每个领域,使用以下结构形成假设:**

```
假设:[业务流程 X] 容易受到 [攻击模式 Y] 的攻击
原因:[来自侦查的证据——参数可见、缺乏服务器验证、ID 可预测]
WooYun 模式:[与领域参考中匹配的模式]
影响:[业务影响——财务损失、数据泄露、账户接管]
测试:[具体的手动测试步骤]
```

### 第三阶段:针对性手动测试

业务逻辑需要手动测试,因为漏洞存在于应用如何解释业务规则的方式中,而不是扫描器可以匹配的技术特征。

1. **准备测试账号**
   - 至少 2 个相同权限级别的账号(用于水平测试)
   - 至少每个权限级别 1 个账号(用于垂直测试)
   - 记录所有会话令牌、Cookie、ID

2. **执行最小化测试**
   - 拦截特定请求(Burp/mitmproxy)
   - 仅修改要测试的参数
   - 观察:服务器是否验证?状态是否改变?
   - 记录确切的请求/响应对

3. **根据业务规则分析**
   - 应用是否在服务器端实施业务规则?
   - 状态转移是否可以被强制无序执行?
   - 是否可以访问/修改另一个用户的资源?
   - 财务价值是否可以被篡改?

4. **如果确认 → 第四阶段** · 如果否定 → 下一个假设 · 如果不确定 → 改变方法

### 第四阶段:影响评估与文档化

证明业务影响,而不仅仅是技术绕过。

```
## 发现:[标题]
- 严重级别:[严重/高/中/低]
- 领域:[认证/授权/金融/信息/逻辑/配置]
- WooYun 模式:[此发现匹配的历史模式]
- 业务影响:[财务损失、受影响用户数、数据范围]
- 重现步骤:
  1. [确切的步骤与请求/响应]
  2. [...]
- 补救:[服务器端修复,不是客户端创可贴]
```

## 真实案例

这些案例说明为什么业务逻辑测试很重要——每一个都代表 WooYun 研究者发现的真实漏洞:

| 案例 | 领域 | 影响 |
|------|------|------|
| 某平台越权遍历大量身份证件/行驶证件 | 授权 | 通过顺序文件 ID 泄露大量证件 |
| M1905电影网 2588元套餐漏洞只需5毛 | 金融 | 通过后端自批准绕过实现 5000 倍价格差异 |
| TCL统一认证平台可重置所有用户密码 | 认证 | 跨 N+ 个业务系统的完整账户接管 |
| 微糖主站SQL注入影响860W+患者/46W+医生 | 信息 | 860 万患者记录、46 万医生记录 |
| 某计费系统GetShell+生成充值卡 | 金融 | 任意充值卡生成 + 客户数据泄露 |
| 百合网某APP设计缺陷影响100W+女性手机号 | 逻辑流 | 100 万+ 电话号码通过设计缺陷泄露 |

## 需要避免的思维陷阱

测试业务逻辑时,要警惕这些导致浅层测试的常见理性化表现:

| 陷阱 | 现实 |
|------|------|
| "扫描器可以覆盖业务逻辑" | 扫描器找到的是特征,不是逻辑漏洞。没有扫描器能发现"订单状态可以跳过支付"。 |
| "我测试了主流程,它是安全的" | 22,132 个案例证明:逻辑漏洞存在于边界情况。 |
| "只需改价格为 0.01" | 那只是一个测试。WooYun 数据显示 17+ 种支付攻击模式。 |
| "IDOR 很简单,只需改 ID" | IDOR 有编码绕过、参数污染、JSON 嵌套。简单改 ID 只占案例的 30%。 |
| "前端验证了,就没问题" | 68.7% 的支付漏洞存在是因为验证仅在客户端。 |
| "管理员面板需要不同的凭证" | 58.2% 的未授权访问 = 完全没有身份验证的管理后台。 |

## 快速参考

| 阶段 | 关键活动 | 门槛标准 |
|------|---------|---------|
| **1. 映射** | 业务流程、状态机、信任边界 | 完整流程图已记录 |
| **2. 假设** | 基于 WooYun 模式的特定领域理论 | ≥5 个按影响排序的假设 |
| **3. 测试** | 手动拦截、单参数、精确观察 | 每个假设有证据支持或反驳 |
| **4. 报告** | 业务影响、重现步骤、补救措施 | 带有 WooYun 模式分类的发现 |

<!-- 数据源:WooYun 漏洞数据库(2016年7月)· 方法论 v2.0 -->

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

来自 GitHub

GitHub 星标
1,792
开发者
tanweai
许可证
未注明许可证 此 repo 未注明许可证,默认作者保留所有权利;转发或商用前请先询问作者。
最近代码更新
2026年7月14日
repo 中的 SKILL.md 文件(含译本和模板)
1