arXiv(opens in a new tab)cs.CROct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.00977

ABSENTIA: Detecting Broken Access Control Vulnerabilities in Web Applications

André V. Duarte, Aditya Oke, Rui Melo, Shubham Gandhi, Nachiket Kotalwar, Charmi Khandor, Danqing Wang, Arlindo L. Oliveira, Carolyn Rosé, Lei Li

Abstract

Broken access control, the failure of authorization, is one of the most prevalent web security risks. Unlike injection, a flow of untrusted input into a dangerous operation, authorization is a relation: who may act on what, not how data moves. Each application decides that relation for itself, so no rule written in advance carries to the next. An LLM agent can infer it from the code, but with no systematic way to cover the application and prioritize what to inspect, its search stays undirected and access-control flaws go undetected.

We present ABSENTIA, a security scaffolding that turns general LLM agents into systematic vulnerability detectors for the backend of web applications, run as an audit by the developers and security engineers who maintain the code. Under its direction, the agents build a graph that maps the application’s routes to the code behind them. ABSENTIA then works route by route, applying invariant falsification: it infers the properties the code is meant to satisfy, and where one is not enforced, reports the route for maintainer review.

We also release BAC-BENCH, a benchmark of 30 broken access control advisories across 25 repositories, 3 languages, and 9 frameworks, each published in 2025 or later, verified by a human auditor, and paired with its fixing commit, so credit requires flagging the vulnerable version and not the fixed one. ABSENTIA recalls 19 of them, 17 under paired credit, and an LLM verifier confirms 51% of its findings. CodeQL and Semgrep recall none, and an unstructured agent on the same model recalls 3. In the OWASP Benchmark injection categories, ABSENTIA leads the dedicated analyzers in Python and trails only CodeQL and IRIS in Java.

*Corresponding author: andre.v.duarte@tecnico.ulisboa.pt

(a) Injection: unsafe source-to-sink flow

invoices.py CWE-89

1 @app.get("/api/invoices/search") 2 @login_required 3 def search_invoices(): 4 q = request.args["q"] ← source 5 return ← 6 db.execute(f"SELECT ... WHERE memo LIKE '%{q}%'") 7 return ← 8 db.execute("SELECT ... WHERE memo LIKE ?", [q]) 9 execution sink parameterized

Unsafe flow present: input reaches the query in a form that alters it.

(b) Broken access control: authorization incorrectly enforced

invoices.py CWE-639

1 @app.get("/api/invoices/int:invoice_id") 2 @login_required 3 def get_invoice(invoice_id): 4 return Invoice.query.filter( 5 Invoice.id == invoice_id.first() 6 + return Invoice.query.filter( 7 Invoice.id == invoice_id, —requested resource 8 + Invoice.account_id == current_user.id).first() ownership check

Required check absent: ownership of the invoice is never established.

Figure 1 | Two vulnerabilities behind the same @login_required authentication check. (a) SQL injection (CWE-89): a request parameter reaches the query unsafely. (b) Broken access control (CWE-639): the handler returns an invoice without verifying it belongs to the caller. The first is a flow a conventional taint rule can trace; the second depends on an application-specific ownership relation that such a rule does not encode. ABSENTIA detects both.

1. Introduction

OpenReview is a platform on which many machine-learning conferences run peer review. In November 2025, during ICLR 2026's review cycle, a broken access control flaw in its API exposed the identities of authors, reviewers, and area chairs for more than 10,000 submissions [18]. Parties who obtained the data then harassed, intimidated, and offered bribes to reviewers, and the organizers could no longer establish which reviews had already been influenced. Scores were restored to their pre-breach state and the area chair of every submission was reassigned, but the anonymity that the process depends on could not be recovered.

A comparison with SQL injection shows what makes broken access control hard to detect in source code (Figure 1). In an injection the defect is a flow, in which a request parameter reaches the database query in a form that lets it alter the statement. The property violated is the same in every application, so static application security testing (SAST) tools trace these flows with rules written once for a language. Broken access control has no flow to trace, because the defect is a relation between a principal and a resource: who has authorization to act on what. A route is vulnerable when that relation is not enforced or is enforced incorrectly.

SAST analyzers such as CodeQL and Semgrep [14,35] carry authorization rules, but these test the presence of a conventional framework-specific guard, which is a syntactic fact that a pattern can match. Whether it is the right guard for the object that returns the route depends on the intended policy of the application under analysis, so no generalizable set of patterns can be written, and the class remains largely beyond the reach of the analyzes that make injection detectable [24]. Detecting a missing or wrong check requires knowing which one the operation needs, and today that knowledge comes from one of two sources. The first is dynamic testing, which sends requests to the running application on different accounts and compares the responses [10,25,32,34]. The second is manual review, which recovers the knowledge directly but requires an engineer to read the source route by route. Checking authorization from source is therefore a reading task. This paper asks whether that reading can be automated: whether the property each route is meant to guarantee can be recovered from the source and the code held to it, so that a reviewer verifies findings instead of performing the analysis.

Large language models (LLMs) are currently the closest automated approximation to an engineer reading code. A model can read a route's handler together with the data model behind it and the conventions of the framework it is built on, and infer from them what that route is meant to enforce. However, left to read without direction, a model judges security properties unreliably [39]. ABSENTIA is a scaffolding that supplies the direction in two steps: first, it maps the application's request surface into a graph of routes and the guards in front of them, and then audits that surface one route at a time by invariant falsification, inferring the properties each route is meant to guarantee and checking the code against them. A route where an invariant fails becomes a finding for a security reviewer to verify.

To validate ABSENTIA, we assemble a benchmark of real authorization vulnerabilities: 30 disclosed advisories spanning 25 open-source applications and 9 frameworks, in Python (18), TypeScript (9), and JavaScript (3). Each advisory was published in 2025 or later, which limits what an evaluated model could have seen in training (§8), and every instance was verified by a human auditor. Each instance carries a vulnerable and a fixed commit, so recall is scored together with a patched-commit differential that credits a detection only when the defect is reported on the vulnerable version and not on the fixed one. To assess whether ABSENTIA is specific to authorization, we also run it on the injection categories of the OWASP Benchmark in Python and Java [30,31].

The experiments yield three results. Broken access control is detectable from source: ABSENTIA recalls 19 of the 30 vulnerabilities, 17 of them under the patched-commit differential, at 51% verifier-adjudicated precision, while CodeQL and Semgrep recall none, an outcome consistent with a limit of expressiveness rather than of reach. What separates ABSENTIA from a model left to itself is direction rather than capability: an unstructured agent on the same model, run on the same repositories as a control, recalls 3 of the 30. The same configuration reaches beyond that class: on the injection categories of the OWASP Benchmark it leads every tool we run in Python and trails only CodeQL and IRIS in Java. Together, they attribute the detection to the procedure rather than to the model: an analysis that recovers, route by route, the property the application intended to enforce, and treats it as a claim to falsify. The scaffolding converts a model's capacity to read code into that analysis.

Our main contributions are as follows:

• We propose ABSENTIA, a scaffolding that directs general LLM agents to analyze source code systematically, built on request-surface mapping, per-route invariant falsification, and the composition of findings across routes. Because what a route must guarantee is recovered from the application under audit rather than written in advance, ABSENTIA runs unchanged on frameworks and languages it was not built for, and it reaches broken access control, a class that dataflow analyses miss in most cases.

• We construct and release BAC-BENCH, a broken access control benchmark: 30 disclosed advisories across 25 repositories, 3 languages, and 9 frameworks, each published in 2025 or later, verified by a human auditor against its advisory and fix commit, scored by recall and a patched-commit differential.

• Our experiments show that scaffolding turns a general agent into a detector: ABSENTIA recalls 19 of the 30 vulnerabilities at 51% verifier-adjudicated precision, where CodeQL and Semgrep recall none and an unstructured agent on the same model recalls 3. When the components are separated, the per-route decomposition accounts for the recall, and invariant falsification cuts report volume by a third at no cost to it. We also report costs and how much of previous computations can be avoided when a repository is re-analyzed after a commit.

References (26)