exploiting-broken-function-level-authorization

Featured

Tests APIs for Broken Function Level Authorization (BFLA) vulnerabilities where regular users can invoke administrative functions or access privileged API endpoints by directly calling them. The tester identifies admin and privileged endpoints, then attempts to access them with regular user credentials by manipulating HTTP methods, URL paths, and request parameters. Maps to OWASP API5:2023 Broken Function Level Authorization. Activates for requests involving BFLA testing, admin endpoint bypass, function-level access control testing, or API privilege escalation.

AI & Automation 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Exploiting Broken Function Level Authorization ## When to Use - Testing whether regular users can access administrative API endpoints by direct URL access - Assessing APIs for vertical privilege escalation where users can invoke functions above their role - Evaluating if API gateways and middleware consistently enforce function-level access controls - Testing role-based access control (RBAC) implementation across all API endpoints and HTTP methods - Validating that API documentation does not expose admin endpoint paths that lack authorization **Do not use** without written authorization. BFLA testing involves attempting to execute administrative functions with unauthorized credentials. ## Prerequisites - Written authorization specifying target API and administrative functions in scope - Test accounts at multiple privilege levels: regular user, moderator, admin, super-admin - API documentation (OpenAPI/Swagger spec) that may list admin endpoints - Burp Suite Professional for request interception and manipulation - Python 3.10+ with `requests` library - Knowledge of common admin endpoint naming conventions ## Workflow ### Step 1: Administrative Endpoint Discovery ```python import requests import itertools BASE_URL = "https://target-api.example.com" regular_user_headers = {"Authorization": "Bearer <regular_user_token>"} admin_headers = {"Authorization": "Bearer <admin_token>"} # Common admin endpoint patterns ADMIN_PATH_PATTERNS = [ "/api/v1/admin", "/api/v1/...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category