Access control and least privilege
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.
First published .
Known gaps
What this article cannot tell you yet.
- 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.
- No incident dataset or regulator review was found that counts real breaches by type of authorization failure (missing check, object-level, function-level).
- 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.
- 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.
- 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
- Ankrah, D. (2026). Implementing micro-segmentation in a legacy enterprise lab network: A zero trust approach to reducing lateral movement, improving containment, and controlling operational overhead. SANS Technology Institute, Cyber Research Papers. https://www.sans.edu/cyber-research/implementing-micro-segmentation-legacy-enterprise-lab-network Medium trust Abstract only.
- Amazon Web Services (n.d.). Blocking public access to your Amazon S3 storage. Amazon S3 User Guide. https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html Solid source Documentation, read in full.
- Basin, D., Guarnizo, J., Krstic, S., Bao, H. N. P., & Ochoa, M. (2023). Is modeling access control worth it? Proceedings of the ACM SIGSAC Conference on Computer and Communications Security (CCS '23). https://doi.org/10.1145/3576915.3623196 Solid source Peer-reviewed, abstract only.
- Basta, N., Ikram, M., Kaafar, M. A., & Walker, A. (2021). Towards a zero-trust micro-segmentation network security strategy: An evaluation framework. arXiv:2111.10967. https://arxiv.org/pdf/2111.10967 Medium trust Peer-reviewed, read in full.
- Bishop Fox (2020). Quantifying the impact of micro-segmentation. Bishop Fox blog, research commissioned by Illumio. https://bishopfox.com/blog/quantifying-micro-segmentation-impact Weak source Vendor page, read in full.
- Bufalino, J., Martin-Navarro, J. L., Di Francesco, M., & Aura, T. (2025). Inside job: Defending Kubernetes clusters against network misconfigurations. arXiv:2506.21134. https://arxiv.org/abs/2506.21134 Medium trust Peer-reviewed, abstract only.
- Cable, Gregory, Izhikevich, & Durumeric (2021). Stratosphere: Finding vulnerable cloud storage buckets. RAID 2021. https://arxiv.org/abs/2309.13496 Solid source Peer-reviewed, abstract only.
- Colyer, A. (2017). Finding security bugs in web applications using a catalog of access control patterns. the morning paper (blog). https://blog.acolyer.org/2017/02/07/finding-security-bugs-in-web-applications-using-a-catalog-of-access-control-patterns/ Medium trust Blog post, read in large part.
- Crozier, R. (2024). Optus breach allegedly enabled by access control coding error. iTnews. https://www.itnews.com.au/news/optus-breach-allegedly-enabled-by-access-control-coding-error-608985 Medium trust News article, read in full.
- D'Antoni, L., Ding, S., Goel, A., Ramesh, M., Rungta, N., & Sung, C. (2024). Automatically reducing privilege for access control policies. Proceedings of the ACM on Programming Languages, 8(OOPSLA2), Article 298. https://cdn.amazon.science/cf/bc/58e56f024b9c8eb8cf5e50ec403e/automatically-reducing-privilege-for-access-control-policies.pdf Medium trust Peer-reviewed, read in large part.
- Dharmaadi, I. P. A., Alhanahnah, M., Pham, V.-T., Mohsen, F., & Turkmen, F. (2025). BACFuzz: Exposing the silence on broken access control vulnerabilities in web applications. arXiv:2507.15984. https://arxiv.org/abs/2507.15984 Medium trust Preprint, abstract only.
- Hasan, M. (2024). Enhancing enterprise security with zero trust architecture. arXiv (cs.CR). https://arxiv.org/abs/2410.18291 Medium trust Preprint, abstract only.
- Izhikevich, Voelker, Savage, & Izhikevich (2023). Using honeybuckets to characterize cloud storage scanning in the wild. arXiv (cs.CR). https://arxiv.org/abs/2312.00580 Solid source Preprint, abstract only.
- Kably, S. (2021). The root cause of data breaches: Investigating security misconfigurations as the root cause of data breaches. Master thesis, TU Delft. https://repository.tudelft.nl/record/uuid:40c652a8-b66a-46e1-8953-c8c90398f9ee Medium trust Abstract only.
- Kaur, B. (2026b). Broken object level authorization in the wild: An empirical taxonomy from 100+ bug bounty disclosures. arXiv:2605.25865. https://arxiv.org/html/2605.25865v1 Solid source Preprint, read in large part.
- Kazdagli, M., Tiwari, M., & Kumar, A. (2022). Using constraint programming and graph representation learning for generating interpretable cloud security policies. arXiv:2205.01240. https://arxiv.org/abs/2205.01240 Medium trust Preprint, read in large part.
- Li, X., Chen, Y., Lin, Z., Wang, X., & Chen, J. H. (2021b). Automatic policy generation for inter-service access control of microservices. 30th USENIX Security Symposium (USENIX Security 21). https://www.usenix.org/conference/usenixsecurity21/presentation/li-xing Weak source Peer-reviewed, abstract only.
- MITRE (2023). 2023 CWE Top 25: trends. Common Weakness Enumeration, MITRE. https://cwe.mitre.org/top25/archive/2023/2023_trends.html Medium trust Read in full.
- MITRE (2025). 2025 CWE Top 10 KEV weaknesses list insights. Common Weakness Enumeration, MITRE. https://cwe.mitre.org/top25/archive/2025/2025_kev_insights.html Solid source Read in full.
- Near, J. P., & Jackson, D. (2016). Finding security bugs in web applications using a catalog of access control patterns. Proceedings of the 38th International Conference on Software Engineering (ICSE 2016), ACM. https://dspace.mit.edu/handle/1721.1/102281 Medium trust Peer-reviewed, abstract only.
- OWASP Foundation (2021). A01:2021 Broken Access Control. OWASP Top 10:2021. https://top10.owasp.org/2021/A01_2021-Broken_Access_Control Weak source Read in full.
- OWASP Foundation (2023). API1:2023 Broken object level authorization. OWASP API Security Top 10 (2023). https://api-security.owasp.org/editions/2023/en/0xa1-broken-object-level-authorization Medium trust Read in full.
- OWASP Foundation (2025). A01:2025 Broken Access Control. OWASP Top 10:2025. https://top10.owasp.org/2025/A01_2025-Broken_Access_Control Weak source Documentation, read in full.
- OWASP Foundation (n.d.). Authorization cheat sheet. OWASP Cheat Sheet Series. https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html Medium trust Documentation, read in full.
- Polinsky, I., Datta, P., Bates, A., & Enck, W. (2024). GRASP: Hardening serverless applications through graph reachability analysis of security policies. The Web Conference 2024 (WWW '24), ACM. https://people.cs.umass.edu/~pdatta/publication/grasp/grasp.pdf Solid source Peer-reviewed, read in large part.
- Rose, S., Borchert, O., Mitchell, S., & Connelly, S. (2020). Zero trust architecture (NIST Special Publication 800-207). National Institute of Standards and Technology. https://csrc.nist.gov/pubs/sp/800/207/final Solid source Government report, abstract only.
- Son, S., McKinley, K. S., & Shmatikov, V. (2013). Fix Me Up: Repairing access-control bugs in web applications. NDSS Symposium 2013. https://www.ndss-symposium.org/ndss2013/fix-me-repairing-access-control-bugs-web-applications Medium trust Peer-reviewed, abstract only.
- Soneji, A., Nath, S., Schloegel, M., Shoshitaishvili, Y., Ahn, G., Doupe, A., et al. (2026). Beyond the buzzword: How do professionals understand and translate zero trust? ACM CCS. https://cispa.de/en/research/publications/213246-beyond-the-buzzword-how-do-professionals-understand-and-translate-zero-trust- Medium trust Peer-reviewed, abstract only.
- Tyagi, S., & Murugesan, G. (2025). Measuring ransomware lateral movement susceptibility via privilege-weighted adjacency matrix exponentiation. arXiv:2508.21005. https://arxiv.org/pdf/2508.21005 Weak source Preprint, abstract only.
- Palo Alto Networks Unit 42 (2022). Your defense against cloud threats: IAM. Unit 42 Cloud Threat Report, Palo Alto Networks. https://unit42.paloaltonetworks.com/iam-cloud-threat-research Weak source Vendor page, read in full.
- Verdet, Hamdaqa, Da Silva, & Khomh (2023). Exploring security practices in infrastructure as code: An empirical study. arXiv (cs.CR). https://arxiv.org/abs/2308.03952 Solid source Peer-reviewed, abstract only.
- Yeboah-Duako, E., & Datta, P. (2026). Permissions on the loose: Measuring overprivilege in real-world serverless applications. arXiv (cs.CR). https://arxiv.org/abs/2607.02875 Solid source Preprint, read in full.
- Zhong, L. (2023). A survey of prevent and detect access control vulnerabilities. arXiv:2304.10600. https://arxiv.org/abs/2304.10600 Medium trust Preprint, abstract only.
- Zorabedian, J. (2021). What's new in the 2021 Cost of a Data Breach Report. IBM Security Intelligence. https://www.ibm.com/think/x-force/whats-new-2021-cost-of-a-data-breach-report Weak source Vendor page, read in full.