Conceptio › Archive › arXiv CS
arXiv CS open access

Suspected Until Inspected: Neuro-Symbolic Detection of Broken Access Control in Server-Side Web Applications

Chengyao Yang et al. · arxiv_cs
arXiv CS · Papers
Open Source ↗Direct PDF ↓
cryptographycybersecurityprivacysecurity
Broken access control (BAC) has topped the OWASP Top 10 since 2021. Unfortunately, a decade of detectors still leaves a gap on every front. Static analyzers are tied to one language or framework, dynamic testers cover only the endpoints they manage to exercise, and LLM-based auditors leave the final
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

Suspected Until Inspected: Neuro-Symbolic Detection of Broken Access Control in Server-Side Web Applications Chengyao Yang∗ , Zifeng Kang∗ , Dongqi Han, and Shihong Zou†

arXiv:2611.27270v1 [cs.CR] 20 Nov 2026

Beijing University of Posts and Telecommunications {cyyang, zifengkang, handongqi, zoush}@bupt.edu.cn ∗ Equal contribution. † Corresponding author. Abstract—Broken access control (BAC) has topped the OWASP Top 10 since 2021. Unfortunately, a decade of detectors still leaves a gap on every front. Static analyzers are tied to one language or framework, dynamic testers cover only the endpoints they manage to exercise, and LLM-based auditors leave the final verdict to an error-prone model. In this paper, we design and implement FLINT, a neurosymbolic framework that detects BAC in server-side web applications without language- or framework-specific rules. Our key insight is to separate the proposal from the verdict— an LLM may flag any data access as needing a guard, but only a symbolically verified check can clear it. The neural component enumerates every endpoint and distills each, via demand-driven code slicing, into an authorization certificate whose claims are all grounded in cited code. The symbolic component verifies each claimed check through origin tracing and a lattice-based interprocedural dataflow analysis, so that no access is cleared on the model’s word. When applied to popular real-world open-source applications, including Gitea, Grafana, and Strapi, FLINT detected 112 zero-day, exploitable BAC vulnerabilities, 30 of them in projects with over 20,000 GitHub stars. We have responsibly disclosed all of them to the developers. Mattermost, for example, has already confirmed our report and is assigning a CVE identifier.

1. Introduction Broken access control (BAC) has been the top risk of the OWASP Top 10 since 2021 [1, 2]. Its object-level form— broken object-level authorization (BOLA), also known as insecure direct object reference (IDOR)—leads the OWASP API Security Top 10 [3], missing and incorrect authorization rank among the most dangerous software weaknesses [4– 6], and valid IDOR reports on bug-bounty platforms keep rising while injection and cross-site scripting decline [7]. A web backend serves requests on behalf of an authenticated caller and touches stored objects that the request selects by an identifier. Before an access takes effect, some statement must establish that this caller may perform this operation on this object. When the statement is missing, checks another object, trusts a principal that the client names, or grants

reading where the access writes, one user can read, modify, or delete another’s data. Unfortunately, a decade of detectors still leaves a gap on every front. Unlike an injection, an authorization flaw has no fixed shape—no source, sink, and flow between them that a rule could describe. A check may be an owner comparison, a query scoped by the caller’s tenant, a permission predicate deep in a service, an annotation, a middleware handed to the router three files away, or the check of a parent object that its children inherit (Table 1). Static analyzers therefore model one language or framework and its data layer [8– 13], and general-purpose analyzers ship IDOR queries for single frameworks [14] or leave the logic to rules that each project writes [15]. Dynamic testers [16–18] replay requests under different identities and cover only what they manage to exercise. LLM-based auditors [19–22] read code of any language like a human reviewer, but leave the verdict to an error-prone model, whose answers change from run to run, flip under renaming, and flag patched code [23–25], and coding agents struggle when authorization spans several files [26]. Worse for authorization, a model can be persuaded by code that looks like a check. Section 3.1 details a zeroday vulnerability that our approach detected in a popular business-intelligence platform. The service asks a permission predicate whether the caller may delete a personal access token—with the right library, action, and subject type—and throws otherwise. Shown the endpoint’s code and asked for its authorization flaws, the LLM that we use reports nothing; asked whether the deletion is restricted, it cites the predicate. Yet the predicate restricts nothing. The record handed to it is assembled from the caller’s own identity, so it approves every caller, and the deletion is keyed by the client’s token identifier alone. Our Approach. In this paper, we design and implement FLINT, a neuro-symbolic framework that detects BAC in server-side web applications without language- or framework-specific rules. Our key insight is to separate the proposal, i.e., what an LLM claims about an endpoint’s data accesses and the checks that guard them, from the verdict on whether each access is guarded, which only a symbolic verifier gives. An LLM may flag any data access as needing a guard, but only a symbolically verified check can clear it. The burden of proof is thus asymmetric. A

proposed defect is believed, a proposed defense counts only once proven, and a wrong defense never clears a listed access (Theorem 1). LLM-assisted analyses today confirm the bugs or specifications that the model proposes and take its dismissals as final [27–29], the wrong way round for authorization, where what fools a model is a check that looks right (Section 3.1). Proving a defense takes what no analysis offers without per-framework models, a semantics of whose value a check decides about and where it stands relative to the access. Doing so raises three challenges. Challenge I—making the model’s understanding checkable. A verdict in prose cannot be verified. FLINT asks the model, per endpoint, for an authorization certificate, which lists the objects that the endpoint selects from the request and the accesses to them (obligations, accepted as given), and the statements that restrict the caller (claims, verified before they count), each of a fixed kind and citing a line verbatim. Challenge II—verifying claims without frameworkspecific rules. Whether a cited statement restricts this caller’s access to this object on every path is a semantic question. Origin tracing determines, for every operand of a cited statement, whose value it is—the caller’s, the client’s, a stored row’s, or a constant—over the syntax trees of Go, Java, JavaScript, TypeScript, and Python; a lattice-based interprocedural dataflow analysis then computes the caller’s authority over each object on every path to the access. Challenge III—incompleteness on both sides. The model sees a slice of the program; the verifier cannot decide every claim. FLINT keeps a three-valued verdict—cleared, a definite finding, or a lead that depends on an unverifiable claim—and closes the loop. That is, the verifier demands the code it found missing, states objections, and asks whether a permission that cleared an access is the one the operation requires. The model answers each objection with new claims or an attack; a defense is a claim like any other and must verify. Results. On popular open-source applications, including Gitea, Grafana, and Strapi, FLINT detected 112 zero-day, exploitable BAC vulnerabilities, most of them in projects with over 20,000 GitHub stars. We have responsibly disclosed all of them; Mattermost, for example, has confirmed our report and is assigning a CVE identifier. On 69 pairs of vulnerable and fixed versions of an endpoint, FLINT reports 85.2% of the vulnerable versions (macro average) where the same LLM auditing the same code reports 46.7%, and its most confident findings alone improve recall, false alarms, and separation at once. Neither 2,926 fabricated claims nor 34 adversarial samples (50,903 claims) cleared an access known to be unguarded. Contributions. We make the following contributions. • We design FLINT, in which an LLM proposes, per endpoint, an authorization certificate listing the data accesses and the checks that guard them, and a symbolic verifier alone decides whether each access is guarded (Section 4). • We formalize the verifier—origin tracing, claim verification, a lattice-based interprocedural authority analysis,

and a three-valued verdict—and prove that no access is cleared on the model’s word, relative to five stated assumptions (Section 4.2). • We implement FLINT for five languages and evaluate it against static, BOLA, and LLM-based detectors; it detected 112 zero-day vulnerabilities, all disclosed (Section 6). Our code is public.1

2. Problem Statement 2.1. Object-Level Authorization An endpoint is a function that the framework invokes to serve an external request, e.g., a route handler, a controller action, a view method, or an RPC or GraphQL resolver. It acts for an authenticated caller and performs accesses on stored objects. An access a has an operation op(a) ∈ {READ, WRITE, DELETE, CREATE}, an object o(a), and key expressions key(a), i.e., the operands of its statement that select which rows are touched. An object is request-selected when its selector is a value that the client controls, i.e., a path, query, body, header, or cookie value, a value derived from one, or the object that the framework bound from the URL. Authority forms the chain NONE < READ < WRITE < FULL, written 0 < 1 < 2 < 3, and an access needs need (READ) = 1 and need (op) = 2 for the other operations. Definition 1 (Object-level authorization). On every execution path of an endpoint, where an access to a requestselected object takes effect, the caller holds authority of at least need (op) for that object, established earlier on the same path by a check that (1) acts for the authenticated caller, (2) concerns the accessed object, (3) ends the request when it fails, and (4) is strong enough. Definition 1 is complete mediation [30] restricted to the objects that a request selects; its violation is what CWE639 calls an authorization bypass through a user-controlled key [31]. A write takes effect at its statement; a read takes effect where its data leaves the endpoint, so fetching a row, checking its owner, and only then responding is correct. Each clause fails in practice, e.g., with no check, a check on the caller’s own row instead of the selected one, a check that a client-chosen principal satisfies, a rejection that does not end the request, a read permission guarding a write, an owner reference written from the request, or a batch some of whose keys no check covers. Function-level gaps (a route open to the wrong role) are reported apart. Table 1 lists the five ways in which applications establish authority, as FLINT’s certificate names them. The same idioms appear in every language, with different syntax, receivers, and libraries, so a rule that names @PreAuthorize or ability.cannot covers one framework at a time. And a check often sits outside the handler, e.g., in a service, an annotation, a middleware handed to the router, or a method that the framework invokes 1. https://github.com/flint4bac/FLINT

TABLE 1. H OW APPLICATIONS ESTABLISH OBJECT- LEVEL AUTHORITY. E ACH IDIOM IS ONE CLAIM KIND OF FLINT’ S CERTIFICATE ; THE SAME KIND TAKES DIFFERENT SYNTAX IN EVERY LANGUAGE AND FRAMEWORK .

1 @Middlewares([isAuthenticated, unauthorisedInDemo]) 2 @Delete('/me/personal-access-tokens/{tokenUuid}') 3 async deletePersonalAccessToken(@Path() tokenUuid: string, 4 5 6

Claim kind

Example idiom

Language

OWNER_COMPARE if n.OwnerID != u.ID {..} Go SCOPED_QUERY objects.get(pk=pk, owner=me) Python PERMISSION_CALL ability.cannot(’delete’, ..) TS @PreAuthorize("hasPerm..") Java LINK if (c.postId !== post.id) JS project.issues.get(pk=id) Python ROLE_GATE @UseGuards(AdminGuard) TS r.Use(requireAdmin) Go

7 8 } 9 /* PersonalAccessTokenService.ts */ 10 async deletePersonalAccessToken(account: Account, 11 tokenUuid: string) { 12 const ability = this.createAuditedAbility(account);

18

if (ability.cannot(’delete’, /*Claim R1*/ subject('PersonalAccessToken', { organizationUuid: account.organization.uuid, userUuid: account.user.id, tokenUuid }))) throw new ForbiddenError('...'); await this.patModel.delete(tokenUuid); /*Access A1*/

19 20 21 22 23 24

} /* PersonalAccessTokenModel.ts */ async delete(tokenUuid: string) { await this.database('personal_access_tokens').delete() .where('personal_access_token_uuid', tokenUuid); }

13 14 15 16 17

(canActivate). A detector must find these places and establish that they run before the access, on every path.

2.2. Threat Model The attacker is any client of the application, typically an authenticated user with the lowest privilege that the endpoint admits. The attacker controls every value of a request and knows or guesses identifiers of other users’ objects, but cannot change code, configuration, or the database; the goal is to read, modify, delete, or create under an object of another user, tenant, or container. We assume that authentication is sound, i.e., the expression through which the application reads the caller denotes the authenticated principal. FLINT analyzes source code and needs no running instance. Authentication flaws, injection, and capability-based sharing by design (share links) are out of scope.

3. Overview 3.1. A Motivating Example Listing 1 presents a zero-day vulnerability that FLINT detected in a popular open-source business-intelligence platform and that we reported to the developers. The endpoint revokes a personal access token, the credential with which command-line tools, CI jobs, and integrations call the platform’s API. Vulnerability Details. The controller method (lines 1– 8) serves a DELETE request on a token’s path (line 2); its decorators require a session. It passes the caller’s account and the token identifier from the path to a service (line 6). The service builds a CASL ability for the caller (line 12) and asks whether the caller cannot delete a PersonalAccessToken described by a record (lines 13–16); if so, it throws (line 17). Otherwise, it deletes the token (line 18) through a statement keyed by the identifier alone (lines 21–24). The record that the predicate judges is built from the caller’s organization, the caller’s user identifier, and the client’s token identifier (lines 15– 16). None of its fields is read from the stored token, so whatever rule the ability applies, it is applied to a description in which the token belongs to the caller. (By default, the

@Request() req: Request) { await this.services.getPatService() .deletePersonalAccessToken(req.account, tokenUuid); return { status: 'ok' };

Listing 1. A motivating example: a zero-day BOLA vulnerability that FLINT detected in an open-source business-intelligence platform, simplified for explanation (identifiers shortened). Blue marks the caller’s identity, red the values selected by the client and the access they key, and yellow the statement that the model cites as a check.

rule that grants token management has no condition.) Any authenticated user who learns another user’s token identifier deletes that token. The flaw reads like a textbook check: the right library, action, and type, and a rejection on failure. Exploitation and Impact. An attacker with the lowest default role sends one request with the victim’s token identifier and receives 200 OK (Appendix A). The victim’s token stops authenticating at once, which breaks every CI job, command-line client, and automation that uses it; the deletion has no organization predicate, so the same request reaches tokens of other tenants; and it is logged for the attacker under a generic event.

3.2. Challenges and Our Solution Three things make this vulnerability hard to detect. First, the check does not sit in the handler but in a service reached through a chain of calls, and the deletion is two calls deep (lines 18 and 22). Second, the check looks right, and only the origin of the values handed to the predicate shows that it decides about the caller, not the stored token. Third, a decision must hold on the path of the deletion; a check on another branch, or after the deletion, guards nothing. An LLM handles the first well and the second poorly; a static rule handles neither without knowing the framework. FLINT lets the model propose and the verifier decide (Figure 1). On Listing 1, it works as follows. ❶ Enumerate and slice. The model lists the controller method as an endpoint; FLINT slices it with its decorators and the functions it calls (Section 4.1). ❷ Certify. The model’s certificate names the caller req.account, one object (the token, selected by the

Repository

Go, Java, JS, TS, Python

syntax trees, symbol table

parse

source files routes

DELETE /pat/{id} POST /spaces PATCH /users/{id}

endpoints

1

triage, listing

verifier writes

Neural: the LLM proposes

symbols

GET /projects

obligations

GUARDED + R1

"objects": O1 "accesses": A1

3 6 12 13 17 18

EXPLOITABLE NOT_NEEDED

claims

"caller": req.account "checks": [ ]

UNDECIDABLE

certificate

5 answers R1 cites line 13

slice S(e)

1

2

numbered lines

writes no verdict

certificate

demanded code 4

slice

me

Sel

{org, user, token} cannot(…) L13

origin tracing no root in a row

V1 Grounded V2 Shape V3 Subject V4 Object V5 Enforced V6 Meaning V7 Attestation

claim checks R1 refuted

defense claims

obligations accepted, claims verified

6

4 objections

3 me

Certificate prompt (abridged)

model writes

need = 2

Cleared

cleared

Finding A1

You analyze ONE endpoint of a web backend and write an AUTHORIZATION CERTIFICATE: checkable facts about which stored objects it touches and which statements restrict the caller’s access to them. You never say whether the endpoint is vulnerable. Another program verifies every fact against the code. [. . . ] Return only {caller, objects[{selector, accesses[{loc, quote, op, key, . . . }]}], checks[{loc, quote, kind, subject, object, form, fail, level}], need}. List every object SELECTED by client input [. . . ]. List ONLY statements that restrict which objects THIS caller may access; authentication alone is not a check. Every quote must be copied verbatim from the line at its loc. [. . . ]

Certificate for Listing 1 (abridged; locations are lines of the listing) {"caller": [{"expr": "req.account", "loc": "L6"}], "objects": [{"id": "O1", "type": "PersonalAccessToken", "selector": {"expr": "tokenUuid", "loc": "L3", "source": "PATH"}, "accesses": [{"id": "A1", "op": "DELETE", "loc": "L18", "quote": "await this.patModel.delete(tokenUuid);", "key": ["tokenUuid"]}]}], "checks": [], "need": ["deletePersonalAccessToken"]}

Lead

A1

authority analysis

verdict

lattice dataflow

per access

Figure 2. The certificate prompt and the model’s certificate for Listing 1. Objects and accesses are obligations, checks are claims; there is no verdict.

Symbolic: the verifier decides two siblings verify a scoped read

sibling norm

report tiers

A1 A

A*

B

U

C

L

Figure 1. Workflow of FLINT on Listing 1, with the steps ❶–❻ of Section 3.2. The model (top) proposes; the verifier (bottom) decides. Nothing the model writes clears an access unless the verifier confirms it in the code.

path parameter), and one access, the deletion A1 (Figure 2). It cites no check. ❸ Verify. Origin tracing resolves the caller and the selector (Section 4.2.2). With no claim, no authority reaches the deletion, which is a definite finding (Section 4.2.4). ❹ Demand and object. The verifier fetches the service and the model class that the access statement calls, and objects that no cited statement restricts which caller may reach the token (Section 4.3). ❺ Answer. The model defends the deletion with the predicate on line 13, as claim R1, which “rejects the request unless the caller may ‘delete’ a PersonalAccessToken whose [. . . ] userUuid is the caller’s own user id”. ❻ Re-verify. R1 is grounded and names an authorization decision handed the caller, but every operand of its record has the caller’s or the client’s origin and none comes from the stored token, so R1 is refuted (Section 4.2.3), and the deletion stays a definite finding (Figure 5). Nothing that the model said in steps ❷ and ❺ could clear the deletion; had the defense verified, the access would have been cleared on the strength of the code it cites.

4. Design This section follows Figure 1. The model proposes certificates (Section 4.1), the verifier decides every access (Section 4.2), and objections close the loop (Section 4.3).

4.1. Proposing Authorization Certificates Endpoint Enumeration. FLINT enumerates endpoints with two model passes and resolves every answer against a symbol table built from tree-sitter syntax trees [32]. A triage pass shows the model short digests of the source files and asks which may handle requests or register handlers; a listing pass shows each selected file as numbered lines and asks for the functions that serve requests and the statements that register them. An unresolvable name is dropped, so the model can name only code that exists. Demand-Driven Slicing. A slice is a list of sections of numbered source lines, so that every claim can cite a location. Unlike a program slice [33], it keeps whole functions, which the model reads better than scattered statements [34], i.e., the handler with its decorators, class header, and route registration, the definitions of the guards named there, and the functions it calls to depth two. The slice grows on demand. The model may name a function whose body it needs (need), and the verifier demands code that it finds missing (Section 4.3). Certificates. For each endpoint, the model writes a certificate in a fixed JSON schema (Figure 2), whose two parts are treated asymmetrically. Obligations—the objects that the endpoint selects from client input and the accesses to them, each with a location, a verbatim quote, an operation, and key expressions—are accepted as given, since a spurious obligation can only add a finding. Claims—the caller expression and the checks—count only once verified. A check claim cites a statement and gives its kind (Table 1), subject and object expressions, form (REJECT if failure ends the request, POSITIVE if the access sits in the passing branch, THROWS if the call aborts, FILTER if the query excludes other callers’ rows), failing statement, and level. A coverage list that the schema asks for (which check covers which access) is never read, because the verifier computes coverage

itself. For Listing 1, the model lists the deletion, cites no check, and asks for the service’s body.

4.2. Verifying Certificates The verifier decides, for every access of a certificate, whether the code establishes Definition 1; it never asks the model anything. We derive each of its steps on Listing 1. 4.2.1. Language and Notation. We present the verifier over a core language that captures the constructs it interprets in all five languages. A program is an endpoint’s slice, i.e., an entry function E and the functions it may call, over e ::= x | c | e.f | e0 .m(e1 , . . . , en ) | e1 ⊙ e2 | {f1 : e1 , . . . , fn : en } s ::= x := e | e.f := e | e | s1 ; s2 | if e then s1 else s2 | while e do s | return e | throw e

with variables x, constants c, fields f , and method or function names m. Per-language tables of syntax-tree node types map each language onto this core (Section 5). For example, destructuring becomes field reads, an out-parameter an assignment, try/catch a branch, and a decorator, annotation, or route middleware a guard statement at the entry of E . Table 2 summarizes our notation. TABLE 2. N OTATION USED IN FLINT’ S VERIFIER . Origins

Description

r = (t, b, π)

Root of kind t ∈ {P, S, G, L, U} (parameter, receiver, global, literal or unset field, unknown), base b, path π Fields f , accessors m(c̄), derivations ▷m , keyed lookups ▶m The roots of expression e (Figure 3) Caller roots; roots that extend a root of R r is client-controlled request data Roots of o’s selector; of its fetched rows r lies on the lineage of object o

π orig(e) Rme , R↑ Client(r) Sel(o), Row (o) r⇝o

Certificate O, A, K op(a), key(a) sk , st(k)

Objects, accesses (obligations); check claims o(a), Operation, object, key expressions of access a

Obj (k), lvl(k)

Statement cited by k; status VALID, R EFUTED, or U NVERIFIED Objects that check k concerns; level it grants

Authority Λ = {0, 1, 2, 3} σ = (α, Lk ) ⊔, ⊓, ⊥, ⊤ JsKσ ; T (c), F (c) con(k) auth(σ)(o), need(op) σa− , σa+

NONE < READ < WRITE < FULL State, where α maps O ∪ {#k, @gate, @admin} to Λ and Lk holds link facts Join, meet, least and greatest state State after s; facts on the true/false side of c Facts contributed by a VALID check k Authority held for o; authority that op needs Pessimistic, optimistic state where a takes effect

4.2.2. Origin Tracing. Verification asks, for every operand of a cited statement, whose value is this. Taint analysis [35– 37] asks whether a value may come from a source; here the kind of every origin matters, because a check is sound only if one operand is the caller and another the object. FLINT computes the origin of an expression as a set of roots by the rules of Figure 3. Roots and Rules. A root (t, b, π) says that a value is reached from base b of kind t along path π , i.e., a sequence of steps, each a field f ; an accessor m(c̄), a call with constant arguments such as ctx.Param("id") (ACC); a derivation ▷m , “passed through call m”; or a keyed lookup ▶m on the receiver of a call that is given data— repo.find(id) yields some element of repo, selected by id (D ERIVE). Identifiers take the union of their definitions (D EF); a callee’s parameter takes the origins of its arguments at every call site that the slicer resolved or whose arity and receiver fit (B IND); and a call of a slice function also takes the origins of its return expressions (R ET). Field reads are field-sensitive through record literals (R EC), and a field that no literal sets is unset (U NSET). Two further rules keep identities apart. First, this in a method called on another object denotes that object, never the caller. Second, the request parameter of a guard that the framework invokes denotes the handler’s request. Caller, Client, and Objects. We define four notions. • The caller roots Rme = orig(xme ) are the origins of the certificate’s caller expression (rejected if it lies on a request selector); a root in Rme ↑ is caller-derived. • Client(r) holds when r is not caller-derived and lies on a declared selector, is read through the accessor that such a selector uses, or is read through a generic request accessor (body, query, params). • An object o is denoted by Sel (o), its selector’s roots, and Row (o), the roots of the variables holding its rows. • r ⇝ o (r lies on the lineage of o) if, for some d ∈ Sel (o) ∪ Row (o), r = d; r extends d ∈ Row (o) (a row’s field); r = d · ▷m · · · for d ∈ Sel (o) (the selector passed on); or d = r · ▷m · · · (what d was derived from). Keyed steps never establish identity, because two rows fetched from one table are different objects, and a container from which the caller or several selectors are read (the request itself) concerns none of them. Example 1 (Origins in Listing 1). The caller is req.account (line 6), so Rme = {(P, req, account)}. The service’s parameters are bound on line 6 (B IND), so the fields on lines 15–16 have the caller-derived roots (P, req, account·user·id) and (P, req, account·organization·uuid), and the client root (P, tokenUuid, ϵ) ∈ Sel (O1 ). The receiver ability (line 12) is caller-derived by D ERIVE. No argument of the call on line 13 has a root in Row (O1 ), i.e., nothing given to the predicate was read from the stored token (Figure 4). 4.2.3. Claim Verification. A check claim becomes VALID only if the code satisfies every condition of Table 3. The

x is a parameter of E x ⇓ {(P, x, ϵ)}

x := ej in the function of x S x ⇓ j Rj e⇓R

x is parameter i of g ̸= E

PARAM ej ⇓ Rj

e is bound to no record literal e.f ⇓ R · f

e ≡ {f1 : e1 , . . . , fn : en }

D EF

F IELD

f ∈ / {f1 , . . . , fn }

e.f ⇓ {(L, ⊥, f )} e0 ⇓ R 0

c1 , . . . , cn constants

e0 .m(c1 , . . . , cn ) ⇓ R0 · m(c̄) x.m(e) with m a container mutator x ⇓ R · ▷merge

this ⇓ {(S, this, ϵ)}

g ⇓ {(G, g, ϵ)}

e ≡ {. . . , f : ef , . . .}

ef ⇓ R

e.f ⇓ R

U NSET

c ⇓ {(L, c, ϵ)}

BASE

R EC

S ei ⇓ Ri (1 ≤ i ≤ n) i Ri ̸⊆ {(L, ·, ·)} D ERIVE S e0 .m(e1 , . . . , en ) ⇓ i Ri · ▷m ∪ R0 · ▶m

e0 ⇓ R 0

e0 .m(ē) calls g of the slice

′

return ej in g S e0 .m(ē) ⇓ j Rj′

ACC e⇓R

ej,i ⇓ Rj for each call ej,0 .g(ej,1 , . . .) of g B IND S x ⇓ j Rj

′

′

ej ⇓ Rj

R ET

M ERGE

Figure 3. Origin-tracing rules. e ⇓ R: expression e has the roots R, and orig(e) is the union over all derivations; e ≡ ρ: e is bound to the record literal ρ through definitions and call sites; R · δ appends step δ to the path of every root in R. A call whose inputs carry no data root has the unknown root (U, m, ϵ). TABLE 3. S PECIFICATION OF CLAIM VERIFICATION . A CLAIM k CITES STATEMENT s = sk WITH OPERANDS ops(s). A VIOLATED CONDITION MAKES THE CLAIM R EFUTED ( THE CODE CONTRADICTS IT ) OR U NVERIFIED ( THE CODE NEITHER CONFIRMS NOR CONTRADICTS IT ); ONLY A VALID CLAIM CONTRIBUTES AUTHORITY. Rule

Kinds

Condition on the cited statement s

If violated

The quote of k occurs at its cited line (±2 lines, whitespace-normalized) U NVERIFIED s is a comparison or query (OWNER_COMPARE, SCOPED_QUERY) or a call or R EFUTED (R-SHAPE) annotation (PERMISSION_CALL), with form(k) ̸= NONE; kind and form are re-read from s V3 Subject OWNER_COMPARE, For every alternative α of s that the client can select, ∃x ∈ ops α (s) in a selecting R EFUTED (R-SUBJ) position with orig(x) ∩ Rme ↑ ̸= ∅, SCOPED_QUERY and no subject operand has a root r with Client(r) V4 Object All Obj (k) = { o ∈ O | ∃x ∈ ops(s), r ∈ orig(x). r ⇝ o }; if Obj (k) = ∅, k is a Gate only gate (@gate, or @admin if s names an admin role) V5 Enforced By form For REJECT, the failing branch of s ends the request (return, throw, or a no- R EFUTED (R-NOTHROW) return call) or, in a loop, the iteration (continue, break); for THROWS, the callee has an aborting exit; for FILTER, the access runs the query value that s builds; for POSITIVE, the access lies in the passing branch V6 Meaning PERMISSION_CALL (s is tested by a branch ∧ ∃x ∈ ops(s). orig(x) ∩ Rme ↑ ̸= ∅) ∨ the callee or U NVERIFIED (R-OPAQUE) annotation names an authorization concept V7 Attestation PERMISSION_CALL ¬ ∃ record literal ρ among the arguments of s with orig(ρ) ∩ Rme ↑ ̸= ∅ ∧ R EFUTED (R-ATTEST) orig(recv (s)) ∩ Rme ↑ ̸= ∅∧ no argument root reads a field of a fetched row

V1 Grounded V2 Shape

All All

Level

All

lvl(k) = 3 for OWNER_COMPARE; the declared level for PERMISSION_CALL, capped at 1 if its name or constant arguments say only view or read; for SCOPED_QUERY, 3 if it is the only guard of its object and the declared level otherwise

conditions mirror the four clauses of Definition 1. V3 and V6 establish that the check acts for the caller (clause 1), V4 that it concerns an object (clause 2), V5 that it ends the request or restricts the query (clause 3), and the level rule that it is strong enough (clause 4); V1 and V2 tie the claim to real code of the claimed shape. Transparent kinds (owner comparisons, scoped queries, links) are decided by their operands. An opaque predicate’s meaning rests on what the code says about it (V6), and its level on its declaration, lowered but never raised by its name. A LINK carries a parent’s authority to its child (Section 4.2.4). Hardening. Each condition is easy to satisfy with a misleading claim. Every way in which a model made a false claim pass—in the adversarial rounds of Section 6.5, under fault injection, or in probing by hand—became a refinement of V3–V7 with a pair of conformance tests (the safe pattern

—

and its nearest unsafe variant), following four principles. Position—an operand counts in the role that its syntax gives it; the caller scopes a query only in a selecting position, not as a written value or under a negation. Use—a call is a guard only if its result is used as claimed. Identity—the caller is what is read through the caller’s accessor, not a value computed from the caller and client data together, and not a record assembled from the caller’s identity in place of the stored object (V7). A predicate of the repository that is handed a request value as its principal, and reads no principal itself, decides nothing about the caller. A path joined from the caller’s base directory and a request segment is refuted unless the code tests it for confinement, since a segment such as .. leaves the base. Evidence over word— where the code shows something, the claim’s word yields.

caller-derived client stored row (absent)

req @L4 Param, Field

TABLE 4. T RANSFER FUNCTIONS OF THE AUTHORITY ANALYSIS . ⊤ IS THE STATE OF A PATH THAT HAS ENDED ; IT IS THE IDENTITY OF ⊓ , SO ENDED PATHS CONSTRAIN NOTHING .

tokenUuid @L3 (P, tokenUuid, ε) ∈ Sel(O1)

req.account @L6

Bind

caller roots: (P, req, account)

Statement s

Bind

account @L10

tokenUuid @L11

Derive

Field

ability @L12

account.user.id @L16 Rec

receiver

Rec

{ organizationUuid, userUuid, tokenUuid } @L14–16

s1 ; s 2 s cites VALID k, form THROWS or FILTER if c then s1 else s2 return e, throw e while c do s1 Call of slice function g

roots: 2 caller-derived, 1 in Sel(O1), none in Row(O1)

Any other s

Derive (argument)

ability.cannot('delete', …) @L13

patModel.delete(tokenUuid) @L18

R1: receiver and record caller-derived

A1: key roots ⊆ Sel(O1)

R1: V7 ⇒ Refuted

A1: no Valid check ⇒ definite Finding

Figure 4. Origin graph of Listing 1: nodes are expressions with their line, edges carry the deriving rule of Figure 3, and flags show root kinds. The predicate’s arguments carry caller and client roots but none of a stored row, which refutes claim R1 (V7 in Table 3).

4.2.4. Authority Analysis. Whether a VALID check holds where an access takes effect is decided by a forward, muststyle dataflow analysis [38, 39] over the structured syntax trees of the slice, whose domain of authority levels is in the tradition of lattice models of secure information flow [40]. Definition 2 (Authority lattice). Let Θ = O ∪ {#k | k ∈ K}∪{@gate, @admin}, where #k stands for what a VALID check concerns when that is not a listed object. A state σ = (α, Lk ) consists of α : Θ → Λ and a set Lk of link facts, ordered by σ1 ⊑ σ2 iff α1 ≤ α2 pointwise and Lk 1 ⊆ Lk 2 . Join ⊔ and meet ⊓ are the pointwise maximum and minimum (union and intersection on Lk ); ⊥ maps everything to 0 with no links, and ⊤ everything to 3 with all links. As a product of chains and a powerset, (Σ, ⊑) is a complete lattice of finite height. A VALID check contributes con(k) = ({o 7→ lvl (k) | o ∈ Obj (k)}, ∅); a gate contributes to @gate or @admin, and a link adds itself to Lk . Table 4 gives the transfer functions. The entry state of E joins the contributions of its VALID declarative guards (decorators, annotations, class headers, and functions registered before the route), so that a guard outside the handler holds on all of its paths. Conditions. A branch condition is put in negation normal form over atoms, and T (c1 ∧ c2 ) = T (c1 ) ⊔ T (c2 ), T (c1 ∨ c2 ) = T (c1 ) ⊓ T (c2 ), with F dual. A VALID check atom contributes con(k) on its passing side—decided by the operator of a comparison, and for an opaque predicate by the side without the cited rejection—and ⊥ on the other. An atom over client data (req.query.force) contributes ⊥; an atom over caller-derived data (me.isAdmin) or a stored attribute of an accessed object (doc.public) contributes ε, the identity of both ⊔ and ⊓. Hence owner == me ||

JsKσ Js2 K(Js1 Kσ) σ ⊔ con(k), after s completes Js1 K(σ ⊔ T (c)) ⊓ Js2 K(σ ⊔ F (c)) ⊤ (the path ends) σ ; the body is analyzed from σ d j σj over the returns j of g compatible with the caller’s test of the result; g inlined to depth 3 σ

req.query.force yields con(k) ⊓ ⊥ = ⊥. In other words, an alternative that the client controls destroys the fact, while one reserved to privileged callers leaves it intact. Calls and Loops. Calls into the slice are inlined, a bounded form of interprocedural analysis [41, 42]. A callee is summarized by its returns, each with its state and a status vector recording which returned values are certainly truthy or falsy, so that a caller that tests err != nil continues with the compatible returns only; a function that returns a check’s result contributes the check on its truthy return only. A loop body runs from the state before the loop, which is also the state after it. Since every transfer function only adds facts and merges take meets, no fixpoint iteration is needed. Effects. A write, deletion, or creation takes effect at its statement; a read where its data is released—returned, handed to a call that can reach the client, or stored into nonlocal state, by a call-site-sensitive data dependence from the access’s result. The authority for o at an effect is auth(σ)(o) = max α(o), max(o,p)∈Lk auth(σ)(p),  maxp∈src(a) α(p) ,

where src(a) are the objects from whose stored data the access’s key is derived. Key coverage is a must property, KeyCovered (a, σ): every client root of every key must lie on the lineage of an operand of an applied VALID check or derive from stored data of an authorized object; roots that enter one lookup together are joint (find(id, tenant)), and roots of alternative sources each need cover (R-KEY). A written owner reference taken from client data is a finding (R-REF). Example 2 (Authority for the deletion in Listing 1). The decorators on line 1 authenticate but name no object or role, so the entry state is ⊥. The if on line 13 has one atom, the call cited by R1; its true side throws (line 17) and yields ⊤, and since R1 is R EFUTED, its false side is ⊥ ⊔ F (c) = ⊥. The merge gives ⊤ ⊓ ⊥ = ⊥, so auth(σ)(O1 ) = 0 < need (DELETE) = 2 under both evaluations (Figure 5). Had the service first read the token through a query scoped by account.user.id, as its sibling that rotates tokens does, that SCOPED_QUERY would be VALID

⊤

cleared region α(O1) ≥ need(DELETE) = 2

entry L10

⊥

ability := … L12

⊥ R1 Refuted ⇒ ℱ(c) = ⊥

if ability.cannot(…) L13

role gate alone

true

3

α(@gate)

3 2

2 1

(c) Cleared

α(O1) if R1 were Valid

throw L17

t := getUserToken({userUuid: account.user.id, tokenUuid}) SCOPED_QUERY, Valid, throws

⊥ ⊔ con(k) = [O1 ↦ 3]

⊥ ⊔ ℱ(c) = ⊥

⊤ (path ends)

patModel.delete(t.uuid) L2′

patModel.delete(…) L18

1

⊥

false

entry L10

⊤⊓⊥=⊥ 0 < 2 ⇒ Finding

auth(O1) = 3 ≥ 2 Cleared

(b) Finding

(a) The lattice Λ × Λ over (O1, @gate)

(b) The service of Listing 1

(c) With a scoped read first

Figure 5. Authority analysis of Listing 1. (a) The lattice Λ × Λ over (O1 , @gate); the shaded up-set holds the states that clear the deletion, α(O1 ) ≥ need(DELETE) = 2, and a role gate alone stays outside it. (b) The states along the service, where refuted R1 contributes nothing, so the deletion is reached in ⊥ under both evaluations, a definite finding. (c) The states along a version that first reads the token through a query scoped by the caller.

and the only guard of O1 , and the state after it would be {O1 7→ 3}—the deletion would be cleared. 4.2.5. Verdict and Guarantees. Not every claim is decidable. A predicate defined in a library may name no authorization concept, and a callee may be missing from the slice. FLINT therefore evaluates the analysis twice. Definition 3 (Three-valued verdict). Let σa− be the state where access a takes effect when only VALID claims contribute (pessimistic), and σa+ the state when, in addition, every U NVERIFIED claim not made in defense is assumed as stated and VALID checks of unknown position are placed first (optimistic). Access a on o = o(a) is ≥ need (op(a)) ∧ • C LEARED if auth(σa− )(o) KeyCovered (a, σa− ) ∧ ¬BrokenGuard (a); + • a definite F INDING if auth(σa )(o) < need (op(a)) ∨ BrokenGuard (a); • a L EAD otherwise, i.e., it depends on a claim that the code cannot decide. BrokenGuard (a) keeps a write uncleared when the code itself makes an authorization decision about the object that is refuted for its subject, unless a VALID decision of the needed level about the caller covers it.

Lemma 1 (Claims that do not verify cannot clear). Adding claims that are not VALID to a certificate never clears an access. At most, an U NVERIFIED claim turns a definite finding into a lead; a defense claim cannot even do that. Proof sketch. R EFUTED claims enter neither evaluation and serve only BrokenGuard , which only keeps an access uncleared; U NVERIFIED claims enter only σa+ ; defense claims enter neither unless VALID. The transfer functions are monotone, so σa− , and with it the cleared set, is unchanged. □ Theorem 1 (Clearance is decided by code). If FLINT clears access a, then on every path of the analyzed program that reaches the effect of a, some statement s precedes it such that, as established from the code alone, (i) s ends

the request when it fails or filters the query that a runs; (ii) the caller is an operand of s on every client-selectable alternative, or s is a predicate accepted under V6 and V7; (iii) an operand of s lies on the lineage of every client source of key(a), or the key derives from stored data of an object so covered; and (iv) lvl (s) ≥ need (op(a)). Proof sketch. In the pessimistic evaluation, authority enters a state only by a join with con(k) of a VALID claim k where k passes (V5), and a meet keeps a fact only if it holds on every incoming path that has not ended. Hence auth(σa− )(o) ≥ need (op(a)) implies that every path to the effect passes a VALID check of sufficient level concerning o, its parent, or the source of its key; V1–V7 establish (i), (ii), and (iv), and KeyCovered establishes (iii). □ The certificate contributes only the location and kind of s, and for an opaque predicate or a scope its level. The theorem is relative to five assumptions, namely (A1) a call that the analysis inlines is a call of that function; (A2) the declared caller expression, once shown not to be client data, denotes the authenticated principal; (A3) a predicate accepted under V6 and V7 decides whether the caller may access its object operands, at its declared level unless its name says less; (A4) a verified scope or link grants the level that the certificate states, unless the code contradicts it; and (A5) guards named by the endpoint’s declaration or registration run before the handler. Outside the theorem are accesses that the model did not list, reflection, flows through the store, and authorization by possession of a capability (share links, signed URLs). Termination. The dataflow analysis visits each statement of each inlined clone once. Origin tracing is exponential in the worst case; an endpoint that exceeds 60 s is evaluated again with a budget of 3,000 evaluations, beyond which origins are unknown, and such a bounded result never clears.

4.3. Closing the Loop A definite finding may be a guard that the model missed, and a lead may hide a real flaw, so the verifier answers back. Demand and Objections. For every endpoint with an uncleared access, the verifier adds the code that it found missing, resolved from the code and never from a name that the model wrote. That is, it adds the function that an uncleared access statement calls (resolved by arity and receiver), the body of an undecided predicate, the definitions behind the decorators, and the registration scope— statements that hand functions to the router before the route (router.use(mw)). It then states one objection per uncleared access, giving its location and the reason in terms of the code (no restriction cited, only gates, an uncovered key, not on every path, a weaker level, a subject that is not the caller, a self-attested record), never whether the endpoint is vulnerable. The model answers each objection with GUARDED and new claims, EXPLOITABLE with an attack, NOT_NEEDED with a reason, or UNDECIDABLE with the code it was not shown. GUARDED claims are verified like any other and count only if VALID (Lemma 1). Challenging the Level. Verification takes the level of a permission predicate from its declaration and name (A3), so a name that says read or view clears a read, although applications define finer ones, e.g., to see a workspace, logs, or secrets. For every access cleared by such predicates alone, FLINT asks the model in three independent samples which permission the operation requires and whether the checked one implies it; if the majority names a finer one and an attack, the access stays uncleared, a finding conceded with an attack. Like an obligation, the challenge only adds findings. The Application’s Own Norm. An endpoint that checks something, but less than the application checks elsewhere for the same type of object, passes the steps above. FLINT inventories, per object type, the guards verified on the application’s endpoints, under a signature read from the code (a predicate with its constant arguments, or the compared owner field). An endpoint deviates when at least two siblings verify a strictly stronger guard on a type that it accesses and its own code neither verifies, claims, nor mentions it; the model must then cite the access that the guard should protect, and can only add a finding. For Listing 1, two siblings that list and rotate tokens verifiably fetch them with caller-scoped queries, and the deletion does not. Report. An endpoint is reported if an access stays uncleared, in the best tier of its definite findings, i.e., A, conceded by the model with an attack; A*, below a verified norm of its siblings; B, defended, with the defense refuted; U, undecided for lack of code; C, waived as not needed; and L, a lead. The tiers order the report; none removes an entry. Listing 1 is reported in tier A*.

5. Implementation We implemented FLINT in 14.1 K lines of Python, namely the verifier (8.6 K), the neural pipeline (3.2 K), and

drivers for the objection round, the need challenge, the sibling norm, and fault injection (2.3 K). The only languagespecific code is a table of tree-sitter [32] node types per language family (Python; JavaScript, TypeScript, and TSX; Go; Java), which maps each language onto the core language of Section 4.2.1. No rule names an application, a framework, a library, an ORM, or a permission API. A few vocabularies are applied to code text only: request accessors, calls that do not return, container mutators, and words that name an authorization concept (only as evidence for V6). Test files are not analyzed. Each verification rule is a switch with a pair of conformance tests; the 283 tests (Go 95, Python 56, JavaScript 54, TypeScript 53, Java 25) run in 11 s. FLINT uses DeepSeek-V4.1-Flash, a successor of DeepSeek-V3 [43], through its API [44] with thinking at the low effort setting and JSON output. Every model answer is cached under a hash of the prompt version, model, effort, and messages, so that every result in Section 6 can be reproduced from the cache without the model.

6. Evaluation We evaluate FLINT on five research questions (RQs). RQ1 [Zero-day]—How many zero-day BAC vulnerabilities does FLINT detect in popular applications? • RQ2 [Comparison]—How does FLINT compare with static, BOLA, and LLM-based detectors on known vulnerabilities and their fixes? • RQ3 [Ablation]—How much do authority analysis, claim verification, and the loop contribute? • RQ4 [Soundness of Clearance]—Can a wrong or an adversarial model make FLINT clear an unguarded access? • RQ5 [Practicality]—What does FLINT report on whole applications, and at what time and cost? •

6.1. Experimental Setup TABLE 5. O UR DATASETS AND THE RESEARCH QUESTIONS THAT USE THEM . Set Z ERO

Content; languages

57 popular open-source applications, the subjects of our search for zero-days; JS/TS 21, Py 14, Go 13, Java 9 PAIRS 69 pairs, each an endpoint before and after a public BAC fix, from 35 repositories; Go 26, Java 22, JS/TS 13, Py 8 H UNT 50 vulnerabilities that we found and reproduced (43 object-level, 41 with a function at the flaw); JS/TS 20, Py 11, Java 6, Go 4 N EIGH The 41 H UNT endpoints and their 227 siblings in the same files, in 26 applications R EPO 5 whole applications: 831 functions, 786 handlers; Go 3, JS/TS 2 N EAR 33 fixes of PAIRS, each mutated so that its attack works again; Java 20, Py 8, JS/TS 3, Go 2

RQ 1 2–4 2–4 2, 3, 5 5 2

Datasets. We built the six sets of Table 5 ourselves, from public fixes, from the vulnerabilities we found, and from the applications we audited. Recent BAC detectors were

each evaluated on PHP or Java alone [11, 13, 16]; ours span the five languages of the popular multi-user applications we target and pair known vulnerabilities with their fixes, to count false alarms on repaired code. Z ERO consists of popular open-source web applications with multi-user permission models (a median of 23.6K GitHub stars), at the commits that we audited in October and November 2026. PAIRS holds code that its developers deemed vulnerable and then repaired, and H UNT vulnerabilities that were unknown when we found them, each reproduced with two accounts; N EIGH, R EPO, and N EAR ask what a detector says next to a vulnerability, on whole applications, and on near misses. As is common in vulnerability discovery, we built FLINT while running it on these sets, turning each crash, parse error, or missed flow into a general rule. TABLE 6. BASELINES AND THE DATASET LANGUAGES THEY SUPPORT.

6.2. RQ1: Zero-Day Vulnerabilities TABLE 7. [RQ1] A SELECTIVE LIST OF ZERO - DAY VULNERABILITIES DETECTED BY FLINT, AND A BREAKDOWN OF ALL 112 BY THE CLAUSE OF D EFINITION 1 THAT THEY VIOLATE AND BY OPERATION (R/W/D/C: READ , WRITE , DELETE , CREATE ). Application Lang. Gitea Grafana Strapi Plane JumpServer Mattermost

Approach

CodeQL Static Semgrep Static BolaRay, BolaZ BOLA BACFuzz Dynamic Vulnhuntr LLM Claude Code Agent Codex CLI Agent Direct audit Same LLM Trusting judge Same LLM

Stars

# Op.

Status

1 R Reported 1 W Reported 12 R/W/D Reported 6 R/W/D Reported 10 R/W Reported 1 W Confirmed

By clause, wrong object 41; no check 40; client-chosen subject 12; not enforced 9; weak level 5; uncovered key 4; written reference 1 By operation, read 82; write 17; delete 9; create 4 Total

Detector

Kind

Go Code hosting 59K Go/TS Observability 78K JS/TS CMS 73K Python Issue tracker 62K Python Bastion host 32K Go Boards plugin 0.1K

112

Go Java JS/TS Py Targets ✓ ✓ – – – ✓ ✓ ✓ ✓

✓ ✓ – – – ✓ ✓ ✓ ✓

✓ ✓ – – – ✓ ✓ ✓ ✓

✓ ✓ – – ✓ ✓ ✓ ✓ ✓

CWE-tagged queries Route guards PHP only PHP only IDOR class BAC prompt BAC prompt BAC prompt Certificate

Baselines. Table 6 lists baselines from each family of Section 1. CodeQL [45] runs its queries tagged CWE-284, 285, 639, 862, or 863 on the JS/TS, Python, and Java versions; none concerns object-level authorization (its IDOR query [14] is for C#, and its one Go query models a PAM library that none of our Go trees imports). Semgrep [46] runs the OWASP A01 rules and route-detect [47]. BolaRay [11], BolaZ [12], and BACFuzz [16] analyze PHP. The LLMbased baselines use FLINT’s model. Vulnhuntr [19] analyzes the Python files at FLINT’s reasoning effort and output limit and flags an IDOR confidence of at least 7. Claude Code [48] and the Codex CLI [49], with read-only tools and default settings, are asked for the endpoint’s BAC vulnerabilities in the checked-out repository. Two baselines hold everything but the verdict fixed. The direct audit gives the same model the same slice and asks for the endpoint’s object-level authorization flaws, and the trusting judge reads FLINT’s certificate but believes it—its coverage list and every grounded claim whose subject does not look like request data. Metrics. A detector flags a version if it reports a finding inside the endpoint. On PAIRS, we count the vulnerable versions flagged, the fixed versions flagged, and the pairs separated (vulnerable flagged, fixed not), averaged per repository (macro), because one repository contributes 15 of the 69 pairs. On H UNT, a finding has the right reason when it is a definite finding at the access that the exploit abuses. Protocol. RQ2–RQ5 report the final FLINT, with one certificate per endpoint and one objection round, on two 2.1-GHz Xeon cores with 8 GB of memory.

We consider a finding a zero-day if no public report of it existed and we confirmed it with a working exploit on a local instance of the application, with two accounts of the lowest privilege that the endpoint admits. FLINT detects 112 such vulnerabilities in 44 of the 57 applications, 74 of them in 25 projects with over 20,000 GitHub stars. Table 7 shows a selective list. We have disclosed all of them to the developers; Mattermost, for example, has confirmed our report and is assigning a CVE identifier. The commonest flaws are a check on the wrong object (41) and no check (40); most are reads (82). FLINT reports 109 as definite findings and two as leads; Mattermost’s comes from the sibling norm, as undelete, unlike delete and patch, never asks whether the caller owns the comment. The vulnerabilities share one trait with Listing 1. In most of them, the endpoint does check something—a session, a role, a parent, a predicate—and the flaw lies in what the check is about, which is precisely what the conditions of Table 3 decide.

6.3. RQ2: Comparison with Existing Detectors Known Vulnerabilities and Their Fixes. Table 8 and Figure 6 show the results. The static analyzers report almost nothing at the flaw, and Semgrep’s route rules fire on vulnerable and fixed versions alike. The coding agents, driven by the same model over the whole repository, are the strongest baselines: they separate 79.6 and 74.3% of the pairs against FLINT’s 62.8%. The gap lies mostly on repaired code, where FLINT keeps an access whose new guard it cannot verify and an agent judges the guard sufficient. Claude Code takes 0.19 CNY and a median of 167 s per endpoint, four to five times FLINT’s cost and model time. On H UNT, the agents flag more endpoints but fewer for the right reason (21 and 23 against 28), and both find Listing 1. The direct audit flags fewer than half of the vulnerable versions; the trusting judge flags more, but fixed versions more than three times as often, so believing the certificate does not separate vulnerable from repaired code. Verification does: read from

TABLE 8. [RQ2] K NOWN VULNERABILITIES AND THEIR FIXES . PAIRS GIVES MACRO AVERAGES IN PERCENT OVER 35 REPOSITORIES , AND H UNT THE ENDPOINTS FLAGGED OF 41 AND , OF THESE , THOSE FLAGGED FOR THE RIGHT REASON ( FOR A BASELINE , A LOCATION WITHIN FIVE LINES OF THE ABUSED ACCESS ). V ULNHUNTR RUNS ON THE P YTHON VERSIONS (8 PAIRS , 11 H UNT CASES ), WHERE FLINT FLAGS 100 AND 46.7% AND 9 OF 11. PAIRS (macro %)

H UNT (41)

Detector

Vuln.↑ Fixed↓ Sep.↑ Flagged Right

CodeQL (no Go) Semgrep Vulnhuntr (Python) Claude Code (agent) Codex CLI (agent) Direct audit Trusting judge

0.0 17.1 60.0 91.9 97.1 46.7 71.0

0.0 16.2 60.0 12.3 22.9 11.1 36.9

0.0 1.0 20.0 79.6 74.3 36.7 38.8

0 3 7/11 34 40 26 28

0 0 – 21 23 – –

FLINT, tier A FLINT, tiers A–B FLINT, all definite FLINT, with leads

47.9 55.0 85.2 86.2

4.5 9.7 27.2 32.6

46.2 51.0 62.8 57.4

19 24 33 34

17 20 28 –

100

Codex CLI (same model, agent) vulnerable versions flagged (%, macro) Claude Code (same model, agent)

90

all definite

80

A–U

70

FLINT

60 50 40

+ leads trusting judge

tier A 0

believes the certificate its report, read from the top tier down tiers A–B better direct audit (same model, same slice) 10

20

30

40

fixed versions flagged (%, macro) — false alarms on repaired code

Figure 6. [RQ2] Vulnerable versions flagged (higher is better) against fixed versions flagged, i.e., false alarms on repaired code (lower is better), macro over PAIRS. Each point of FLINT’s curve reads its report down to one more tier; at every depth, it lies above and left of (better than) the same model given the same slice, auditing it directly or believing FLINT’s certificate.

original attack works again: a weaker permission (20 fixes), a subject that is not the caller (4), or a failure that is logged and ignored (9); two fixes admit no such one-line mutation. Of the 31 near misses with every detector’s answer, the direct audit flags 14, FLINT 24 (26 with leads), Claude Code 27, and the Codex CLI 30 (McNemar against FLINT, p = 0.45 and 0.07); FLINT clears the real fix and flags its near miss in 18 pairs, the agents in 24 and 23. FLINT misses three near misses whose certificate lists no access, two that remain leads, and two cleared by a permission whose name does not say read, which the challenge does not question. On the 53 confirmed vulnerabilities whose report names a check that leaves the access open (H UNT and RQ1), FLINT finds the abused access in 18 of the 32 with a known access, Claude Code in 12, and the Codex CLI in 15 (Table 12). Next to a Vulnerability. On N EIGH, FLINT reports 33 of the 41 vulnerable endpoints (80%) and 118 of the 227 siblings (52%) in a definite tier; the direct audit flags 26 (63%) and 59 (26%). Of the 37 siblings in FLINT’s top tier, all of which we read, 24 repeat the known flaw of their file, 8 are real but minor, and 5 are not findings. Of the 9 siblings that the direct audit flags and FLINT clears, 6 are false alarms of the direct audit, which missed a guard on the declaration or in a service, 2 are misses of FLINT, and 1 record is unusable. Case Study. One vulnerability that FLINT reports and the direct audit misses lets a staff member who may manage customers take over administrator accounts of a commerce platform: the customer-update mutation checks the customer-management permission but resolves its target among all users, so the caller can rewrite an administrator’s e-mail address and reset the password. The model waived the finding as NOT_NEEDED, but the permission is a role gate that concerns no object (V4), so the finding stayed in the report, in tier C.

6.4. RQ3: Ablation Study the top tier down, FLINT’s report dominates the direct audit at every depth. Tier A alone matches its recall (47.9 against 46.7%) with less than half of its false alarms, and tiers A– B improve all three measures. The gain is largest on Java, where the direct audit flags 4 of 22 vulnerable versions and FLINT 18 (15 pairs separated against 4), and smallest on JS/TS, where both separate 5 of 13. On H UNT, every endpoint that the direct audit flags, FLINT flags too, and seven only FLINT flags, among them Listing 1 and the case study below. Counting every handler that reaches a flaw located in a service, FLINT reports 38 of the 43 object-level vulnerabilities, 31 for the right reason. Of the five it misses, two are accesses that the certificate does not list (a reference written by mass assignment, an ordercode lookup), two lie outside every analyzed function, and one record is unusable. Near Misses. A check that looks like the fix but does not restrict the access tests whether a detector verifies a guard or trusts it. N EAR mutates each expressible fix of PAIRS with one operator that violates a clause of Definition 1, so that the

TABLE 9. [RQ3] A BLATION STUDY, REMOVING ONE COMPONENT AT A TIME . S IBLINGS CLEARED ON N EIGH MEASURE HOW MANY GUARDS THE VERIFIER ACCEPTS ( STAGE ONE ). A DASH MARKS A MEASURE THAT DOES NOT APPLY OR THAT WE DID NOT RUN . PAIRS (macro %) H UNT

N EIGH

Configuration

Vuln./Fixed Sep. flagged sib. cleared

FLINT − authority analysis − verification (trusting judge) − certificate (direct audit) − objection round − need challenge − attestation (V7) − completeness rules (each) − verifier-driven demand Other model (V4-Pro)

85.2 / 27.2 72.5 / 17.1 71.0 / 36.9 46.7 / 11.1 85.2 / 30.8 85.2 / 27.2 85.2 / 27.2 – 84.5 / 27.9 62.0 / 40.7

62.8 61.1 38.8 36.7 59.2 62.8 62.8 – 62.1 29.6

33 26 28 26 34 32 32 33–35 33 32

94 95 – – – 95 – 81–94 91 –

Authority Analysis. Table 9 removes one component at a time. Without the dataflow analysis, a VALID check counts

wherever it stands. FLINT then flags 49 instead of 61 vulnerable versions of PAIRS and 26 instead of 33 on H UNT. Twelve vulnerable versions and seven known vulnerabilities are thus definite findings only because an existing check does not stand on the path of the access—after it, on another branch, or behind a client-selected alternative. On N EIGH, seven vulnerable endpoints lose their definite finding. Stage Two and Another Model. The sibling norm, which has no row in Table 9, adds one of the 41 N EIGH vulnerabilities and lifts three more and one sibling into tier A*, but none of the 20 new vulnerabilities of RQ1 that stage one misses. With DeepSeek-V4-Pro for every neural step, FLINT separates 29.6% of the PAIRS; the larger model lists no access in 22 of 141 certificates (V4.1-Flash in 6) and claims fewer checks (2.7 against 3.1), and our prompts were written with V4.1-Flash. The Loop. The objection round cleared three fixed versions with claims that verified (a scope by workspace and the owner comparison that a fix added) and no vulnerable version. The verifier demanded code for 63% of the PAIRS endpoints with an objection (538 function bodies) and 75% of the H UNT ones; without it, 91 instead of 94 siblings are cleared, and tier A holds 25 instead of 29 vulnerable versions of PAIRS. The need challenge questioned 4, 2, and 7 accesses of PAIRS, H UNT, and N EIGH, and the majority named a finer required permission for none, 2, and 3, which adds one H UNT endpoint, one sibling, and five near misses. Thirteen rules (Table 13) make verification complete enough to accept real guards: switched off one at a time, ten of them each leave two to thirteen more siblings uncleared, and the vulnerable endpoints that come back are flagged for a wrong reason. One rule, V7, adds a detection: without it, Listing 1 is cleared on the model’s defense.

6.5. RQ4: Soundness of Clearance TABLE 10. [RQ4] FABRICATED (FABR .) CLAIMS , IN THE CERTIFICATE ( CERT.) OR AS A DEFENSE , AND ADVERSARIAL SAMPLES (34 SAMPLES , 50,903 CLAIMS ). A CLAIM IS ACCEPTED IF IT VERIFIES AS AN OBJECT CHECK , NOT MERELY AS A GATE ; AN ENDPOINT IS CLEARED IF ITS FINDING IS GONE . Attack

Set (flagged)

Fabr. cert.

PAIRS (63) H UNT (33)

946 517

92 71

1† 0

32 20

Fabr. defense PAIRS (63) H UNT (33)

946 517

92 71

1† 0

0 0

H UNT (33) 443–547 PAIRS vuln. (63) 558–905 PAIRS fixed (23) 189–234

145–216 171–279 68–101

1‡ 0–1‡ 1–3

0 0 0–1

Adversarial

Claims Accepted Cleared To lead

†

One endpoint, flagged for a wrong reason; the claims are true. ‡ The same endpoint in every sample; its flagged access is guarded, and the flaw lies elsewhere.

Lemma 1 says that claims that do not verify cannot clear; a claim that does verify is the residual risk, which we measure with claims that are false by construction and with a model that tries.

claims written

claims verified as checks

1,500 1,000 500 0 8

known vulnerabilities cleared per sample

final verifier

rules off

4 0 1

5

10

15

20

25

30

34

adversarial sample

Figure 7. [RQ4] Adversarial samples. Top, the claims written by a model told to have every objected access accepted and those that verified as checks; bottom, the known vulnerabilities cleared per sample with the final verifier and with the 34 hardening rules off (nine stored samples).

Fabricated Claims. We give every uncleared access of a flagged endpoint claims that cite real code but are false. Ten fault models present a call, a branch, the fetch, a role gate, or the access itself as a check on the flagged object, or re-claim an existing check for it. Each claim asks for the highest level, once in the certificate and once in defense of an objection. Of 2,926 claims (Table 10), 558 relabel a role gate and verify as a gate, which covers no object; 326 more verify, almost all of them true statements about code that does not stand on the access. Four claims cleared an access, all on one endpoint flagged for a wrong reason, where they happen to be true. No fabricated claim cleared an access known to be unguarded; in defense, unverifiable claims changed nothing. Adversarial Samples. A fabricated claim is random; a model that tries is not. We showed the model the verifier’s objections and told it to make the verifier accept every objected access, with whatever real code could pass for a restriction. In 34 samples over PAIRS and H UNT, up to 279 claims per sample verify, yet none clears or demotes an access known to be unguarded; the vulnerable endpoints that do clear are guarded where stage one flags them, and their flaw lies elsewhere. Only the need challenge rests on the model’s word; a model that tries would withhold the one H UNT endpoint that it adds. The first sample, drawn before any hardening, cleared three of the 34 known vulnerabilities that it attacked, and without the 34 hardening rules, nine stored samples clear three to seven each (Figure 7). Each hole that a sample found became a rule; of the 27 samples drawn after the rules from probing, three found one, the last against the verifier that we had declared final. Further samples can find further holes, in a claim field or an assumption (A1–A5) that verification takes on trust.

6.6. RQ5: Practicality The Report. On the five applications of R EPO, FLINT clears 335 of the 786 handlers (42.6%) and puts 42 (5.3%) in the top tier (Figure 8); 385 (49.0%) carry a definite finding in some tier, so the order is what makes the report usable. All five known vulnerabilities of these applications are reported,

A

A*

NEIGH (stage two included) vulnerable endpoints (41) their siblings (227)

U

C

20 36

REPO (handlers) donetick (160)

3

66

6

21

9

cleared

4

7

3

111

28

150

54 6

156

25%

18

109 7

24

66

335

50%

75%

100%

Figure 8. [RQ5] The report by tier on N EIGH and on five whole applications (786 handlers): A, conceded with an attack; A*, below the siblings’ verified norm; B, refuted defense; U, undecided; C, waived; L, lead. 100%

100

verifier

verification

10 50%

1 model

0% 0.01

0.1

1

10

100

(a) seconds per endpoint (CDF)

1000

0.1 0.01

bounded mode 0

400

800

reported run, so Figure 8 counts them as cleared.

7. Discussion

94

58

30

0%

2

15 15

6

11

L

116

19 13

all five (786)

21

12

linkwarden (72) 4 3 wiki (371)

4

45

22

mattermost boards (86) 4 writefreely (97)

B

1200

Limitations. Theorem 1 speaks about the accesses that the certificate lists. An access that the model omits is never judged, e.g., references written by mass assignment [50] (Section 6.3), and 3% of the cleared handlers of whole applications call code outside the slice that may access data (Section 6.6). FLINT does not verify recall; it ensures that an omission never comes with a clearance that reads as a proof. The guarantee also takes A3 and A4 on trust, as both need the application’s policy (Section 4.3). Non-Determinism and Untrusted Code. Verification is deterministic given a certificate; certificates are not. A second certificate for every PAIRS version flags 61 vulnerable and 34 fixed versions, against 61 and 21 for the first; requiring both to agree gives 81.0/23.0/63.2% (macro) instead of 85.2/27.2/62.8%. Attacker-written text that steers the model [51] can make it omit an access, which lowers recall, or invent a check, which cannot clear anything (Lemma 1).

8. Related Work

(b) seconds vs. slice lines

Figure 9. [RQ5] Time per endpoint on R EPO (831 functions): (a) model time (certificate and need round) and verification time; (b) verification time against slice size, with the three bounded endpoints at the time limit.

three in the top tier and two in tier B. We read all 24 tier-A entries. Of these, 8 are real or plausible (2 of them known), 7 have low impact (existence oracles, a cache overwrite, a forced side effect), and 9 are not findings (5 by design, 2 where the need challenge named a permission that the application does not require, one websocket callback, one documented public endpoint). Tier C is dominated by one application whose public read endpoints the model declares unrestricted by design (111 of its 156 entries). Time and Cost. Figure 9 shows where the time goes. The certificate of an endpoint, need round included, takes a median of 36 s of model time (90th percentile 100 s), and calls run concurrently. Verification needs no model. The 831 functions of R EPO take 6.0 minutes on one core, with a median of 0.09 s and a 99th percentile of 1.9 s per endpoint; verification time grows with the slice but is dominated by origin tracing on a few endpoints, three of which exceed the time limit and run in the bounded mode. A certificate takes 9.3 K prompt and 8.2 K completion tokens on average, US$0.006 per endpoint at off-peak prices. Completeness of a Clearance. A cleared endpoint is cleared on the accesses that its certificate lists. A modelfree check finds that 108 of the 335 cleared handlers of R EPO call repository code outside their slice; in 70 the call is itself a listed access, and in 28 the callee touches none of the data-access objects that the application’s certificates use. The remaining 10 (3%) may hide an access that no certificate lists. The check marks them as leads; it was added after the

Access-Control Flaws in Web Applications. Static detectors infer what a check should be from the code. RoleCast [8] and Sun et al. [52] compare roles, MACE [9] checks a query’s authorization context across paths, SPACE [10] matches Rails patterns, and FixMeUp [53] repairs missing checks. BolaRay [11] and BolaZ [12] derive object-level authorization models from the SQL of PHP applications, and MOCGuard [13] finds missing owner checks across Java and SQL; on mobile back ends, multi-step authorization flaws are exploited by chaining requests [54]. These detectors are precise where their model of the data layer holds; FLINT needs no such model, so one implementation covers five languages, and in exchange it inherits the LLM’s recall. Runtime and black-box approaches [16–18, 55–60] cover only what a running deployment lets them reach [61–64], and language-based approaches [65–67] need applications written for them. Missing Checks and Static Analysis. Missing-check detectors for systems code infer the norm from the code [68– 76]; FLINT’s sibling norm applies this idea, but a norm counts only where verification confirmed it. Taint and dataflow analyses find injection and pollution flaws in web code [35, 77–84], also as queries [45, 46, 85–87]; for authorization, origin tracing must tell whose value an operand is, not only whether it is tainted. LLMs and Program Analysis. LLMs propose what classical analyses need, e.g., taint specifications [27], dataflow facts [88, 89], bug-specific checks and queries [28, 29, 90], and slices to classify [91]; auditors and agents read whole repositories [19–22, 92–94]. Most let the model end the analysis, which studies find fragile [23–25]. In verification, LLMs propose invariants, proofs, and properties for a prover [95–98]; FLINT’s prover checks only the model’s

defenses, in the spirit of proof-carrying code [99], certifying algorithms [100], and translation validation [101].

[14]

GitHub, “CodeQL query help: Insecure direct object reference (cs/web/insecure-direct-object-reference),” https://codeql.github.com/codeql-query-help/csharp/cs-webinsecure-direct-object-reference/, 2025.

[15]

Semgrep, “Insecure direct object reference (IDOR),” https://docs. semgrep.dev/learn/vulnerabilities/idor, 2025.

[16]

I. P. A. Dharmaadi, M. Alhanahnah, V.-T. Pham, F. Mohsen, and F. Turkmen, “BACFuzz: Exposing the silence on broken access control vulnerabilities in web applications,” arXiv:2507.15984, 2025.

[17]

M. Rennhard, M. Kushnir, O. Favre, D. Esposito, and V. Zahnd, “Automating the detection of access control vulnerabilities in web applications,” SN Computer Science, vol. 3, no. 5, p. 376, 2022.

[18]

B. Tawily, “Autorize: Automatic authorization enforcement detection extension for Burp Suite,” https://github.com/Quitten/Autorize, 2025.

[19]

Protect AI, “Vulnhuntr: Zero-shot vulnerability discovery using LLMs,” https://github.com/protectai/vulnhuntr, 2024.

References

[20]

Semgrep, “Catching IDORs, broken authorization, and other logic issues with Semgrep AI-powered detection,” https://semgrep.dev/ blog/2025/ai-powered-detection-with-semgrep, 2025.

[1]

OWASP Foundation, “OWASP Top 10:2021 – A01 Broken Access Control,” https://owasp.org/Top10/A01_2021-Broken_Access_ Control/, 2021.

[21]

Anthropic, “Making frontier cybersecurity capabilities available to defenders (Claude Code Security),” https://www.anthropic.com/ news/claude-code-security, 2026.

[2]

——, “OWASP Top 10:2025,” https://owasp.org/Top10/2025/, 2025.

[22]

[3]

——, “OWASP API Security Top 10 2023 – API1:2023 Broken Object Level Authorization,” https://owasp.org/API-Security/editions/ 2023/en/0xa1-broken-object-level-authorization/, 2023.

OpenAI, “Codex Security: Now in research preview,” https://openai. com/index/codex-security-now-in-research-preview/, 2026.

[23]

S. Ullah, M. Han, S. Pujar, H. Pearce, A. Coskun, and G. Stringhini, “LLMs cannot reliably identify and reason about security vulnerabilities (yet?): A comprehensive evaluation, framework, and benchmarks,” in Proceedings of the IEEE Symposium on Security and Privacy (S&P), 2024, pp. 862–880.

[24]

Y. Ding, Y. Fu, O. Ibrahim, C. Sitawarin, X. Chen, B. Alomair, D. Wagner, B. Ray, and Y. Chen, “Vulnerability detection with code language models: How far are we?” in Proceedings of the 47th International Conference on Software Engineering (ICSE), 2025, pp. 1729–1741.

[25]

B. Steenhoek, M. M. Rahman, M. K. Roy, M. S. Alam, H. Tong, S. Das, E. T. Barr, and W. Le, “To err is machine: Vulnerability detection challenges LLM reasoning,” arXiv:2403.17218, 2024.

[26]

Semgrep, “Can LLMs Detect IDORs? Understanding the Boundaries of AI Reasoning,” https://semgrep.dev/blog/2025/can-llms-detectidors-understanding-the-boundaries-of-ai-reasoning, 2025.

[27]

Z. Li, S. Dutta, and M. Naik, “IRIS: LLM-assisted static analysis for detecting security vulnerabilities,” in Proceedings of the International Conference on Learning Representations (ICLR), 2025.

[28]

H. Li, Y. Hao, Y. Zhai, and Z. Qian, “Enhancing static analysis for practical bug detection: An LLM-integrated approach,” Proceedings of the ACM on Programming Languages (OOPSLA), vol. 8, no. OOPSLA1, pp. 474–499, 2024.

[29]

C. Yang, Z. Zhao, Z. Xie, H. Li, and L. Zhang, “KNighter: Transforming static analysis with LLM-synthesized checkers,” in Proceedings of the 31st ACM Symposium on Operating Systems Principles (SOSP), 2025.

[30]

J. H. Saltzer and M. D. Schroeder, “The protection of information in computer systems,” Proceedings of the IEEE, vol. 63, no. 9, pp. 1278–1308, 1975.

[31]

MITRE, “CWE-639: Authorization Bypass Through UserControlled Key,” https://cwe.mitre.org/data/definitions/639.html, 2026.

[32]

M. Brunsfeld et al., “Tree-sitter: An incremental parsing system for programming tools,” https://tree-sitter.github.io, 2026.

[33]

M. Weiser, “Program slicing,” IEEE Transactions on Software Engineering, vol. SE-10, no. 4, pp. 352–357, 1984.

9. Conclusion We presented FLINT, which detects broken access control by separating the proposal from the verdict. An LLM proposes, per endpoint, a certificate of the data accesses and the checks that guard them, and a symbolic verifier decides every access; a check clears an access only if the code shows that it binds the caller to the selected object on every path. On known vulnerabilities and their fixes, FLINT’s report dominates the same model auditing the code directly, and on popular applications, FLINT found 112 zero-day vulnerabilities.

[4]

MITRE and CISA, “2025 CWE Top 25 Most Dangerous Software Weaknesses,” https://cwe.mitre.org/top25/archive/2025/2025_ cwe_top25.html, 2025.

[5]

MITRE, “CWE-862: Missing Authorization,” https://cwe.mitre.org/ data/definitions/862.html, 2026.

[6]

——, “CWE-863: Incorrect Authorization,” https://cwe.mitre.org/ data/definitions/863.html, 2026.

[7]

HackerOne, “9th Hacker-Powered Security Report 2025/2026,” https://www.hackerone.com/report/hacker-powered-security, 2025.

[8]

S. Son, K. S. McKinley, and V. Shmatikov, “RoleCast: Finding missing security checks when you do not know what checks are,” in Proceedings of the ACM International Conference on Object Oriented Programming Systems Languages and Applications (OOPSLA), 2011, pp. 1069–1084.

[9]

[10]

[11]

[12]

[13]

M. Monshizadeh, P. Naldurg, and V. N. Venkatakrishnan, “MACE: Detecting privilege escalation vulnerabilities in web applications,” in Proceedings of the ACM SIGSAC Conference on Computer and Communications Security (CCS), 2014, pp. 690–701. J. P. Near and D. Jackson, “Finding security bugs in web applications using a catalog of access control patterns,” in Proceedings of the 38th International Conference on Software Engineering (ICSE), 2016, pp. 947–958. Y. Huang, C. Shi, J. Lu, H. Li, H. Meng, and L. Li, “Detecting broken object-level authorization vulnerabilities in database-backed applications,” in Proceedings of the ACM SIGSAC Conference on Computer and Communications Security (CCS), 2024, pp. 2934– 2948. A. Wu, Z. Feng, R. Feng, Z. Xing, and Y. Liu, “Rethinking broken object level authorization attacks under zero trust principle,” arXiv preprint arXiv:2507.02309, 2025. F. Liu, Y. Shi, Y. Zhang, G. Yang, E. Li, and M. Yang, “MOCGuard: Automatically detecting missing-owner-check vulnerabilities in Java web applications,” in Proceedings of the IEEE Symposium on Security and Privacy (S&P), 2025, pp. 903–919.

[34]

N. F. Liu, K. Lin, J. Hewitt, A. Paranjape, M. Bevilacqua, F. Petroni, and P. Liang, “Lost in the middle: How language models use long contexts,” Transactions of the Association for Computational Linguistics, vol. 12, pp. 157–173, 2024.

[35]

[36]

[37]

[54]

V. B. Livshits and M. S. Lam, “Finding security vulnerabilities in Java applications with static analysis,” in Proceedings of the 14th USENIX Security Symposium, 2005, pp. 271–286.

Y. Shi, Z. Yang, Q. Hou, L. Cui, C. Sheng, X. Zhang, and M. Yang, “Foot in the door: Uncovering the multi-step authorization exploitation in mobile applications,” in Proceedings of the ACM SIGSAC Conference on Computer and Communications Security (CCS), 2026.

[55]

O. Tripp, M. Pistoia, S. J. Fink, M. Sridharan, and O. Weisman, “TAJ: Effective taint analysis of web applications,” in Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI), 2009, pp. 87–97.

M. Dalton, C. Kozyrakis, and N. Zeldovich, “Nemesis: Preventing authentication & access control vulnerabilities in web applications,” in Proceedings of the 18th USENIX Security Symposium, 2009, pp. 267–282.

[56]

V. Felmetsger, L. Cavedon, C. Kruegel, and G. Vigna, “Toward automated detection of logic vulnerabilities in web applications,” in Proceedings of the 19th USENIX Security Symposium, 2010, pp. 143–160.

[57]

G. Pellegrino and D. Balzarotti, “Toward black-box detection of logic flaws in web applications,” in Proceedings of the Network and Distributed System Security Symposium (NDSS), 2014.

[58]

A. Doupé, L. Cavedon, C. Kruegel, and G. Vigna, “Enemy of the state: A state-aware black-box web vulnerability scanner,” in Proceedings of the 21st USENIX Security Symposium, 2012, pp. 523–538.

[59]

Security Innovation, “AuthMatrix: A Burp Suite extension for testing authorization,” https://github.com/SecurityInnovation/ AuthMatrix, 2024.

[60]

V. Atlidakis, P. Godefroid, and M. Polishchuk, “Checking security properties of cloud service REST APIs,” in Proceedings of the IEEE International Conference on Software Testing, Verification and Validation (ICST), 2020, pp. 387–397.

[61]

A. Doupé, M. Cova, and G. Vigna, “Why Johnny can’t pentest: An analysis of black-box web vulnerability scanners,” in Proceedings of the Conference on Detection of Intrusions and Malware & Vulnerability Assessment (DIMVA), ser. LNCS, vol. 6201, 2010, pp. 111–131.

[62]

J. Bau, E. Bursztein, D. Gupta, and J. C. Mitchell, “State of the art: Automated black-box web application vulnerability testing,” in Proceedings of the IEEE Symposium on Security and Privacy (S&P), 2010, pp. 332–345.

S. Arzt, S. Rasthofer, C. Fritz, E. Bodden, A. Bartel, J. Klein, Y. Le Traon, D. Octeau, and P. McDaniel, “FlowDroid: Precise context, flow, field, object-sensitive and lifecycle-aware taint analysis for Android apps,” in Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI), 2014, pp. 259–269.

[38]

G. A. Kildall, “A unified approach to global program optimization,” in Proceedings of the ACM Symposium on Principles of Programming Languages (POPL), 1973, pp. 194–206.

[39]

J. B. Kam and J. D. Ullman, “Monotone data flow analysis frameworks,” Acta Informatica, vol. 7, no. 3, pp. 305–317, 1977.

[40]

D. E. Denning, “A lattice model of secure information flow,” Communications of the ACM, vol. 19, no. 5, pp. 236–243, 1976.

[41]

M. Sharir and A. Pnueli, “Two approaches to interprocedural data flow analysis,” in Program Flow Analysis: Theory and Applications, S. S. Muchnick and N. D. Jones, Eds. Prentice-Hall, 1981, pp. 189–234.

[42]

T. Reps, S. Horwitz, and M. Sagiv, “Precise interprocedural dataflow analysis via graph reachability,” in Proceedings of the ACM Symposium on Principles of Programming Languages (POPL), 1995, pp. 49–61.

[43]

DeepSeek-AI, “DeepSeek-V3 technical report,” arXiv:2412.19437, 2024.

[44]

DeepSeek, “DeepSeek API Docs: Models & pricing and thinking mode,” https://api-docs.deepseek.com/, 2026, accessed November 2026.

[63]

B. Eriksson, G. Pellegrino, and A. Sabelfeld, “Black Widow: Blackbox data-driven web scanning,” in Proceedings of the IEEE Symposium on Security and Privacy (S&P), 2021.

[45]

GitHub, “CodeQL,” https://codeql.github.com, 2026.

[64]

[46]

Semgrep, “Semgrep: Lightweight static analysis for many languages,” https://semgrep.dev, 2026.

V. Atlidakis, P. Godefroid, and M. Polishchuk, “RESTler: Stateful REST API fuzzing,” in Proceedings of the 41st International Conference on Software Engineering (ICSE), 2019, pp. 748–758.

[47]

M. Schwager, “route-detect: Find authentication and authorization security bugs in web application routes,” https://github.com/ mschwager/route-detect, 2023.

[65]

A. Chlipala, “Static checking of dynamically-varying security policies in database-backed applications,” in Proceedings of the 9th USENIX Symposium on Operating Systems Design and Implementation (OSDI), 2010.

[48]

Anthropic, “Claude Code,” https://github.com/anthropics/claudecode, 2025.

[66]

[49]

OpenAI, “Codex CLI,” https://github.com/openai/codex, 2025.

[50]

D. Corradini, M. Pasqua, and M. Ceccato, “Automated black-box testing of mass assignment vulnerabilities in RESTful APIs,” in Proceedings of the 45th International Conference on Software Engineering (ICSE), 2023, pp. 2553–2564.

J. P. Near and D. Jackson, “Rubicon: Bounded verification of web applications,” in Proceedings of the ACM SIGSOFT International Symposium on the Foundations of Software Engineering (FSE), 2012.

[67]

X. Zhang, A. Edwards, and T. Jaeger, “Using CQUAL for static analysis of authorization hook placement,” in Proceedings of the 11th USENIX Security Symposium, 2002, pp. 33–48.

[68]

D. Engler, D. Y. Chen, S. Hallem, A. Chou, and B. Chelf, “Bugs as deviant behavior: A general approach to inferring errors in systems code,” in Proceedings of the 18th ACM Symposium on Operating Systems Principles (SOSP), 2001, pp. 57–72.

[69]

L. Tan, X. Zhang, X. Ma, W. Xiong, and Y. Zhou, “AutoISES: Automatically inferring security specifications and detecting violations,” in Proceedings of the 17th USENIX Security Symposium, 2008, pp. 379–394.

[70]

Z. Li and Y. Zhou, “PR-Miner: Automatically extracting implicit programming rules and detecting violations in large software code,” in Proceedings of the European Software Engineering Conference and ACM SIGSOFT Symposium on the Foundations of Software Engineering (ESEC/FSE), 2005, pp. 306–315.

[51]

S. Abdelnabi, K. Greshake, S. Mishra, C. Endres, T. Holz, and M. Fritz, “Not what you’ve signed up for: Compromising realworld LLM-integrated applications with indirect prompt injection,” in Proceedings of the ACM Workshop on Artificial Intelligence and Security (AISec), 2023, pp. 79–90.

[52]

F. Sun, L. Xu, and Z. Su, “Static detection of access control vulnerabilities in web applications,” in Proceedings of the 20th USENIX Security Symposium, 2011.

[53]

S. Son, K. S. McKinley, and V. Shmatikov, “Fix Me Up: Repairing access-control bugs in web applications,” in Proceedings of the Network and Distributed System Security Symposium (NDSS), 2013.

[71]

F. Yamaguchi, C. Wressnegger, H. Gascon, and K. Rieck, “Chucky: Exposing missing checks in source code for vulnerability discovery,” in Proceedings of the ACM SIGSAC Conference on Computer and Communications Security (CCS), 2013, pp. 499–510.

[88]

C. Wang, W. Zhang, Z. Su, X. Xu, X. Xie, and X. Zhang, “LLMDFA: Analyzing dataflow in code with large language models,” in Advances in Neural Information Processing Systems (NeurIPS), 2024.

[72]

Y. Shao, J. Ott, Q. A. Chen, Z. Qian, and Z. M. Mao, “Kratos: Discovering inconsistent security policy enforcement in the Android framework,” in Proceedings of the Network and Distributed System Security Symposium (NDSS), 2016.

[89]

C. Wang, Y. Gao, W. Zhang, X. Liu, Q. Shi, and X. Zhang, “LLMSA: A compositional neuro-symbolic approach to compilation-free and customizable static analysis,” arXiv:2412.14399, 2024.

[73]

T. Zhang, W. Shen, D. Lee, C. Jung, A. M. Azab, and R. Wang, “PeX: A permission check analysis framework for Linux kernel,” in Proceedings of the 28th USENIX Security Symposium, 2019.

[90]

[74]

K. Lu, A. Pakki, and Q. Wu, “Detecting missing-check bugs via semantic- and context-aware criticalness and constraints inferences,” in Proceedings of the 28th USENIX Security Symposium, 2019, pp. 1769–1786.

P. Li, J. S. Korich, S. Yao, C. Luo, J. Yu, Y. Cao, and J. Yang, “Automatically learning vulnerability patterns for scalable static analysis of web applications,” in Proceedings of the ACM SIGSAC Conference on Computer and Communications Security (CCS), 2026.

[91]

J. Lu, H. Li, C. Liu, L. Li, and K. Cheng, “Detecting missingpermission-check vulnerabilities in distributed cloud systems,” in Proceedings of the ACM SIGSAC Conference on Computer and Communications Security (CCS), 2022, pp. 2145–2158.

A. Lekssays, H. Mouhcine, K. Tran, T. Yu, and I. Khalil, “LLMxCPG: Context-aware vulnerability detection through code property graph-guided large language models,” in Proceedings of the 34th USENIX Security Symposium, 2025.

[92]

J. Guo, C. Wang, X. Xu, Z. Su, and X. Zhang, “RepoAudit: An autonomous LLM-agent for repository-level code auditing,” in Proceedings of the 42nd International Conference on Machine Learning (ICML), 2025, pp. 21 083–21 100.

[75]

[76]

I. Yun, C. Min, X. Si, Y. Jang, T. Kim, and M. Naik, “APISan: Sanitizing API usages through semantic cross-checking,” in Proceedings of the 25th USENIX Security Symposium, 2016, pp. 363–378.

[93]

[77]

N. Jovanovic, C. Kruegel, and E. Kirda, “Pixy: A static analysis tool for detecting web application vulnerabilities,” in Proceedings of the IEEE Symposium on Security and Privacy (S&P), 2006, pp. 258–263.

Y. Sun, D. Wu, Y. Xue, H. Liu, H. Wang, Z. Xu, X. Xie, and Y. Liu, “GPTScan: Detecting logic vulnerabilities in smart contracts by combining GPT with program analysis,” in Proceedings of the 46th International Conference on Software Engineering (ICSE), 2024.

[94]

D. Balzarotti, M. Cova, V. Felmetsger, and G. Vigna, “Multi-module vulnerability analysis of web-based applications,” in Proceedings of the ACM Conference on Computer and Communications Security (CCS), 2007, pp. 25–35.

Google Project Zero and Google DeepMind, “From Naptime to Big Sleep: Using large language models to catch vulnerabilities in realworld code,” https://googleprojectzero.blogspot.com/2024/10/fromnaptime-to-big-sleep.html, 2024.

[95]

S. Son and V. Shmatikov, “SAFERPHP: Finding semantic vulnerabilities in PHP applications,” in Proceedings of the ACM SIGPLAN Workshop on Programming Languages and Analysis for Security (PLAS), 2011.

H. Wu, C. Barrett, and N. Narodytska, “Lemur: Integrating large language models in automated program verification,” in Proceedings of the International Conference on Learning Representations (ICLR), 2024.

[96]

S. Chakraborty, S. K. Lahiri, S. Fakhoury, A. Lal, M. Musuvathi, A. Rastogi, A. Senthilnathan, R. Sharma, and N. Swamy, “Ranking LLM-generated loop invariants for program verification,” in Findings of the Association for Computational Linguistics: EMNLP, 2023, pp. 9164–9175.

[97]

E. First, M. N. Rabe, T. Ringer, and Y. Brun, “Baldur: Whole-proof generation and repair with large language models,” in Proceedings of the ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE), 2023.

[98]

Y. Liu, Y. Xue, D. Wu, Y. Sun, Y. Li, M. Shi, and Y. Liu, “PropertyGPT: LLM-driven formal verification of smart contracts through retrieval-augmented property generation,” in Proceedings of the Network and Distributed System Security Symposium (NDSS), 2025.

[99]

G. C. Necula, “Proof-carrying code,” in Proceedings of the 24th ACM Symposium on Principles of Programming Languages (POPL), 1997, pp. 106–119.

[78]

[79]

[80]

S. Li, M. Kang, J. Hou, and Y. Cao, “Mining Node.js vulnerabilities via object dependence graph and query,” in Proceedings of the 31st USENIX Security Symposium, 2022.

[81]

Z. Kang, S. Li, and Y. Cao, “Probe the proto: Measuring clientside prototype pollution vulnerabilities of one million real-world websites,” in Proceedings of the Network and Distributed System Security Symposium (NDSS), 2022.

[82]

Z. Kang, M. Lyu, Z. Liu, J. Yu, R. Fan, S. Li, and Y. Cao, “Follow my flow: Unveiling client-side prototype pollution gadgets from one million real-world websites,” in Proceedings of the IEEE Symposium on Security and Privacy (S&P), 2025.

[83]

[84]

Z. Liu, T. Lee, J. Yu, Z. Kang, and Y. Cao, “The DOMino effect: Detecting and exploiting DOM clobbering gadgets via concolic execution with symbolic DOM,” in Proceedings of the 34th USENIX Security Symposium, 2025. Z. Liu, J. Zhong, J. Yu, M. Lyu, Z. Kang, and Y. Cao, “The first large-scale systematic study of Python class pollution vulnerability,” in Proceedings of the IEEE Symposium on Security and Privacy (S&P), 2026.

[100] R. M. McConnell, K. Mehlhorn, S. Näher, and P. Schweitzer, “Certifying algorithms,” Computer Science Review, vol. 5, no. 2, pp. 119–161, 2011.

[85]

F. Yamaguchi, N. Golde, D. Arp, and K. Rieck, “Modeling and discovering vulnerabilities with code property graphs,” in Proceedings of the IEEE Symposium on Security and Privacy (S&P), 2014, pp. 590–604.

[101] A. Pnueli, M. Siegel, and E. Singerman, “Translation validation,” in Proceedings of the International Conference on Tools and Algorithms for the Construction and Analysis of Systems (TACAS), ser. LNCS, vol. 1384, 1998, pp. 151–166.

[86]

P. Avgustinov, O. de Moor, M. Peyton Jones, and M. Schäfer, “QL: Object-oriented queries on relational data,” in Proceedings of the 30th European Conference on Object-Oriented Programming (ECOOP), 2016, pp. 2:1–2:25.

Appendix A. Exploits for the Motivating Example

X. Li and Y. Xue, “A survey on server-side approaches to securing web applications,” ACM Computing Surveys, vol. 46, no. 4, pp. 54:1– 54:29, 2014.

Table 11 shows the requests of the exploit against Listing 1, sent to a local instance of the application.

[87]

Users A and B are members of the same organization with the lowest default role; A is the attacker. B first creates a personal access token, whose identifier is <B-token>. In the table, P stands for the path /api/v1/user/me/personal-access-tokens, and B∗ is a request authenticated with the secret of B’s token. The two control requests show that the application otherwise denies A access to B’s token. That is, its sibling endpoint, which rotates a token, reads it through a query scoped by the caller and answers 404. The attack deletes B’s token, and B’s credential stops authenticating at once.

Appendix C. Completeness Rules Table 13 lists the thirteen rules of Section 6.4, each switched off alone. Without ten of them, more siblings on N EIGH stay uncleared, and the H UNT endpoints that come back are flagged for a wrong reason: the count flagged for the right reason never rises. Without V7, Listing 1 is cleared. TABLE 13. T HE THIRTEEN RULES OF S ECTION 6.4, EACH SWITCHED OFF ALONE : H UNT ENDPOINTS FLAGGED ( FOR THE RIGHT REASON ) AND N EIGH SIBLINGS CLEARED AT STAGE ONE .

TABLE 11. R EQUESTS OF THE EXPLOIT AGAINST L ISTING 1. Rule switched off

H UNT Sib.

Step

As Request

Response

None (FLINT)

33 (28)

94

Setup Control Control Attack Impact Impact

B A A A B∗ B

200, <B-token> 404 200 200 401 200, []

The request parameter of a guard that the framework invokes is the handler’s request A guard that the framework invokes binds to the object of the same request key A check on what an object refers to (by a field of its fetched row) covers the object Origins flow back through the return values of slice functions (R ET) A field of a nested literal among a call’s arguments is no field of the result Guards that the declaration, class header, or route registration names apply and so do guards that an applied guard names Code asked for in the need round is added inside files of the slice too The operands of one lookup are joint, whatever variable they come from A field write to a parameter reaches only the uses that follow it V7: a predicate handed a record assembled from the caller’s identity V2 also for links; a call that computes a stored value is no test Functions handed to the router before the route apply to it

35 (28)

83

33 (28)

91

33 (28)

92

34 (28)

88

33 (28)

92

35 (28)

83

35 (28) 33 (28)

81 88

33 (28)

92

33 (28)

90

32 (27)

94

33 (28)

94

33 (28)

94

POST P PATCH P/<B-token>/rotate DELETE P/<A-token> DELETE P/<B-token> GET /api/v1/user GET P

Appendix B. Near Misses and Natural Decoys Table 12 breaks the near misses of Section 6.3 down by operator and adds the natural decoys, i.e., the confirmed vulnerabilities of H UNT and RQ1 whose report names a check that leaves the access open, next to those with no check beyond authentication. The agents flag more near misses with a weaker permission, where the permission that the operation requires is finer than read and write (Section 7). On natural decoys, FLINT finds the abused access more often than either agent, but no difference is significant (exact McNemar, p > 0.1). TABLE 12. N EAR MISSES OF N EAR (31 FIXES WITH EVERY DETECTOR ’ S ANSWER ) BY OPERATOR , PAIRS TOLD APART ( FIX CLEARED , NEAR MISS FLAGGED ), AND NATURAL DECOYS FOUND FOR THE RIGHT REASON ( CONFIRMED VULNERABILITIES WHOSE ABUSED ACCESS IS KNOWN , WITH A CHECK THAT LEAVES IT OPEN OR WITH NO CHECK BEYOND AUTHENTICATION ). FLINT +leads Direct Claude Codex N EAR Vulnerable flagged Real fix flagged Near miss: weaker level (19) Near miss: other subject (4) Near miss: not enforced (8) Pair told apart

27 7 13 4 7 18

27 8 15 4 7 19

13 4 4 3 7 10

29 3 15 4 8 24

30 7 18 4 8 23

Natural decoys, right reason Decoy check (32) No check (43)

18 27

– –

– –

12 22

15 25

Appendix D. Use of Generative AI An LLM is a component of FLINT. The model, its settings, and how its answers are cached are given in Section 5, and every baseline that uses a model is described in Section 6.1. Generative AI was used for editorial purposes in this manuscript.

Related documents

Record · ID 1737363 · SHA-256 8e2a86950bd7f962
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive