BACGUARD: Fact-Grounded Runtime Mitigation of Broken Access Control
Abstract
Broken Access Control (BAC) has been the foremost category in the OWASP Top Ten since 2021, primarily due to the challenges in enforcing authorization at the application layer. Traditional mechanisms depend on logic embedded in the application, referencing relational database information such as permissions, roles, or ownership. However, missing or incorrect checks can go undetected by external systems, leaving applications vulnerable. This paper presents BACGUARD, a reverse proxy designed to enforce authorization for unmodified applications. BACGUARD reconstructs authorization relations by leveraging authenticated user data from session stores and object ownership from relational schemas. It evaluates whether users are permitted to access resources and blocks unauthorized requests in real time. Unlike existing approaches, BACGUARD bases its authorization on database joins, making the system resilient to forgery. For most requests, decisions are made deterministically. In cases where access control violations are only apparent in response data, such as cross-user data leakage, a language model is used as a fallback. Evaluations on six applications, including those with known vulnerabilities, demonstrate that BACGUARD's hybrid deterministic and language model-based approach blocks all tested attacks with a false-positive rate below 0.7%. Competing solutions like Web Application Firewalls are less effective and more disruptive. The results highlight BACGUARD's primary contribution: the external reconstruction of authorization facts, enabling robust enforcement even when the application itself is flawed.
Create a lesson
Metadata
- Comments
- 12 pages, 7 figures
Related papers
Suspected Until Inspected: Neuro-Symbolic Detection of Broken Access Control in Server-Side Web Applications
Shared title terminologycs.CRChengyao Yang, Zifeng Kang, Dongqi Han et al.
Extracting Next Generation Access Control Policies from Natural Language Using LLMs: An Intermediate-Representation Approach with Back-Translation Verification
Shared title terminologycs.CRAyesha Habib, Huixiang Zhang, Waiz Haider
Isolation Is Not Confidentiality: Security Boundaries of Geometric Access Control in RAG
Shared title terminologycs.CRSteve Nouyep, Maxime Puys, Sébastien Salva
Evaluating LLM Security Review Agents with Operationally Sourced Ground Truth
Shared title terminologycs.CRMudita Khurana, Karim Liman-Tinguiri
LODESTONE: Linking System Events to Threat Intelligence for Evidence-Grounded Cyber Attack Investigation
Shared title terminologycs.CRLiangyi Huang, Zichen Liu, Fei Shao et al.
Mitigating Nested GTP Attacks: A Closed-Loop eBPF Defense for 5G and Beyond Networks
Shared title terminologycs.CRAbdulAziz AbdulGhaffar, Ashraf Matrawy