appsec.fyi

AuthZ — A Practical Guide

A curated AppSec resource library covering XSS, SQLi, SSRF, IDOR, RCE, XXE, OSINT, and more.

AuthZ: A Practical Guide

Curated and synthesized by . Last updated 2026-08-16. Synthesized from 201 of 201 curated resources. Browse all 201 AuthZ resources →

The Evolving Landscape of Authorization Failures

Authorization, the process of determining what an authenticated user or system is allowed to do, is a foundational pillar of application security. While authentication verifies identity, authorization enforces what actions that identity can perform. Misconfigurations or flaws in authorization logic can lead to severe security breaches, ranging from unauthorized data exposure and privilege escalation to complete system compromise. The attack surface for authorization failures is vast and constantly expanding, encompassing traditional web applications, APIs, cloud infrastructure, and increasingly, AI systems.

Historically, authorization issues often stemmed from simple oversight: missing checks on administrative endpoints [1][2], inadequate validation of user IDs in requests, or overly permissive role assignments. However, modern applications and complex distributed systems present new challenges. The proliferation of APIs, microservices, and third-party integrations means authorization decisions are made across numerous components, increasing the complexity and potential for error. Cloud-native architectures introduce granular IAM policies that, if misconfigured, can grant excessive permissions [3]. Furthermore, the rise of AI systems brings unique authorization challenges, from controlling access to sensitive data used in training to preventing prompt injection attacks that can manipulate AI agents into performing unauthorized actions [4][5][6][7].

This guide aims to provide an in-depth, practitioner-focused overview of authorization vulnerabilities. We will explore the core mechanics of common authorization flaws, detail notable attack techniques and findings, discuss detection and prevention strategies, highlight relevant tooling, and point towards resources for further learning. The focus remains on the practical aspects of identifying, exploiting, and defending against these critical security weaknesses.

Core Authorization Mechanics and Failure Modes

Understanding the fundamental ways authorization can fail is crucial for effective security. At its heart, authorization is about enforcing policies that grant or deny access to resources and actions. Failures typically occur when these policies are either improperly defined, incorrectly implemented, or inadequately enforced.

Role-Based Access Control (RBAC)

RBAC is a common model where permissions are associated with roles, and users are assigned to these roles. Failures often arise from:

Attribute-Based Access Control (ABAC)

ABAC makes access decisions based on attributes of the user, resource, environment, and action. This offers more granular control but can be complex to implement correctly. Failures may occur due to:

Relationship-Based Access Control (ReBAC)

ReBAC, popularized by systems like Google's Zanzibar and its open-source implementations like OpenFGA and SpiceDB, models permissions based on relationships between entities. For instance, "a user can edit a document if they are the 'owner' of that document." Failures here often involve:

Broken Object-Level Authorization (BOLA) / Insecure Direct Object References (IDOR)

This is a pervasive issue, especially in APIs, where an application fails to verify if the authenticated user is authorized to access a specific object or resource. Attackers exploit this by manipulating object identifiers (e.g., in URLs or request bodies) to access data belonging to other users or privileged resources [11][12][13]. A common example is modifying a userId or accountId parameter to gain access to another user's data [14]. This is consistently ranked as a top API security risk [11].

Broken Function-Level Authorization (BFLA) / Missing Function-Level Access Control

This occurs when an application fails to enforce authorization for specific functions or endpoints, often affecting administrative or privileged operations. An attacker might discover an administrative URL or API endpoint that is accessible to unauthenticated users or users with insufficient privileges [1][2][15]. This can manifest as accessing privileged API endpoints or executing administrative functions via direct URL manipulation or by changing request parameters [16][17].

Mass Assignment

Mass assignment vulnerabilities arise when applications blindly bind user-supplied data to internal objects without properly filtering or validating which attributes can be modified. This can allow attackers to modify sensitive attributes, such as a user's role or status, leading to privilege escalation or identity drift [16][18]. For example, changing a user's role from "user" to "administrator" via a POST request [16]. It can also be chained with IDOR to modify sensitive details of another user's account [19].

Vulnerability Chaining

Many high-impact breaches result from chaining multiple vulnerabilities. An attacker might first exploit a path traversal vulnerability to gain file write access, then use that to plant a malicious script that is executed via a cron job, leading to Remote Code Execution (RCE) [20]. Similarly, a combination of API enumeration, identity exposure, and authorization flaws can lead to account takeover [21][22]. The Siemens ROX II zero-day trilogy is a prime example of chained vulnerabilities leading to full privilege escalation and persistent root access [23].

Authorization in Cloud and Containerized Environments

Cloud platforms and container orchestrators like Kubernetes have complex authorization models (e.g., AWS IAM, Azure RBAC, Kubernetes RBAC). Misconfigurations are rampant:

Authorization in AI Systems

AI systems introduce novel authorization challenges:

Notable Techniques and Attack Vectors

The methods attackers employ to bypass or exploit authorization controls are diverse and constantly evolving. Understanding these specific techniques is critical for effective defense.

Path Traversal and RCE

Path traversal vulnerabilities allow attackers to access files and directories outside the web root. When combined with other flaws, this can lead to RCE. For example, path traversal during node provisioning allowed file writes as root [30]. In another instance, an unauthenticated file upload combined with path traversal and a cron job bypass resulted in RCE [20]. Arbitrary file disclosure can also be achieved via insecure utility configurations [23].

Server-Side Request Forgery (SSRF)

SSRF allows an attacker to induce the server-side application to make HTTP requests to an arbitrary domain of the attacker's choosing. In cloud environments, SSRF is often used to access internal services, such as the Instance Metadata Service (IMDS), which can leak cloud credentials [24]. This can lead to cloud takeover and unauthorized access to resources like S3 buckets.

IDOR for Account Takeover and Data Exposure

Insecure Direct Object References are frequently used for account takeover. By modifying a userId parameter in an API request, an attacker could potentially access and steal access tokens, leading to account takeover [14]. Similarly, cross-student IDOR in learning management systems has been used to leak quiz answers [31]. In other cases, IDORs have exposed entire student databases [32] or allowed anonymous read access to cloud data through a forgeable Referer header bypass [33].

API Enumeration and Exploitation

Attackers often start by enumerating API endpoints to discover hidden or less protected functionality. This can lead to unauthenticated access, exposure of One-Time Passwords (OTPs), and subsequent account takeover [21]. Chaining two APIs was used for user enumeration and PII exposure in one platform [22].

Exploiting Third-Party Integrations

Vulnerabilities in third-party integrations can be a significant attack vector. An IDOR vulnerability in a Featurebase integration allowed account takeover by modifying user IDs and accessing access tokens [14].

Exploiting Software Update Mechanisms

Flaws in how software updates are handled can lead to privilege escalation. Foxit PDF Reader experienced a vulnerability allowing privilege escalation via its updater process [34].

Exploiting Enterprise Management Software

Vulnerabilities in widely used enterprise software can have a broad impact. Examples include IPMI 2.0 vulnerabilities allowing offline password cracking [35], predictable SSO tickets leading to account takeover in management platforms [36], and chained zero-days in Siemens ROX II for full privilege escalation [23].

Exploiting Cloud Storage and Database Services

Misconfigurations and vulnerabilities in cloud storage (e.g., AWS S3, Azure Blob Storage) and database services (e.g., Azure Cosmos DB) are common. CosmosEscape exploited a Gremlin API vulnerability in Azure Cosmos DB to gain access to the Cosmos Master Key, allowing takeover of all databases [37]. Exploiting vulnerabilities in cloud storage configurations can also lead to unauthorized access [33].

Exploiting OS and System Services

Vulnerabilities in operating system services are a direct path to privilege escalation. The Windows WalletService vulnerability allowed escalation to LocalSystem privileges via an attacker-seeded ESE database [38]. Windows AppResolver bypasses for AppContainer capability checks can lead to SYSTEM privileges [39].

Exploiting Authentication Flows

Flaws in authentication protocols themselves can be leveraged. The Device Code Flow in Google Identity Platform was found to be hijackable, allowing universal account takeover via session token transfer and scope swapping [40]. Exploiting Kerberos authentication mechanisms is also a common tactic in Active Directory environments [41][42].

Business Logic Flaws

Beyond technical vulnerabilities, flaws in the application's business logic can be exploited. A business logic flaw allowed free-tier users to bypass paywalls for contact data by manipulating a client-controlled flag [43]. Unpatched vulnerabilities in WordPress plugins, like the ND Booking plugin, allowed anonymous users to overwrite prices in WooCommerce [44].

Exploiting AI Systems

AI systems are not immune to authorization issues. RAG data poisoning via crafted content can influence LLM responses, leading to misinformation or unauthorized actions [4]. AI pentesting has identified context-dependent vulnerabilities like broken authorization [5][6]. AI coding assistants can be vulnerable to symbolic link following and UI misrepresentation, allowing RCE on developer machines [7].

Detection and Prevention Strategies

Effectively defending against authorization failures requires a multi-layered approach, integrating secure coding practices, robust testing, and diligent configuration management.

Secure Coding Practices

Security Testing

Key Prevention Strategies

Tooling for Authorization Security

A variety of tools can aid in the discovery, exploitation, and prevention of authorization vulnerabilities.

Web Application Security Testing Tools

API Security Tools

Cloud and Infrastructure Security Tools

Policy Engines and Authorization Frameworks

Code Analysis Tools

Other Relevant Tools

Recent Developments and Emerging Trends

The landscape of authorization security is dynamic, with new challenges and attack vectors emerging regularly.

AI-Driven Attacks and Defense

AI is increasingly being used for both offensive and defensive security operations. AI pentesting tools are identifying context-dependent authorization vulnerabilities [5][6]. Conversely, prompt injection attacks and data poisoning highlight new avenues for compromising AI systems [4][7]. The ability of AI agents to interact with systems, if not properly authorized, poses a significant risk [26].

Supply Chain Attacks and Third-Party Risk

Vulnerabilities in software supply chains and third-party components continue to be a major concern. Exploiting unpatched vulnerabilities in plugins or libraries is a common tactic [14][44]. The reliance on third-party integrations means that a weakness in one component can compromise the entire system.

Cloud Native and Kubernetes Security

As cloud adoption grows, the complexity of cloud IAM and Kubernetes RBAC presents a rich target for attackers. Misconfigurations in these areas are a leading cause of breaches, enabling privilege escalation and lateral movement [24][27][8].

The Rise of Broken Access Control

Broken Access Control has consistently ranked as a top vulnerability in recent years, particularly in the OWASP Top 10 [58][59][60]. This trend highlights the persistent difficulty organizations face in correctly implementing and enforcing authorization policies. The surge in these vulnerabilities in 2025 indicates a growing problem [58].

OAuth and Identity Provider (IdP) Exploitation

Vulnerabilities in identity providers and OAuth flows can have a widespread impact. The Device Code Flow hijacking in Google IdP is a prime example, allowing universal account takeover [40]. Attackers are increasingly leveraging legitimate login flows and token-based access rather than breaking authentication directly [61].

Sophisticated Privilege Escalation Techniques

Attackers are developing and utilizing advanced techniques for privilege escalation, including exploiting kernel vulnerabilities (e.g., Copy Fail, Dirty Frag in Linux) [29][62], abusing OS services like Windows WalletService [38], and exploiting Active Directory delegation mechanisms [63].

Where to Go Deeper

Mastering authorization security requires continuous learning and engagement with the community. Here are some key resources:

OWASP Resources

Access Control Model and Policy Management

Technical Blogs and Write-ups

Many security researchers and companies publish detailed write-ups of vulnerabilities and exploitation techniques. Regularly following blogs from sources like Snyk, Wiz, Sentry, Unit 42, Bishop Fox, and individual researchers is invaluable.

Vulnerability Databases and Advisories

Keep abreast of newly disclosed vulnerabilities through CVE databases and vendor advisories. Many of the techniques discussed are documented with specific CVEs and detailed advisories [71][37][44][21][36][38][34][50][22][39][40][23][72][73][18][41][74][25][69][70][75][76].

Community and Conferences

Engage with the application security community through forums, mailing lists, and security conferences (e.g., DEF CON, Black Hat, BSides). Sharing knowledge and experiences is crucial for staying ahead of evolving threats.

Sources cited in this guide

  1. Unprotected admin functionality — PortSwigger Access control vulnerabilities Lab 1 — infosecwriteups.com
  2. Unprotected admin functionality with unpredictable URL — PortSwigger Access Control Lab 2 — infosecwriteups.com
  3. RBAC vs ABAC vs ReBAC: How to Choose Access Control Models — dev.to
  4. RAG and ruin: why your existing controls may miss AI poisoning attacks — intigriti.com
  5. What Is AI Pentesting and How Does It Works? — snyk.io
  6. What Is AI Pentesting and How Does It Works? — snyk.io
  7. GhostApproval: A Trust Boundary Gap in AI Coding Assistants — wiz.io
  8. Kubernetes RBAC Best Practices — wiz.io
  9. RBAC vs ABAC vs PBAC - Oso — osohq.com
  10. RBAC vs ABAC vs ReBAC - Oso — osohq.com
  11. BOLA Vulnerability - Vulnsy — vulnsy.com
  12. Insecure Direct Object Reference (IDOR) Attack Guide | Hackviser — hackviser.com
  13. Insecure Direct Object References (IDOR) | PortSwigger — portswigger.net
  14. Account Takeover Across Multiple Programs via Featurebase Integration — infosecwriteups.com
  15. Broken Access Control - Vertical Privilege Escalation Writeup — cyberiumx.com
  16. Show, Don't Tell: What Evo Continuous Offensive Security Found in a Real Enterprise SaaS — snyk.io
  17. Zero Credentials, Full Access: Inside a Complete Authorization Failure — infosecwriteups.com
  18. Mass Assignment and the Identity Drift: From Profile Edit to Insurance Takeover — infosecwriteups.com
  19. OWASP Top 10 #1: Broken Access Control and Security Tips — vaadata.com
  20. Escalating a Blind Upload to RCE via Path Traversal into Cron and DNS-Restricted Callback Bypass — infosecwriteups.com
  21. Exploiting Volvo/Eicher's fleet platform to gain control over all users/vehicles — eaton-works.com
  22. From User Enumeration to PII Exposure: Chaining Two APIs Into a $2,000 Bug — infosecwriteups.com
  23. Three Steps to the Terminal: A Siemens ROX II Zero-Day Trilogy — unit42.paloaltonetworks.com
  24. AWS Cloud Security Challenge: SSRF, IMDSv2, and Cloud Takeover — infosecwriteups.com
  25. Wiz Research Identifies Exploitation in the Wild of Aviatrix Controller RCE (CVE-2024-50603) — wiz.io
  26. Exposing Security Blind Spots in GCP Vertex AI — unit42.paloaltonetworks.com
  27. Privilege escalation to root in Lima QEMU guests via a world-writable agent socket (CVE-2026-53657) — syntetisk.tech
  28. Why Being in the Docker Group Is a Backdoor to Your Whole System — infosecwriteups.com
  29. Copy Fail: Universal Linux Local Privilege Escalation Vulnerability — wiz.io
  30. Beyond Prompt Injection: Hacking Apple's Private Cloud Compute — blog.sentry.security
  31. How I Found a Cross-Student IDOR in Academy LMS That Leaked Correct Quiz Answers — infosecwriteups.com
  32. They Gave Me $1,000 After I Found Their Entire Student Database Exposed! — infosecwriteups.com
  33. One Header Away from 10+ GB of Customer Documents (PII) — $6K Bounty — infosecwriteups.com
  34. Escalating All The Privileges With Foxit PDF Reader (CVE-2026–57239) — blog.paradoxis.nl
  35. How We Hacked Thousands of Data Centers in Minutes Using a 20-Year-Old Vulnerability — lavahq.io
  36. A Millisecond of Predictability: Why CVE-2026-11374 Is Hard to Exploit — bishopfox.com
  37. CosmosEscape: Taking Over Every Database in Azure Cosmos DB — wiz.io
  38. Writeup & POC: CVE-2026-49176 Windows WalletService to SYSTEM (LPE) — davidcarliez.github.io
  39. Windows AppResolver LPE: From AppContainer to SYSTEM. PoC linked to CVE-2026-50454 — davidcarliez.github.io
  40. Confused Deputy: Google IdP Universal Account Takeover via Device Code Flow Hijacking — infosecwriteups.com
  41. Certified AD Red Team Specialist (AD-RTS): Full Exam Write-Up — infosecwriteups.com
  42. Post-Compromise Attacks in AD: Credential Validation with CrackMapExec — infosecwriteups.com
  43. The Red Agent POV: The One Boolean That Broke a B2B Platform’s Credit System — wiz.io
  44. How an Unpatched N-Day Let Any Anonymous Visitor Rewrite WooCommerce Prices in ND Booking — infosecwriteups.com
  45. Policy Engine Showdown: OPA vs OpenFGA vs Cedar — permit.io
  46. Announcing OpenFGA — auth0.com
  47. Policy as Code: Fine-Grained Authorization — permit.io
  48. Basic ABAC with OPA and Rego - AWS — docs.aws.amazon.com
  49. Blinding the Watchmen: Abusing Cloud Logging Services for Defense Evasion and Visibility — unit42.paloaltonetworks.com
  50. How I Escalated to Domain Admin Using AD CS (And How to Fix It) — infosecwriteups.com
  51. How I Abused a Group Policy Object (GPO) in Active Directory (And How to Fix It) — infosecwriteups.com
  52. Introducing Wiz Agents & Workflows: Security at the Speed of AI — wiz.io
  53. What is Open Policy Agent (OPA)? — wiz.io
  54. Relationship-Based Permissions in SpiceDB — authzed.com
  55. Cedar Policy Language Complete Guide — strongdm.com
  56. Unauthenticated Disclosure of A/B Test Data in Convert Pro — How Two Forgotten AJAX Endpoints… — infosecwriteups.com
  57. I Found an Unauthenticated Attachment Disclosure Bug in a WordPress Support Plugin — and a… — infosecwriteups.com
  58. Broken Access Control: The 40% Surge in 2025 — instatunnel.my
  59. BLA9:2025 Broken Access Control - OWASP — owasp.org
  60. Defending Against Broken Access Control — authgear.com
  61. 2026 SANS Identity Threats Report: Why Attacks Still Work — enzoic.com
  62. Dirty Frag: Linux Kernel Local Privilege Escalation via ESP and RxRPC — wiz.io
  63. Exploiting Resource-Based Constrained Delegation (RBCD) — infosecwriteups.com
  64. Authorization Testing Automation Cheat Sheet - OWASP — cheatsheetseries.owasp.org
  65. Access Control Cheat Sheet - OWASP — cheatsheetseries.owasp.org
  66. Authorization Cheat Sheet - OWASP — cheatsheetseries.owasp.org
  67. Rights Management Approaches: ACL, RBAC, ABAC, ReBAC — system-design.space
  68. Preventing broken access control in express Node.js applications — snyk.io
  69. Looting UniFi Controllers: Detecting and Weaponizing CVE-2026-22557 — bishopfox.com
  70. Popping Root on UniFi OS Server: Unauthenticated RCE Chain Detection & Analysis — bishopfox.com
  71. ERPNext's Document Follow feature exposed unauthorized data — robinroy.xyz
  72. BadSuccessor — Exploiting delegated Managed Service Accounts in Windows Server 2025 — infosecwriteups.com
  73. How I Found a Data Deletion Bypass via Subdomain Synchronization — infosecwriteups.com
  74. Auditing OpenReception: 16 CVEs in an end-to-end encrypted appointment booking platform (unauthenticated admin creation, account takeover, E2E bypass) — moltenbit.net
  75. Critical Access Control Risks in Simple Membership CVE-2026-34886 — managed-wp.com
  76. Security Update: Vulnerability Disclosures and Ongoing Hardening - LiteLLM — docs.litellm.ai
📚 This guide is synthesized from the full text of resources curated in the AuthZ library, and refreshed as new material is added.