# Function Level Authorization > Broken Function Level Authorization (BFLA, OWASP API5) is the vertical twin of BOLA: the server checks *who you are* but not *whether your role may invoke this operation*, so a low-privileged or anonymous caller reaches admin, internal or deprecated functions directly. ## How it works BOLA asks "may you touch *this object*?"; BFLA asks "may you call *this function* at all?". It appears wherever the enforcement point doesn't cover every handler: - **Route-by-route checks**: a decorator, annotation or AOP pointcut protects most handlers, and the one it misses is the bug. CBoard's `AdminController`/`DashboardController` methods sat outside the AOP role checks. SGLang's `POST /load_lora_adapter_from_tensors` lacked the `@auth_level(AuthLevel.ADMIN_OPTIONAL)` annotation its siblings had. - **UI as the access control**: the admin URL isn't linked for users, but the handler doesn't re-check the role (PortSwigger labs: `/administrator-panel` in `robots.txt`; an unpredictable admin URL disclosed in JS shipped to every user). - **Forgotten surface**: deprecated API versions, AJAX helpers, sidecar services and reporting endpoints written after the main authz layer, or outside it. - **Middleware-only enforcement**: if the only check lives in an edge/middleware layer, anything that skips that layer skips authz (Next.js CVE-2025-29927; see [[Header-Based Access Control Bypass]]). - **Action-specific gaps inside an admin**: one bulk action skips the per-object permission that its sibling actions enforce. ## Techniques / payloads 1. **Harvest functions you can't see**: JS bundles, `robots.txt`, OpenAPI/Swagger, GraphQL introspection, mobile apps, old API versions (`/v1/` next to `/v2/`). 2. **Replay admin traffic with a low-priv token**: capture as admin, swap `Authorization`/cookie for a user session and then for none. Diff status *and* body. Tooling: [[Authorization Testing Automation]]. 3. **Guess sibling verbs**: if `GET /api/users/{id}` exists, try `DELETE`, `PUT /api/users/{id}/role`, `POST /api/admin/users`. 4. **Method and path tricks** against platform-level rules: `GET` instead of `POST`, case changes, suffixes, trailing slash. 5. **Hit the deprecated path**: version-pinned or legacy endpoints often predate the current authz model (Fleet). 6. **Check read-only roles against action endpoints**: "viewer" roles often hold a scope that reaches a write path indirectly (Pulse approvals, n8n agents; see [[AI Agent Authorization]]). ## Notable cases | Target | Function reached | By whom | |---|---|---| | Fleet < 4.92.0 (CVE-2026-130758) | deprecated `POST /api/latest/fleet/mdm/apple/enqueue`: enqueue Apple MDM commands outside the user's team | team-scoped admins/maintainers | | Pulse 5.0.17–6.8.0 (CVE-2026-129428) | `/api/ai/approvals`: list, approve or deny other users' AI command requests | viewer role | | SGLang ≤ 0.5.23 | `POST /load_lora_adapter_from_tensors`, which with a deserialization bypass gives root RCE | unauthenticated | | CBoard < 7bd8180 (CVE-2026-130073) | delete users, query configs | any authenticated user | | B3log Solo ≤ 4.4.0 (CVE-2026-130078) | `POST /apis/symphony/article`: overwrite any article | visitor (OAuth-created) accounts | | WWBN AVideo ≤ 29.7.1 (CVE-2026-126545) | `API::get_api_tags()` leaks filenames, titles and **passwords** of unlisted/protected videos | registered users | | Formie (Craft CMS) | `EmailController` renders attacker Twig, giving [[Server-Side Template Injection]] | any authenticated user | | Grafana 13.2 (CVE-2026-103506, CVSS 4.0 8.9) | read SSO client secrets and modify login config | authenticated users | | WordPress Simple Membership ≤ 4.7.1 (CVE-2026-34886) | privileged plugin actions | unauthenticated | | Convert Pro 1.0.1 | `convertpro_interactions_report_ajax`, `convertpro_get_chart_data` with sequential IDs | unauthenticated | | Splunk Enterprise 10+ (CVE-2026-20253) | Postgres sidecar backup/restore endpoint with no auth, proxied through the main web app, giving pre-auth RCE | unauthenticated | | django-filer ≤ 3.4.4 | "Delete files and/or folders" admin action ignores `FolderPermission` when move/rename/copy enforce it | staff with read-only folder perms | | Frappe ERPNext < 16.35.0 | financial reports | unauthorized users | | Oracle E-Business Suite 12.2.3–12.2.15 (CVE-2026-114924, CVSS 9.8) | protected EBS REST functions (APPS DB privileges) past the Application Object Library function-authorization layer; chained with CVE-2026-114925 (REST handler instantiates request-named Java classes) for OS command execution | unauthenticated | | Novapay wallet (practice app) | `POST /api/admin/users/{id}/role` `{"role":"admin"}` replayed with a regular user's session | any authenticated user | Sources for the new rows: [[raw/horizon3.ai/cve-2026-114924-cve-2026-114925-oracle-e-business-suite-authorization-15869|Horizon3]], [[raw/medium.com/bac-in-novapay-wallet-15927|Novapay]]. Oracle lists no workaround; network restriction to EBS HTTP/REST endpoints only narrows who can reach them. Pattern across the table: the bug is rarely "no authz anywhere". It is one handler, version or action that sits outside the mechanism everything else uses. ## Defenses - **Deny by default at the router**: every route needs an explicit policy, and a route with no annotation fails closed. Lint for handlers missing the decorator or annotation. - **Single enforcement mechanism** that covers every entry point (REST, GraphQL resolvers, AJAX actions, gRPC, sidecars, background job triggers), not edge middleware alone. - **Retire deprecated endpoints** or route them through the current authz layer. Inventory with [[API Discovery]]. - **Authorization matrix tests** per role × function in CI ([[Authorization Testing Automation]]). - Don't treat network position as auth for internal or sidecar services. Splunk's sidecar was reachable through the main app. ## Related - [[Authorization Security]] - [[Broken Access Control]] - [[Privilege Escalation]] - [[BOLA in APIs]] - [[OWASP API Security Top 10]] - [[Header-Based Access Control Bypass]] - [[GraphQL Authorization Flaws]] - [[Authorization Testing Automation]] ## Sources - [[raw/medium.com/owasp-5-broken-function-level-authorization-when-users-execute-forbidd-14838|OWASP #5: Broken Function Level Authorization (When Users Execute Forbidden Actions)]] - [[raw/portswigger.net/access-control-vulnerabilities-and-privilege-escalation-portswigger-2727|Access Control Vulnerabilities and Privilege Escalation - PortSwigger]] - [[raw/infosecwriteups.com/unprotected-admin-functionality-portswigger-access-control-vulnerabili-10826|Unprotected admin functionality — PortSwigger Access control vulnerabilities Lab 1]] - [[raw/infosecwriteups.com/unprotected-admin-functionality-with-unpredictable-url-portswigger-acc-10804|Unprotected admin functionality with unpredictable URL — PortSwigger Access Control Lab 2]] - [[raw/infosecwriteups.com/i-found-the-entire-admin-ui-of-a-live-platformjust-by-tweaking-traffic-8842|I Found the Entire Admin UI of a Live PlatformJust By Tweaking Traffic in Burp Suite]] - [[raw/github.com/fleet-authorization-bypass-in-deprecated-endpoint-15177|Fleet authorization bypass in deprecated endpoint]] - [[raw/github.com/pulse-missing-authorization-in-api-ai-14706|Pulse missing authorization in /api/ai]] - [[raw/github.com/sglang-missing-authorization-15247|SGLang missing authorization]] - [[raw/github.com/wwbn-avideo-missing-authorization-in-api-get-api-14126|WWBN AVideo missing authorization in API get_api]] - [[raw/github.com/cboard-missing-authorization-14971|CBoard missing authorization]] - [[raw/github.com/b3log-solo-missing-authorization-in-b3receiver-14887|B3log Solo missing authorization in B3Receiver]] - [[raw/labs.watchtowr.com/why-use-app-level-auth-when-every-database-has-auth-splunk-enterprise-9116|Why Use App-Level Auth When Every Database Has Auth? (Splunk Enterprise CVE-2026-20253 Pre-Auth RCE) - watc...]] - [[raw/infosecwriteups.com/unauthenticated-disclosure-of-a-b-test-data-in-convert-pro-how-two-for-10809|Unauthenticated Disclosure of A/B Test Data in Convert Pro — How Two Forgotten AJAX Endpoints…]] - [[raw/github.com/formie-missing-authorization-leads-to-ssti-14840|Formie missing authorization leads to SSTI]] - [[raw/medium.com/grafana-sso-settings-authorization-bypass-cve-2026-103506-cvss-4-0-8-9-12836|Grafana SSO settings authorization bypass, CVE-2026-103506 (CVSS 4.0 8.9)]] - [[raw/managed-wp.com/critical-access-control-risks-in-simple-membership-cve-2026-34886-3024|Critical Access Control Risks in Simple Membership CVE-2026-34886]] - [[raw/github.com/django-filer-missing-per-object-authorization-15178|django-filer missing per-object authorization]] - [[raw/github.com/frappe-erpnext-missing-authorization-in-financial-reports-15257|Frappe ERPNext missing authorization in financial reports]] - [[raw/snyk.io/cve-2025-29927-authorization-bypass-in-next-js-middleware-9205|CVE-2025-29927 Authorization Bypass in Next.js Middleware]] - [[raw/horizon3.ai/cve-2026-114924-cve-2026-114925-oracle-e-business-suite-authorization-15869|CVE-2026-114924 / CVE-2026-114925 | Oracle E-Business Suite Authorization Bypass & Remote Code Execution Vulnerabilities]] - [[raw/medium.com/bac-in-novapay-wallet-15927|BAC In Novapay wallet]]