Strix•IDOR 测试 标志

Strix•IDOR 测试

社区
asdfgh1445
Strix•IDOR 测试

Strix IDOR/BOLA 测试手册,覆盖对象级授权失效与跨账户数据访问;触发名:strix-idor

概览

发布者asdfgh1445
代码仓库ctf-super-hub
技能名称Strix•IDOR 测试
星标数
836
复刻数
105
附带文件
仅含指令
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 asdfgh1445 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Strix•IDOR 测试 AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/asdfgh1445/ctf-super-hub/tree/main/strix-idor
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/asdfgh1445/ctf-super-hub.git /tmp/ctf-super-hub
mkdir -p .claude/skills
cp -r /tmp/ctf-super-hub/strix-idor .claude/skills/asdfgh1445-strix-idor
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Strix•IDOR 测试,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Strix•IDOR 测试。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Strix•IDOR 测试 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

IDOR

Object-level authorization failures (BOLA/IDOR) lead to cross-account data exposure and unauthorized state changes across APIs, web, mobile, and microservices. Treat every object reference as untrusted until proven bound to the caller.

Attack Surface

Scope

  • Horizontal access: access another subject's objects of the same type
  • Vertical access: access privileged objects/actions (admin-only, staff-only)
  • Cross-tenant access: break isolation boundaries in multi-tenant systems
  • Cross-service access: token or context accepted by the wrong service

Reference Locations

  • Paths, query params, JSON bodies, form-data, headers, cookies
  • JWT claims, GraphQL arguments, WebSocket messages, gRPC messages

Identifier Forms

  • Integers, UUID/ULID/CUID, Snowflake, slugs
  • Composite keys (e.g., {orgId}:{userId})
  • Opaque tokens, base64/hex-encoded blobs

Relationship References

  • parentId, ownerId, accountId, tenantId, organization, teamId, projectId, subscriptionId

Expansion/Projection Knobs

  • fields, include, expand, projection, with, select, populate
  • Often bypass authorization in resolvers or serializers

High-Value Targets

  • Exports/backups/reporting endpoints (CSV/PDF/ZIP)
  • Messaging/mailbox/notifications, audit logs, activity feeds
  • Billing: invoices, payment methods, transactions, credits
  • Healthcare/education records, HR documents, PII/PHI/PCI
  • Admin/staff tools, impersonation/session management
  • File/object storage keys (S3/GCS signed URLs, share links)
  • Background jobs: import/export job IDs, task results
  • Multi-tenant resources: organizations, workspaces, projects

Reconnaissance

Parameter Analysis

  • Pagination/cursors: page[offset], page[limit], cursor, nextPageToken (often reveal or accept cross-tenant/state)
  • Directory/list endpoints as seeders: search/list/suggest/export often leak object IDs for secondary exploitation

Enumeration Techniques

  • Alternate types: {"id":123} vs {"id":"123"}, arrays vs scalars, objects vs scalars
  • Edge values: null/empty/0/-1/MAX_INT, scientific notation, overflows
  • Duplicate keys/parameter pollution: id=1&id=2, JSON duplicate keys {"id":1,"id":2} (parser precedence)
  • Case/aliasing: userId vs userid vs USER_ID; alt names like resourceId, targetId, account
  • Path traversal-like in virtual file systems: /files/user_123/../../user_456/report.csv

UUID/Opaque ID Sources

  • Logs, exports, JS bundles, analytics endpoints, emails, public activity
  • Time-based IDs (UUIDv1, ULID) may be guessable within a window

Key Vulnerabilities

Horizontal & Vertical Access

  • Swap object IDs between principals using the same token to probe horizontal access
  • Repeat with lower-privilege tokens to probe vertical access
  • Target partial updates (PATCH, JSON Patch/JSON Merge Patch) for silent unauthorized modifications

Bulk & Batch Operations

  • Batch endpoints (bulk update/delete) often validate only the first element; include cross-tenant IDs mid-array
  • CSV/JSON imports referencing foreign object IDs (ownerId, orgId) may bypass create-time checks

Secondary IDOR

  • Use list/search endpoints, notifications, emails, webhooks, and client logs to collect valid IDs
  • Fetch or mutate those objects directly
  • Pagination/cursor manipulation to skip filters and pull other users' pages

Job/Task Objects

  • Access job/task IDs from one user to retrieve results for another (export/{jobId}/download, reports/{taskId})
  • Cancel/approve someone else's jobs by referencing their task IDs

File/Object Storage

  • Direct object paths or weakly scoped signed URLs
  • Attempt key prefix changes, content-disposition tricks, or stale signatures reused across tenants
  • Replace share tokens with tokens from other tenants; try case/URL-encoding variations

GraphQL

  • Enforce resolver-level checks: do not rely on a top-level gate
  • Verify field and edge resolvers bind the resource to the caller on every hop
  • Abuse batching/aliases to retrieve multiple users' nodes in one request
  • Global node patterns (Relay): decode base64 IDs and swap raw IDs
  • Overfetching via fragments on privileged types
graphql
query IDOR {
  me { id }
  u1: user(id: "VXNlcjo0NTY=") { email billing { last4 } }
  u2: node(id: "VXNlcjo0NTc=") { ... on User { email } }
}

Microservices & Gateways

  • Token confusion: token scoped for Service A accepted by Service B due to shared JWT verification but missing audience/claims checks
  • Trust on headers: reverse proxies or API gateways injecting/trusting headers like X-User-Id, X-Organization-Id; try overriding or removing them
  • Context loss: async consumers (queues, workers) re-process requests without re-checking authorization

Multi-Tenant

  • Probe tenant scoping through headers, subdomains, and path params (X-Tenant-ID, org slug)
  • Try mixing org of token with resource from another org
  • Test cross-tenant reports/analytics rollups and admin views which aggregate multiple tenants

WebSocket

  • Authorization per-subscription: ensure channel/topic names cannot be guessed (user_{id}, org_{id})
  • Subscribe/publish checks must run server-side, not only at handshake
  • Try sending messages with target user IDs after subscribing to own channels

gRPC

  • Direct protobuf fields (owner_id, tenant_id) often bypass HTTP-layer middleware
  • Validate references via grpcurl with tokens from different principals

Integrations

  • Webhooks/callbacks referencing foreign objects (e.g., invoice_id) processed without verifying ownership
  • Third-party importers syncing data into wrong tenant due to missing tenant binding

Bypass Techniques

Parser & Transport

  • Content-type switching: application/json ↔ application/x-www-form-urlencoded ↔ multipart/form-data
  • Method tunneling: X-HTTP-Method-Override, _method=PATCH; or using GET on endpoints incorrectly accepting state changes
  • JSON duplicate keys/array injection to bypass naive validators

Parameter Pollution

  • Duplicate parameters in query/body to influence server-side precedence (id=123&id=456); try both orderings
  • Mix case/alias param names so gateway and backend disagree (userId vs userid)

Cache & Gateway

  • CDN/proxy key confusion: responses keyed without Authorization or tenant headers expose cached objects to other users
  • Manipulate Vary and Accept headers
  • Redirect chains and 304/206 behaviors can leak content across tenants

Race Windows

  • Time-of-check vs time-of-use: change the referenced ID between validation and execution using parallel requests

Blind Channels

  • Use differential responses (status, size, ETag, timing) to detect existence
  • Error shape often differs for owned vs foreign objects
  • HEAD/OPTIONS, conditional requests (If-None-Match/If-Modified-Since) can confirm existence without full content

Chaining Attacks

  • IDOR + CSRF: force victims to trigger unauthorized changes on objects you discovered
  • IDOR + Stored XSS: pivot into other users' sessions through data you gained access to
  • IDOR + SSRF: exfiltrate internal IDs, then access their corresponding resources
  • IDOR + Race: bypass spot checks with simultaneous requests

Testing Methodology

  1. Build matrix - Subject × Object × Action matrix (who can do what to which resource)
  2. Obtain principals - At least two: owner and non-owner (plus admin/staff if applicable)
  3. Collect IDs - Capture at least one valid object ID per principal from list/search/export endpoints
  4. Cross-channel testing - Exercise every action (R/W/D/Export) while swapping IDs, tokens, tenants
  5. Transport variation - Test across web, mobile, API, GraphQL, WebSocket, gRPC
  6. Consistency check - Same rule must hold regardless of transport, content-type, serialization, or gateway

Validation

  1. Demonstrate access to an object not owned by the caller (content or metadata)
  2. Show the same request fails with appropriately enforced authorization when corrected
  3. Prove cross-channel consistency: same unauthorized access via at least two transports (e.g., REST and GraphQL)
  4. Document tenant boundary violations (if applicable)
  5. Provide reproducible steps and evidence (requests/responses for owner vs non-owner)

False Positives

  • Public/anonymous resources by design
  • Soft-privatized data where content is already public
  • Idempotent metadata lookups that do not reveal sensitive content
  • Correct row-level checks enforced across all channels

Impact

  • Cross-account data exposure (PII/PHI/PCI)
  • Unauthorized state changes (transfers, role changes, cancellations)
  • Cross-tenant data leaks violating contractual and regulatory boundaries
  • Regulatory risk (GDPR/HIPAA/PCI), fraud, reputational damage

Pro Tips

  1. Always test list/search/export endpoints first; they are rich ID seeders
  2. Build a reusable ID corpus from logs, notifications, emails, and client bundles
  3. Toggle content-types and transports; authorization middleware often differs per stack
  4. In GraphQL, validate at resolver boundaries; never trust parent auth to cover children
  5. In multi-tenant apps, vary org headers, subdomains, and path params independently
  6. Check batch/bulk operations and background job endpoints; they frequently skip per-item checks
  7. Inspect gateways for header trust and cache key configuration
  8. Treat UUIDs as untrusted; obtain them via OSINT/leaks and test binding
  9. Use timing/size/ETag differentials for blind confirmation when content is masked
  10. Prove impact with precise before/after diffs and role-separated evidence

Summary

Authorization must bind subject, action, and specific object on every request, regardless of identifier opacity or transport. If the binding is missing anywhere, the system is vulnerable.

常见问题

Strix•IDOR 测试 AI 技能有什么作用?

Strix IDOR/BOLA 测试手册,覆盖对象级授权失效与跨账户数据访问;触发名:strix-idor

为什么在 TypingMind 中使用 Strix•IDOR 测试?

因为您只需安装一次,就能搭配任何模型使用。Strix•IDOR 测试 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Strix•IDOR 测试?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/asdfgh1445/ctf-super-hub/tree/main/strix-idor。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Strix•IDOR 测试?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Strix•IDOR 测试 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Strix•IDOR 测试 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Strix•IDOR 测试 AI 技能免费吗?

asdfgh1445 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇