testing-for-broken-access-control

Detect broken access control by replaying requests across authentication contexts.

2|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/Acczdy/MoZiSec --skill testing-for-broken-access-control
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-for-broken-access-control
Source: https://github.com/Acczdy/MoZiSec/tree/main/web-security/.claude/skills/testing-for-broken-access-control
Command: npx skills add https://github.com/Acczdy/MoZiSec --skill testing-for-broken-access-control

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, urllib3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill provides a systematic approach to discover and validate broken access control vulnerabilities in web applications and APIs, reducing the risk of unauthorized data access and privilege escalation.

Core Features & Use Cases

  • Endpoint mapping & matrix creation: Enumerate endpoints and document expected role-based access to identify mismatches.
  • Privilege escalation simulation: Test vertical and horizontal escalation, method-override bypasses, mass-assignment, and IDOR scenarios across roles.
  • Multi-tenant and function-level checks: Verify tenant isolation and function-level authorization for both UI and API surfaces; ideal for OWASP A01:2021 assessments and authorized penetration tests.

Quick Start

Run the included agent with the target base URL and a regular user's Bearer token to generate an access control assessment report.

Frequently Asked Questions about testing-for-broken-access-control

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test for broken access control and IDOR vulnerabilities in web applications?

Broken access control testing works by exercising web application endpoints with different authentication contexts, such as varied Bearer tokens. It replays role-based requests to detect authorization mismatches, IDOR flaws, and privilege escalation across API and UI surfaces.

Can I automate RBAC and multi-tenant isolation checks using Bearer tokens?

Yes, you can automate RBAC and multi-tenant isolation checks by providing configurable endpoint lists and Bearer tokens. The tool systematically validates tenant isolation and function-level authorization across different user roles, generating a JSON assessment report.

What is the best way to detect vertical and horizontal privilege escalation in APIs?

The best way to detect vertical and horizontal privilege escalation in APIs is through role-based request replay and method-override checks. By swapping authentication contexts across enumerated endpoints, you can identify unauthorized access to administrative functions or other users' data.

Does this broken access control testing method support mass-assignment validation?

Yes, this broken access control testing method supports mass-assignment validation. It systematically manipulates request payloads across varied authentication contexts to verify if unauthorized users can modify restricted object properties through API endpoints.

Do I need Burp Suite or ffuf to perform function-level authorization checks?

You do not need Burp Suite or ffuf to perform function-level authorization checks. The testing relies on Python requests and urllib3 to exercise endpoints with provided Bearer tokens, independently mapping endpoints and generating a JSON assessment report.