authorization-testing
БесплатноЗапускает вложенные скриптыНе проверенValidate authorization failures including IDOR, privilege escalation, and missing access controls. Test by attempting unauthorized access with…
Об этом скилле
Authorization Testing Skill
Purpose
Validate authorization failures by attempting actions that should be blocked based on:
- User identity (horizontal privilege escalation / IDOR)
- User role/privilege level (vertical privilege escalation)
- Resource ownership rules
- Function-level access controls
Vulnerability Types Covered
1. Insecure Direct Object Reference - IDOR (CWE-639)
Access other users' resources by manipulating object IDs.
Test Pattern: Authenticate as User A, access User B's resource (change ID in URL/params)
Expected: 403 Forbidden | Actual if vulnerable: 200 OK
Example: /api/user/456 accessed by user 123
2. Vertical Privilege Escalation (CWE-269, CWE-863)
Perform actions requiring higher privileges than possessed.
Test Pattern: Authenticate as regular user, attempt admin/privileged action
Expected: 403 Forbidden | Actual if vulnerable: 200 OK
Examples:
- Regular user calls
/admin/delete_user - User modifies their own role to admin via
/update_role - User accesses admin dashboard
3. Horizontal Privilege Escalation (CWE-639)
Access peer users' resources at same privilege level.
Test Pattern: Authenticate as User A (regular), access/modify User B's data (also regular)
Expected: 403 Forbidden | Actual if vulnerable: 200 OK
Example: User 2 modifies User 3's profile
4. Missing Authorization (CWE-862)
Actions execute without ANY authorization check.
Test Pattern: Authenticate with minimal privileges, attempt protected action
Expected: 403 Forbidden | Actual if vulnerable: 200 OK
Example: Unauthenticated or low-privilege access to /api/admin/users
5. Function-Level Access Control (CWE-285)
Wrong authorization logic applied to functions.
Test Pattern: Authenticate as user authorized for function X, attempt function Y (should be blocked) Expected: 403 Forbidden | Actual if vulnerable: 200 OK Example: Read-only user performs write operation
6. Direct Request / Forced Browsing (CWE-425)
Access restricted functionality by directly requesting URLs, bypassing normal navigation flow.
Test Pattern: Request admin/protected URL directly without proper authorization flow Expected: 403 Forbidden or redirect to login | Actual if vulnerable: 200 OK Examples:
- Direct access to
/admin/dashboardwithout admin session - Force-browsing to
/api/internal/configendpoint - Accessing
/reports/confidentialby guessing URL structure
Prerequisites
- Target application running and reachable
- Test accounts based on vulnerability type:
- IDOR/Horizontal: 2+ regular users (same role, different accounts)
- Vertical Escalation: 1 regular user + 1 admin user (different roles)
- Missing Authorization: 1 low-privilege or unauthenticated context
- VULNERABILITIES.json with suspected authorization failures
Testing Methodology
Phase 1: Understand Authorization Model
Before testing, read the source code to identify:
- Authentication mechanism (session cookies, JWT Bearer, API key, OAuth)
- Authorization checks (decorators like @admin_required, middleware, guards)
- Role/permission structure (user, admin, moderator, etc.)
- Resource ownership rules (user_id checks, tenant isolation)
- Where object identifiers appear (path params, query params, JSON body)
Key insight: Each app implements authorization differently. Read the code first!
Phase 2: Identify Test Scenarios
Map vulnerabilities to test types:
| CWE | Vulnerability | Test Type | Accounts Needed |
|---|---|---|---|
| CWE-639 | IDOR on /api/user/<id> |
Horizontal | 2 regular users |
| CWE-269 | Missing admin check on /update_role |
Vertical | 1 regular, 1 admin |
| CWE-862 | No authz on /admin/dashboard |
Missing | 1 regular user |
| CWE-863 | Flawed check on /api/profile/<id>/update |
IDOR | 2 regular users |
| CWE-284 | Generic access control bypass | Varies | Based on context |
| CWE-285 | Wrong authz logic on read-only endpoint | Function-level | Read-only + write user |
| CWE-425 | Direct URL access to /admin/config |
Forced browsing | 1 regular user |
Phase 3: Prepare Test Accounts
If .securevibes/DAST_TEST_ACCOUNTS.json exists:
{
"accounts": [
{"username": "user1", "password": "Pass123!", "user_id": "123", "role": "user"},
{"username": "user2", "password": "Pass456!", "user_id": "456", "role": "user"},
{"username": "admin", "password": "Admin789!", "user_id": "1", "role": "admin"}
]
}
Extract credentials for:
- Horizontal tests: user1, user2 (both regular role)
- Vertical tests: user1 (regular role), admin (admin role)
If no test accounts:
- Test only public endpoints
- Mark authenticated paths as UNVALIDATED (insufficient accounts)
Phase 4: Authenticate Test Users
Read application code to determine auth mechanism, then use aut
Установить authorization-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteBashВложенные файлы
FAQ
Что делает скилл authorization-testing?
Validate authorization failures including IDOR, privilege escalation, and missing access controls. Test by attempting unauthorized access with lower-privileged credentials. Use when testing CWE-639 (IDOR), CWE-269 (Improper Privilege Management), CWE-862 (Missing Authorization), CWE-863 (Incorrect Authorization), CWE-284 (Improper Access Control), CWE-285 (Improper Authorization), or CWE-425 (Direct Request / Forced Browsing) findings.
Как установить скилл authorization-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл authorization-testing запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic