跳到正文
Skillpedia
安全48k · #4879

hunt-idor

它能做什么

这个工具可以帮助你找到一种叫做 IDOR(不安全的直接对象引用)的安全漏洞。它会查找那些可以在未经授权的情况下访问他人数据的方法,比如看到别人的账单或私信。

适用场景

  • ✓在测试网站或应用的安全性时。
  • ✓当你拥有查找安全漏洞的授权时。
  • ✓想了解用户数据是如何被保护的时候。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-idor/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“在 example.com 上查找 IDOR 漏洞”

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

工作原理

这个工具会分析 URL 和服务器响应中的常见模式,找出可能存在对象 ID 访问不当的位置。它还会建议如何测试这些位置,比如替换 ID,看看是否会暴露其他用户的数据。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

Crown Jewel Targets

Why IDOR pays big:

  • Direct access to other users' data without authentication bypass — clear, demonstrable impact
  • Chains easily with privilege escalation, financial fraud, and account takeover
  • Affects virtually every application with user-owned resources

Highest-value asset types (by payout potential):

Asset Type Why It Pays
Financial documents / billing APIs PII + financial data exposure (Shopify, Uber, PayPal)
Private repositories / source code IP theft, critical data loss (GitHub)
User messages / DMs Privacy violation at scale (Reddit)
Account management endpoints User addition, deletion, privilege escalation (PayPal, Mozilla)
Business/org administration Cross-tenant escalation, employee PII (Uber)
Content moderation/admin actions Operational sabotage (Reddit mod logs)

Programs that pay most for IDOR:

  • Platforms with multi-tenancy (SaaS, B2B tools)
  • Fintech and payment processors
  • Social platforms with private content
  • Developer tools with org/repo isolation

Attack Surface Signals

URL patterns that scream IDOR:

/api/v1/users/{id}/
/api/v*/orders/{order_id}
/invoices/download?id=
/reports/{uuid}/
/messages/{thread_id}
/admin/orgs/{org_id}/members
/migration/{migration_id}/files
/graphql (query params with IDs)
/api/business/{business_id}/
/vouchers/{voucher_id}/policy

Response header signals:

  • Content-Type: application/json on endpoints accepting raw IDs
  • No X-Frame-Options or CORS misconfigs paired with ID params
  • Authorization: Bearer tokens that are user-scoped but hit org-level resources

JavaScript source patterns:

// Look for hardcoded or interpolated IDs in JS
fetch(`/api/v1/users/${userId}/profile`)
axios.get('/invoices/' + invoiceId)
graphql query { billingDocument(id: $docId) }
// Redux/state stores exposing foreign IDs
state.currentUser.organizationId

Tech stack signals:

  • GraphQL endpoints (query-based IDORs are often missed)
  • REST APIs with sequential integer IDs (most vulnerable)
  • UUIDs that are predictable or leaked in other responses
  • Multi-tenant SaaS apps with org_id, account_id, business_id params
  • Mobile apps (Burp the APK — mobile APIs often skip authorization checks)

Step-by-Step Hunting Methodology

  1. Map all object references in the application

    • Browse every feature authenticated as User A
    • Capture all requests in Burp Suite
    • Filter for requests containing: id=, _id=, uuid=, /v1/{noun}/{id}, query params with numeric/UUID values
  2. Enumerate ID types

    • Sequential integers → enumerate ±1, ±100
    • UUIDs → check if they appear in other responses or JS files
    • Hashed IDs → check if leaked in public endpoints, metadata, or GraphQL introspection
  3. Create two separate accounts (same privilege level)

    • User A: resource owner
    • User B: attacker account
    • Log all IDs belonging to User A while authenticated as User A
  4. Replay User A's resource IDs as User B

    • Replace session cookie/token with User B's credentials
    • Send identical requests referencing User A's object IDs
    • Test ALL HTTP verbs: GET, POST, PUT, PATCH, DELETE on each endpoint
  5. Test cross-tenant/cross-org scenarios

    • Create accounts in separate organizations/businesses
    • Test if Org B's session can reference Org A's IDs
    • Pay special attention to admin/management endpoints
  6. Test GraphQL specifically

    • Run introspection: { __schema { queryType { fields { name } } } }

…

常见问题

什么是 IDOR?

IDOR 是 “Insecure Direct Object Reference” 的缩写,中文可以理解为“不安全的直接对象引用”。这是一种安全漏洞:用户只需修改 URL 或请求中的参数(通常是数字或 ID),就能访问本不该访问的资源,比如文件、数据或功能。

为什么 IDOR 很危险?

它可能导致其他用户的敏感信息泄露,比如个人资料、财务信息或私人消息。攻击者还可能借此修改或删除他人的数据。

使用这个工具需要授权吗?

需要,这一点非常重要。这个工具只能用于你拥有明确书面授权、可以进行安全测试的系统。未经授权使用是违法的。

详情

作者的原始描述

Hunting skill for idor vulnerabilities. Built from 26 public bug bounty reports. Use when hunting idor on any target.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4879
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能