Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

access-control访问控制

Agent Skill

access-control 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

261

周安装

11

GitHub Stars

9

下载量

92
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:access-control(访问控制)
来源仓库:https://github.com/florianbuetow/claude-code
仓库路径:skills/access-control
安装命令:
npx skills add https://github.com/florianbuetow/claude-code --skill access-control
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/florianbuetow/claude-code --skill access-control

简介

access-control 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于关键词搜索、任务场景匹配和来源线索筛选等研究检索场景。
  • 通过 npx skills add 命令从 GitHub 仓库安装并使用该技能。
  • 安装前需确认权限范围、维护状态,避免触发联网或文件读写操作。
  • 建议结合原始 README 核验具体用法和功能边界。

SKILL.md

Broken Access Control (A01:2021)

Analyze source code for broken access control vulnerabilities including missing authorization checks, insecure direct object references, CORS misconfiguration, JWT manipulation, directory traversal, and privilege escalation.

Supported Flags

Read ../../shared/schemas/flags.md for the full flag specification. This skill supports all cross-cutting flags. Key flags for this skill:

  • --scope determines which files to analyze (default: changed)
  • --depth standard reads code and checks middleware chains
  • --depth deep traces authorization across call graphs and middleware stacks
  • --severity filters output (access control issues are often high or critical)

Framework Context

Read ../../shared/frameworks/owasp-top10-2021.md, section A01:2021 - Broken Access Control, for the full category description, common vulnerabilities, and prevention guidance.

Key CWEs in scope:

  • CWE-200: Exposure of Sensitive Information
  • CWE-284: Improper Access Control
  • CWE-285: Improper Authorization
  • CWE-352: Cross-Site Request Forgery
  • CWE-639: Authorization Bypass Through User-Controlled Key (IDOR)
  • CWE-862: Missing Authorization
  • CWE-863: Incorrect Authorization

Detection Patterns

Read references/detection-patterns.md for the full catalog of code patterns, search heuristics, language-specific examples, and false positive guidance.

Workflow

1. Determine Scope

Parse flags and resolve the file list per ../../shared/schemas/flags.md. Filter to files likely to contain access control logic:

  • Route/controller definitions (**/routes/**, **/controllers/**, **/handlers/**)
  • Middleware files (**/middleware/**, **/middlewares/**)
  • Authorization modules (**/auth/**, **/authz/**, **/policies/**, **/guards/**)
  • API endpoint definitions (**/api/**, **/endpoints/**)
  • Configuration files for CORS, JWT, and session management

2. Check for Available Scanners

Detect scanners per ../../shared/schemas/scanners.md:

  1. semgrep — primary scanner for access control patterns
  2. bandit — Python-specific authorization issues
  3. brakeman — Rails mass assignment and authorization bypasses

Record which scanners are available and which are missing.

3. Run Scanners (If Available)

If semgrep is available, run with rules targeting access control:

semgrep scan --config auto --json --quiet <target>

Filter results to rules matching access control, authorization, CORS, JWT, and IDOR patterns. Normalize output to the findings schema.

4. Claude Code Analysis

Regardless of scanner availability, perform manual code analysis:

  1. Route inventory: Grep for route definitions and check each has authorization middleware.
  2. Object access: Find database lookups using user-supplied IDs and verify ownership checks.
  3. CORS config: Locate CORS configuration and check for wildcard or overly permissive origins.
  4. JWT handling: Find JWT verification code and check that claims are validated.
  5. Path handling: Find file path operations using user input and check for traversal prevention.
  6. Role checks: Identify role-based decisions and verify they cover both horizontal and vertical access.

When --depth deep, additionally trace:

  • Full middleware chains from route to handler
  • Authorization decorator/annotation inheritance
  • Cross-service authorization delegation

5. Report Findings

Format output per ../../shared/schemas/findings.md using the AC prefix (e.g., AC-001, AC-002).

Include for each finding:

  • Severity and confidence
  • Exact file location with code snippet
  • Impact description specific to the access control failure
  • Concrete fix with diff when possible
  • CWE and OWASP references

What to Look For

These are the high-signal patterns specific to broken access control. Each maps to a detection pattern in references/detection-patterns.md.

  1. Routes without authorization middleware — Endpoints that handle sensitive data or mutations but have no auth middleware in their chain.
  2. Direct object references without ownership — Database lookups using req.params.id or similar without filtering by the authenticated user.
  3. CORS wildcard or reflectionAccess-Control-Allow-Origin: * or reflecting the Origin header without validation, especially with credentials.
  4. JWT claims used without verification — Reading JWT payload without verifying signature, or trusting client-supplied role/permission claims.
  5. Path traversal via user input — File operations using user-supplied paths without canonicalization or allowlist validation.
  6. Missing function-level access control — Admin endpoints accessible to regular users, or API actions without role verification.
  7. Forced browsing to predictable URLs — Sequential IDs or predictable resource paths without authorization checks.
  8. Horizontal privilege escalation — Users can access other users' data by changing an identifier, with no server-side ownership verification.

Scanner Integration

ScannerCoverageCommand
semgrepIDOR, missing auth middleware, CORS, JWT issuessemgrep scan --config auto --json --quiet <target>
banditPython authorization patternsbandit -r <target> -f json -q
brakemanRails mass assignment, authorizationbrakeman -q -f json -o /dev/stdout

Fallback (no scanner): Use Grep with patterns from references/detection-patterns.md to find route definitions, database queries with user-controlled IDs, CORS headers, and JWT decode calls. Report findings with confidence: medium.

Relevant semgrep rule categories:

  • python.django.security.audit.unvalidated-*
  • javascript.express.security.audit.missing-auth-*
  • java.spring.security.audit.missing-authorization
  • generic.cors.security.wildcard-origin

Output Format

Use the findings schema from ../../shared/schemas/findings.md.

  • ID prefix: AC (e.g., AC-001)
  • metadata.tool: access-control
  • metadata.framework: owasp
  • metadata.category: A01
  • references.owasp: A01:2021
  • references.stride: E (Elevation of Privilege) or I (Information Disclosure)

Severity guidance for this category:

  • critical: Unauthenticated access to admin functions, mass IDOR exposing all user data
  • high: Authenticated IDOR, missing authorization on mutation endpoints, CORS with credentials + wildcard
  • medium: CORS misconfiguration without credentials, missing rate limiting on auth endpoints
  • low: Verbose error messages revealing authorization logic, minor forced browsing risks

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.64%
按下载量换算34

Claude

30.11%
按下载量换算28

Cursor

19.18%
按下载量换算18

Gemini CLI

11.31%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills