Logo Hunt Idor

Hunt Idor

Cộng đồng
Encod3d-Sec
hunt-idor

Săn tìm IDOR / BOLA — phương pháp hai tài khoản, phát hiện mã định danh và lần theo rò rỉ UUID, kiểm tra mã định danh đáng tin cậy, IDOR ở node GraphQL và đối tượng lồng nhau, leo thang giữa các tenant, thao tác ghi và xóa. Lấy mẫu ID có giới hạn, không quét theo dải. Ưu tiên wiki, đầu ra theo schema FIND. Kích hoạt khi gặp IDOR, BOLA, kiểm soát truy cập bị lỗi, phân quyền cấp đối tượng, truy cập chéo tenant, "đọc dữ liệu của người dùng khác", "đổi id" hoặc bất kỳ đường dẫn hay tham số API nào chứa ID dạng số, UUID hoặc mã định danh tài khoản.

Add to TypingMind

Tổng quan

Nhà phát hànhEncod3d-Sec
Kho mãTORCH
Tên kỹ nănghunt-idor
Sao
334
Bản fork
48
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được Encod3d-Sec công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Hunt Idor trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Encod3d-Sec/TORCH/tree/main/skills/hunt/hunt-idor
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Encod3d-Sec/TORCH.git /tmp/TORCH
mkdir -p .claude/skills
cp -r /tmp/TORCH/skills/hunt/hunt-idor .claude/skills/hunt-idor
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Hunt Idor trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Hunt Idor ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Hunt Idor với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Hunt: IDOR / Broken Object Level Authorization

Assumes hunt-core for the scope gate, two-account rule, confirmation gate, enumeration limits, stop conditions, wiki protocol, FIND output, and Deadends. Do not re-derive any of that here.

Wiki

qmd_query "IDOR BOLA insecure direct object reference access control" via wiki-search MCP

Hub: [[web-moc]] (live web index). Primary page: [[access-control]]. Payload arsenal: wiki/payloads/idor.md. Anchors: [[uuid-insecurities]] (v1-UUID timestamp/MAC when an object ID is a UUID rather than a sequential integer), [[jwt-attacks]] (chain a trusted sub/user_id claim to ATO, hand off to hunt-auth).

Attack surface signals

URL patterns: /api/v1/users/{id}, /invoices?id=, /reports/{uuid}/, /messages/{thread_id}, /admin/orgs/{org_id}/members

GraphQL: any query or mutation taking an id argument. Check for node(id: "...") global lookups - one endpoint reaching every object type, with per-type authorization frequently missing on at least one.

Rank before testing. Not all endpoints are equally likely:

  • Newest features - middleware follows codebase conventions; a feature written outside them misses it.
  • Bulk and export endpoints - one request, many objects, much higher severity per finding.
  • Anything carrying two identifiers - see the trusted-identifier test below.
  • Cross-service internal calls - the internal hop often carries no user context at all.
  • File and document access - frequently a separate host or CDN with no authorization beyond knowing the ID.
  • Non-GET verbs on read-looking endpoints - GET /orders/123 authorized, PATCH not.

Where the identifiers are

Check all of these; the least obvious are the least protected. Path segments, query parameters, request bodies (including nested objects), headers (X-User-Id, X-Account-Id, X-Tenant-Id), cookies, JWT claims, GraphQL variables, WebSocket messages, and file/CDN URLs.

Get B's identifiers from B. Log in as B and read them from B's own traffic, profile page, or JWT. Record in identities.md. Never obtain an identifier by incrementing until you find out whose it is - that is enumerating real users.

Decode opaque identifiers before assuming they are random. Base64 and hex frequently decode to a plain integer or a type:id pair. Where the ID is a hash, test whether it hashes something knowable (email, user ID, timestamp) and compute B's offline.

UUID: a two-part finding

A random UUID is not an authorization control, but it is a practical barrier. The finding becomes a chain:

  1. The check is missing - test with B's UUID, which you legitimately hold.
  2. The UUID is obtainable - find where it leaks.

Report both together. Part 1 alone gets triaged down as "requires an unguessable identifier."

Leak sources worth working: search and autocomplete endpoints, notification and activity feeds, team and member lists, verbose errors, notification emails, exported files, share and invite links, and objects you can read that reference objects you cannot.

Also verify the UUID is actually random - v1 encodes timestamp and MAC ([[uuid-insecurities]]), and hand-rolled implementations frequently emit sequential values dressed as UUIDs.

Methodology

Setup: two accounts per hunt-core. A owns, B attacks. Separate profiles.

Drive it through Burp for operator visibility. With A's request captured in Repeater or proxy history:

scripts/burp/idor-sweep.py <eng> <reqfile> --attacker-auth "Cookie: session=USER_B" --range 5

Sends owner-baseline / idor-test / bounded id sample through send_http1_request, diffs status and body, prints a verdict and a ready capture.sh burp PoC line. Honors no_bruteforce -> range 0. Do not raise --range above the hunt-core limits without operator approval.

For GUI-visible replay: create_repeater_tab for an A tab and a B tab, or send_to_intruder with a bounded number payload.

  1. Log in as A, browse every feature, note every ID - object, UUID, org, invoice, thread.
  2. Baseline both directions. A requests A's object. B requests B's object. Record status, length, body shape. You are testing against these, not against intuition.
  3. Cross-request: B requests A's object with B's session.
bash
# Baseline - A owns it
curl -s -H "Cookie: session=USER_A" https://target.com/api/v1/invoices/12345

# Cross-account - B attempts
curl -s -H "Cookie: session=USER_B" https://target.com/api/v1/invoices/12345
  1. Rule out legitimate access before claiming anything. Is the object shared with B, in a shared team, public, or org-visible? Check the UI as B. This is the single most common false positive in this class - an app with sharing features generates them constantly.
  2. Trusted-identifier test - run this on every endpoint carrying two identifiers. The highest value test in IDOR and the most frequently skipped. Make the session and the parameter disagree:
Session: account B
Body:    {"user_id": "<A's id>", "action": "..."}
  • Server acts on B -> identity derived from session, parameter ignored. Correct.
  • Server acts on A -> the parameter is trusted. IDOR, usually critical, fully attacker-controlled.
  • Server errors on mismatch -> it compares them. Correct, and evasion is the next step.

Apply the same to JWT claims: modify sub / user_id and see whether the server derives the acting user from the claim or looks it up. Trusted claim plus weak signature chains to arbitrary account takeover - hand off to hunt-auth.

  1. All verbs. GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS. Authorization applied per-method rather than per-resource is common.
  2. When the direct swap 403s, it is not closed. Parameter pollution (?id=A&id=B - the check and the fetch may read different occurrences), array wrapping ({"id":["A","B"]}), nested wrapping ({"user":{"id":"B"}}), path traversal in the identifier, encoding and case variation, version downgrade (/v1/ predates the middleware /v2/ has - the most reliable of these), and batch endpoints where per-item authorization is missing.
  3. Cross-tenant. Two accounts in different orgs. Categorically more severe than user-to-user inside one tenant: it breaks the isolation the product is sold on and implicates every customer. Say "cross-tenant" in the title - it changes who reads the report.
  4. GraphQL. Nested traversal is the signature bug - the entry point is authorized, the resolvers are not:
graphql
query { me { organization { members { id email phone } } } }

Walk every edge from an authorized root. Also test node(id:) global lookups, aliases for parallel object access in one request, and mutations that introspection reveals but the UI never calls.

  1. Write and delete. More severe, more dangerous. Test on your own objects first to learn the request shape. Prefer reversible operations - changing B's display name proves it; deleting B's account proves the same and destroys your setup. Confirm from B's side. Never test a destructive write against an identifier you have not confirmed is B's.
  2. Bounded ID sampling - never a range sweep. Per hunt-core: five identifiers by default, twenty ceiling with approval, zero under no_bruteforce. Two or three adjacent IDs establish a sequential pattern; that is the whole proof. For scale, cite the total or pagination count, not retrieved records.
bash
# Bounded sample around a known ID - NOT a range sweep
known=48291
for i in $(seq $((known-2)) $((known+2))); do
  printf '%s ' "$i"
  curl -s -o /dev/null -w '%{http_code} %{size_download}\n' \
    -H "Authorization: Bearer USER_B_TOKEN" \
    "https://target.com/api/v1/orders/$i"
done
  1. Automate the breadth, verify every flag by hand. Session-replay tooling (Autorize-style) replaying every request under B's session while you browse as A turns this into a background pass. It produces false positives on endpoints returning identical public content - it narrows the queue, it does not produce findings.
  2. Distill when confirmed - reusable GraphQL IDOR or UUID-bypass technique, GENERIC, no client host: python3 scripts/wiki-stage.py --kind technique --slug <slug> --target-page techniques/web/access-control.md

Confirmation gate

NOT confirmation: a 200 with an empty or shell response; the object echoed back from your own request; B seeing an object that is shared, public, or org-visible; a response you have not compared against A's baseline; a write returning 200 with no state change verified from B's side.

IS confirmation: B's session returns A's data, matching A's own baseline response, with A's legitimate-access ruled out, reproduced in a clean session - and for writes, the change visible in B's UI.

Severity

Rated on the object, not the mechanism.

ObjectTypical
Session token, API key, reset tokencritical - direct ATO
Full user records with PIIcritical / high
Payment or billing detailcritical / high
Private documents, messageshigh
Account settings (write)high - enables takeover via email change
Internal identifiers onlylow - enables other attacks

Write outranks read at the same object. Unauthenticated outranks authenticated by a full band. Cross-tenant outranks cross-user. An unguessable identifier you cannot show leaking lowers it - chase the leak first.

Deadends

Append: - [ ] IDOR on <host> <endpoint> -- 403/404 cross-account, authorization enforced;
              tried pollution/array/verb/version downgrade

Record what you tried, not just that it failed. The next pass needs to know the boundary.

Câu hỏi thường gặp

Kỹ năng AI Hunt Idor làm được gì?

Săn tìm IDOR / BOLA — phương pháp hai tài khoản, phát hiện mã định danh và lần theo rò rỉ UUID, kiểm tra mã định danh đáng tin cậy, IDOR ở node GraphQL và đối tượng lồng nhau, leo thang giữa các tenant, thao tác ghi và xóa. Lấy mẫu ID có giới hạn, không quét theo dải. Ưu tiên wiki, đầu ra theo schema FIND. Kích hoạt khi gặp IDOR, BOLA, kiểm soát truy cập bị lỗi, phân quyền cấp đối tượng, truy cập chéo tenant, "đọc dữ liệu của người dùng khác", "đổi id" hoặc bất kỳ đường dẫn hay tham số API nào chứa ID dạng số, UUID hoặc mã định danh tài khoản.

Vì sao nên dùng Hunt Idor trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Hunt Idor là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Hunt Idor trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Encod3d-Sec/TORCH/tree/main/skills/hunt/hunt-idor. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Hunt Idor?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Hunt Idor với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Hunt Idor với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Hunt Idor có miễn phí không?

Có. Kỹ năng này được Encod3d-Sec phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇