ersinkoc/security-check/sc-authz
Claude Code and agent skill by ersinkoc/security-check
- community
Checking that the SKILL.md file is still in the repository.
Authorization flaw detection — IDOR, broken access control, horizontal and vertical privilege issues
Install
npx vskill@latest install ersinkoc/security-check/sc-authzSKILL.md
The same SKILL.md was published earlier as ersinkoc/security-check/sc-authz.
SC: Authorization Flaws (IDOR / Broken Access Control)
Purpose
Detects authorization vulnerabilities where authenticated users can access resources belonging to other users (IDOR/horizontal escalation), access admin functions without proper role checks (vertical escalation), or bypass access control through parameter manipulation. Traces from route handler to data access to verify that ownership or role checks are enforced.
Activation
Called by sc-orchestrator during Phase 2. Runs against all web applications and APIs.
Phase 1: Discovery
File Patterns to Search
Keyword Patterns to Search
IDOR Detection Pattern
Trace from HTTP route parameter to database query and check if user ownership is verified:
Missing Function-Level Access Control
Phase 2: Verification
Verification Steps
- Does the route handler accept a resource ID from the URL/body?
- Is the resource fetched using only that ID (no user filter)?
- Is the authenticated user's ID checked against the resource owner?
- Are admin endpoints protected by role-checking middleware?
- Is there middleware that automatically enforces ownership?
Severity Classification
- Critical: IDOR allowing access to all users' data, or admin function without any auth check
- High: IDOR on sensitive resources (financial, medical, personal data), role bypass on admin endpoints
- Medium: IDOR on less sensitive resources, or missing checks on uncommon endpoints
- Low: IDOR that exposes minimal information, or in internal/admin tools
Output Format
Finding: AUTHZ-{NNN}
- Title: {IDOR | Missing Access Control | Role Bypass} in {endpoint}
- Severity: Critical | High | Medium | Low
- Confidence: 0-100
- File: file/path:line
- Vulnerability Type: CWE-639 (IDOR) | CWE-862 (Missing Authorization) | CWE-863 (Incorrect Authorization)
- Description: {Endpoint} fetches {resource} using client-supplied ID without verifying ownership.
- Impact: Unauthorized access to other users' data, admin function access by regular users.
- Remediation: Add ownership check to database query. Use middleware-based authorization.
- References: https://cwe.mitre.org/data/definitions/639.html
Common False Positives
- Public resources — endpoints serving public data (product catalog, blog posts) don't need ownership checks
- Admin-scoped routes — routes behind admin middleware may not need individual ownership checks
- Self-referencing endpoints —
GET /api/me/profileuses authenticated user's ID, not a URL parameter - Multi-tenant middleware — tenant isolation enforced at middleware/database level, not in each query
- GraphQL dataloaders — authorization may be enforced in the dataloader layer, not the resolver
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sc-authz/SKILL.md
Popularity
- Repository stars
- 46
- Repository forks
- 5
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ersinkoc/security-check/sc-authz)