Access control and least privilege

Hand-drawn three nested rounded terracotta bands, each broken by one narrow gap, over a dense field of angular cells hatched in linen, sand, umber and moss.

Access control decides what an identified user, program or service may read or do; least privilege is the principle that each should hold only the permissions its task needs. Missing or wrong access checks are among the most common flaws found in web applications and APIs, and cloud identities routinely hold far more permission than they use (OWASP Foundation, 2025; Yeboah-Duako & Datta, 2026). The standard advice is to check access in one central place, deny anything not explicitly allowed, remove unused permissions, segment networks and adopt zero trust. The main dispute is how much of this advice has measured effect. The evidence that it reduces flaws or breaches rests mostly on guidance, small experiments, vendor-commissioned tests and vendor correlations (Basin et al., 2023; Bishop Fox, 2020; Zorabedian, 2021).

Authorization and authentication

Access control is a separate step from proving who someone is. Authentication establishes identity, through passwords or multi-factor authentication; authorization decides what that identity may do. The US standards body NIST treats the two as discrete functions, both performed before a session to a resource is set up (Rose et al., 2020).

In a backend, authorization usually means a check in the server’s code before it returns a record or performs an action. When that check is missing, the server serves whoever asks. The flaw is called broken access control. In APIs a frequent form is broken object level authorization (BOLA). The server accepts a record identifier from the client and returns or changes the record without checking that the caller may use it.

Bug reports often file the same flaw as insecure direct object reference (IDOR). OWASP, a nonprofit that publishes widely used security rankings and guidance, rates BOLA easy to exploit and widespread (OWASP Foundation, 2023).

How common authorization flaws are

Testing data show broken access control to be widespread. In the data behind OWASP’s 2021 ranking, the category had an average incidence rate of 3.81%. That is, on average, the share of tested applications showing a given weakness of the category (OWASP Foundation, 2021). In the 2025 data, every tested application had some form of broken access control, and the category groups 40 weakness types with about 1.84 million occurrences (OWASP Foundation, 2025). These figures count flaws in applications that contributors tested, not in all deployed software.

A second ranking shows the same weakness rising. MITRE, which maintains the CWE catalogue of software weakness types, ranks the most dangerous weaknesses each year. Missing authorization entered its top 25 in 2020 at 25th and rose every year to 11th in 2023 (MITRE, 2023). Academic authors agree that errors in access-control logic are very common in web applications (Son et al., 2013; Zhong, 2023).

Most reports filed as IDOR are real object-level flaws, in one small sample. Of 107 bug bounty reports tagged IDOR or improper access control, 84 (78.5%) were confirmed BOLA. Of these, 41.7% concerned an action on an object rather than reading it (Kaur, 2026b). The sample covers only HackerOne programmes, and the classification used a language model, which can introduce systematic errors (Kaur, 2026b).

Authorization flaws in real breaches

How often authorization flaws cause real breaches is poorly measured. Breach studies use coarse categories: a master thesis on public breach literature concluded that most breaches are unauthorized access by outsiders, frequently made possible by poor security (Kably, 2021). In MITRE’s 2025 analysis of vulnerabilities known to be exploited, missing authentication ranked 4th. Missing authorization did not reach the top 10, though it was 4th in that year’s ranking of dangerous weaknesses (MITRE, 2025).

MITRE warns that this list may under-count authorization flaws. Exploits of authorization are hard to detect without tools trained on the specific application, and many exploited vulnerabilities cannot be mapped to a precise weakness type (MITRE, 2025).

Single cases show the mechanism. In the Optus breach in Australia, the regulator ACMA alleges that a code change weakened an access control on an API, so it could be bypassed. Optus noticed the error about three years later, but only for its main site, not for the API endpoint on a subdomain (Crozier, 2024). Earlier accounts had described the same endpoint as having no authentication at all, so the cause remains disputed (Crozier, 2024). Breach datasets in general are covered in Data breaches.

Why the checks go missing

Authorization flaws are usually described as omissions: a check that should run on some path does not. Research tools for finding these flaws are built on that view, searching web applications for missing security checks (Near & Jackson, 2016; Son et al., 2013). MITRE reads the rise of missing authorization in its rankings as a possible sign that developers do not implement authorization consistently (MITRE, 2023).

The usual advice targets this inconsistency. OWASP recommends access control configured once for the whole application rather than checks written into each method, implemented once and reused (OWASP Foundation, n.d.; OWASP Foundation, 2021). It also advises denying access by default, except for public resources (OWASP Foundation, 2021; OWASP Foundation, n.d.). For APIs, it advises checking, for every record identifier a client sends, that the logged-in user may perform the action on that record (OWASP Foundation, 2023).

Whether centralised authorization reduces flaws Weak evidence: few or small studies support this

The advice to centralise and deny by default is guidance, and its effect on flaw rates rests on small, indirect studies. OWASP’s cheat sheet says automated tests of access-control logic can help reduce flaws. Its 2025 ranking lists access checks in unit and integration tests. Neither gives a measured effect (OWASP Foundation, n.d.; OWASP Foundation, 2025).

The closest experiment favours modelling access control over coding it by hand. In a graduate security course, several groups built the same application. Those using a tool-based, model-driven approach passed up to 50% more security tests on average, with less effort, than those coding access control directly (Basin et al., 2023). Its authors state that empirical data on whether model-driven approaches beat code-centric ones is lacking (Basin et al., 2023).

Flaws also appear in code that uses a framework. Among the 50 most-watched Rails applications on GitHub, 30 implemented some access control, and a checker found security bugs in 8 of those, 23 bugs in all (Colyer, 2017).

Tools that find access-control flaws

Automated tools can find authorization flaws that developers missed, which is the best-measured part of the mitigation evidence. FixMeUp, a static analysis tool (one that reads code without running it), finds access-control bugs in PHP applications and proposes repairs (Son et al., 2013). BACFuzz is a fuzzer, a tool that sends many generated requests to a running application. In its authors’ evaluation on 20 real web applications, it detected 16 of 17 known issues and found 26 previously unknown vulnerabilities (Dharmaadi et al., 2025).

Over-privileged cloud identities

In cloud systems, least privilege fails at scale, though the main prevalence figures come from one preprint and one vendor. In cloud platforms, each function, service or user acts through an identity with a policy of allowed actions, managed by the platform’s identity and access management (IAM). A measurement of 789 AWS Lambda serverless applications found 47.7% with excess permissions, and 18.8% holding privilege-escalation permissions they did not need (Yeboah-Duako & Datta, 2026). Its authors note their tracing misses some calls made through third-party libraries, so it may under-count the permissions that are needed (Yeboah-Duako & Datta, 2026).

Wildcard permissions are the strongest marker of over-privilege. Applications using wildcards, rules that grant every action or resource matching a pattern, had an average over-privilege ratio 274 times higher than those without (Yeboah-Duako & Datta, 2026). The authors say developers use wildcards to deploy faster, and that a tight policy can become over-privileged as the provider adds permissions (Yeboah-Duako & Datta, 2026).

An earlier peer-reviewed study points the same way but measured something different. Of 731 open-source Lambda applications, 90% specified only one global policy with no fine-grained permissions, and 30% allowed every function to reach every resource (Polinsky et al., 2024).

A vendor’s figures for whole cloud accounts are higher still. Palo Alto Networks’ Unit 42 found that 99% of over 680,000 cloud identities, across 18,000 accounts of 200 organisations, held permissions left unused for 60 days or more (Palo Alto Networks Unit 42, 2022). In its data, policies managed by the cloud provider granted 2.5 times more permissions than those written by customers (Palo Alto Networks Unit 42, 2022).

Removing unused permissions automatically Weak evidence: few or small studies support this

Research tools can strip most unused permissions, but their tests are small and some still break applications. One tool, IAM-PolicyRefiner, tightens a policy to the actions seen in access logs. Across 11 AWS roles, it removed 76.46% of allowed actions on average, and policies built from half of each role’s log still allowed every remaining logged request (D'Antoni et al., 2024). Policies built from shorter logs wrongly denied some later requests; with logs longer than two months, they generalised well (D'Antoni et al., 2024). The 11 roles came from 4 accounts volunteered by the authors’ colleagues (D'Antoni et al., 2024).

Tools that infer permissions from code break more often on a real cloud. PrivLess, which derives policies by analysing serverless code, kept 29 of 31 functions working on a local AWS emulator, but only 21 of 31 on real AWS (Yeboah-Duako & Datta, 2026). Other approaches generate policies by constraint solving, tested on data from 8 commercial organisations, or derive access rules between microservices by static analysis, with only minor runtime overhead (Kazdagli et al., 2022; Li et al., 2021b).

Zero trust Weak evidence: few or small studies support this

The benefit of zero trust is supported mainly by vendor-sponsored correlations and case studies. NIST defines it as moving defences from the network perimeter to users, assets and resources, so that no access is trusted because of network location or ownership (Rose et al., 2020).

The main effect figure is a correlation from a vendor report. IBM’s 2021 breach cost report put the average breach cost at USD 5.04 million without zero trust. At a mature deployment it was USD 3.28 million, 42% less; only 35% of organisations used zero trust (Zorabedian, 2021). A 2024 review of its effectiveness rests on case studies and industry reports, and lists scalability, integration complexity and cost as obstacles (Hasan, 2024).

Practitioners doubt the term itself. In a 2026 interview study of 27 security professionals, participants described zero trust as a promising shift but distrusted the label. They named ambiguous guidance, organisational culture and domain constraints as obstacles (Soneji et al., 2026).

Network segmentation and lateral movement Weak evidence: few or small studies support this

Segmentation divides a network so an attacker who enters one part cannot freely reach the rest (lateral movement); its claimed effect rests on models and vendor-linked tests. The authors of one evaluation state that the impact of micro-segmentation, fine-grained segmentation down to single workloads, is almost absent from the literature (Basta et al., 2021).

Modelled studies report large reductions in exposure. On two enterprise networks of 300 and 238 hosts, graph measures showed 60% to 90% less exposure after micro-segmentation. In the robustness analysis, which covered only the 300-host network, an attacker needed twice as many compromises to reach a target (Basta et al., 2021). Segmentation did not reduce the vulnerabilities themselves (Basta et al., 2021). A vendor-authored preprint reports that removing high-privilege connections lowers modelled spread the most (Tyagi & Murugesan, 2025).

A red-team test commissioned by a segmentation vendor found segmentation slowed attackers. In a 100-workload environment, attackers with no prior knowledge took 300% longer to reach their targets with environment separation than with no segmentation. Application ringfencing raised this to 450%, and tier segmentation to 950% (Bishop Fox, 2020). The firm says the vendor, Illumio, approached it to demonstrate the benefits (Bishop Fox, 2020).

Smaller studies add little. A lab study of a Windows network reports reduced internal reachability and better containment under allow-listing and role-aware rules (Ankrah, 2026). A preprint found 634 network misconfigurations affecting lateral movement across 287 open-source Kubernetes applications, more than existing tools found (Bufalino et al., 2025).

Public cloud storage

Misconfigured cloud storage has exposed large amounts of personal data, and attackers look for it. Storage buckets left publicly readable have exposed hundreds of millions of medical, voter and customer records; earlier scans underestimated this because they guessed only simple bucket names (Cable et al., 2021). In a honeypot experiment with planted buckets, scanners preferred buckets that seemed to belong to organisations, and malicious actors read a planted document (Izhikevich et al., 2023).

Cloud storage can be made private by default. AWS documents that new S3 buckets do not allow public access, and that its Block Public Access settings override bucket policies and access lists (Amazon Web Services, n.d.). Configuration written as code still neglects protections: in 812 open-source Terraform projects, encryption of stored data was the most neglected security policy (Verdet et al., 2023). Keys and credentials that leak from such configuration are covered in Secrets management.

Further reading

  • OWASP, A01:2025 Broken Access Control (OWASP Foundation, 2025): the ranking’s data on how common the flaw is, with its prevention advice.
  • OWASP, Authorization Cheat Sheet (OWASP Foundation, n.d.): the standard guidance on deny by default, central checks and testing.
  • Basin and others, Is Modeling Access Control Worth It? (Basin et al., 2023): a controlled comparison of model-driven and hand-coded access control.
  • Yeboah-Duako and Datta, Permissions on the Loose (Yeboah-Duako & Datta, 2026): a measurement of over-privilege in serverless applications and a tool that removes it.
  • Rose and others, Zero Trust Architecture (NIST SP 800-207) (Rose et al., 2020): the reference definition of zero trust.
  • Basta and others, Towards a Zero-Trust Micro-segmentation Network Security Strategy (Basta et al., 2021): an evaluation framework for segmentation, with its limits stated.

Known gaps

What this article cannot tell you yet.

  1. The effect of centralised authorization, deny-by-default rules or policy engines on the rate of access-control flaws in deployed systems was not measured in any study the article draws on.
  2. No incident dataset or regulator review was found that counts real breaches by type of authorization failure (missing check, object-level, function-level).
  3. The share of over-privileged serverless applications rests on one preprint; the earlier peer-reviewed study measured how permissive policies are, not how many permissions go unused.
  4. No peer-reviewed comparison of segmented and flat networks in real incidents was found, and no peer-reviewed evaluation of the recommendations of IAM Access Analyzer.
  5. How often open databases expose data, and whether private-by-default storage settings reduced bucket exposure, were not found measured.

References

Solid source
Rated highly trustworthy by the research, and every passage taken from it was found in it.
Weak source
Rated low, or a passage taken from it was not found in it.
Medium trust
Rated medium by the research.
Not checked
Rated high, but its passages could not all be checked against it.
Show all 34 references