api-recon-and-docs
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSKILL: API Recon and Docs — Endpoints, Schemas, and Version Surface
SKILL: API侦察与文档——端点、模式和版本暴露面
AI LOAD INSTRUCTION: Use this skill first when the target is a REST, mobile, or GraphQL API and you need to enumerate endpoints, documentation, versions, and hidden surface area before exploitation.
AI加载说明:当目标为REST、移动或GraphQL API,且你需要在漏洞利用前枚举端点、文档、版本和隐藏暴露面时,优先使用此技能。
1. PRIMARY GOALS
1. 主要目标
- Discover all reachable API entrypoints.
- Extract schemas, optional fields, and role differences.
- Identify old versions, mobile paths, GraphQL endpoints, and undocumented parameters.
- 发现所有可访问的API入口点。
- 提取模式、可选字段和角色差异。
- 识别旧版本、移动路径、GraphQL端点和未记录参数。
2. RECON CHECKLIST
2. 侦察清单
JavaScript and client mining
JavaScript与客户端挖掘
bash
curl https://target/app.js | grep -oE '(/api|/rest|/graphql)[^"'\'' ]+' | sort -ubash
curl https://target/app.js | grep -oE '(/api|/rest|/graphql)[^"'\'' ]+' | sort -uCommon documentation and schema paths
常见文档和模式路径
text
/swagger.json
/openapi.json
/api-docs
/docs
/.well-known/
/graphql
/gqltext
/swagger.json
/openapi.json
/api-docs
/docs
/.well-known/
/graphql
/gqlVersion and product drift
版本与产品漂移
text
/api/v1/
/api/v2/
/api/mobile/v1/
/legacy/text
/api/v1/
/api/v2/
/api/mobile/v1/
/legacy/3. WHAT TO EXTRACT FROM DOCS
3. 需从文档中提取的内容
- optional and undocumented fields
- admin-only request examples
- deprecated endpoints that may still be active
- schema hints like
additionalProperties: true - parameter names tied to filtering, sorting, IDs, roles, or tenancy
- 可选和未记录字段
- 仅管理员可见的请求示例
- 可能仍处于活跃状态的已弃用端点
- 模式提示,例如
additionalProperties: true - 与过滤、排序、ID、角色或租户关联的参数名称
4. NEXT ROUTING
4. 后续流程指引
| Finding | Next Skill |
|---|---|
| object IDs everywhere | api authorization and bola |
| JWT, OAuth, role claims | api auth and jwt abuse |
| GraphQL or hidden fields | graphql and hidden parameters |
| strong auth boundary but suspicious business flow | business logic vulnerabilities |
| 发现内容 | 后续技能 |
|---|---|
| 随处可见的对象ID | api authorization and bola |
| JWT、OAuth、角色声明 | api auth and jwt abuse |
| GraphQL或隐藏字段 | graphql and hidden parameters |
| 身份验证边界严格但业务流程可疑 | business logic vulnerabilities |