Ichnia: Semantic Effect Oracles for Black-Box Broken Access Control Detection in Web Applications

Ruozhao Yang, Jiongchi Yu, Yuqiang Sun, Junjie Wang, Xiaofei XiearXiv 2026

TL;DR

Broken Access Control (BAC) is the #1 security risk in modern web applications, yet black-box scanners routinely miss state-changing flaws because they only look at immediate HTTP responses or echoed input values. Ichnia solves this by using Large Language Models (LLMs) to infer what an operation is supposed to change—its semantic postcondition—and then finding and calibrating web-visible "witnesses" (like a status page or a newly enabled button) to prove whether an unauthorized user actually pulled off the attack. Evaluated on 20 real-world web apps, Ichnia uncovered 103 BAC vulnerabilities—including 31 previously unknown ones (18 of which have already been assigned CVEs)—nearly doubling the recall of state-of-the-art black-box detectors.

What Problem Does This Paper Address?

Imagine a user named Bob who shouldn't be allowed to touch Alice's closed auction. Bob sends a request to relist Alice's auction anyway. The server responds with a generic 200 OK and a list of Bob's own auctions.

Existing black-box BAC detectors fail here for two reasons:

  1. Response-based oracles compare the HTTP response Bob gets with the one Alice gets. Since both see their own auction lists, the responses look different—so the scanner assumes Bob's attack failed, even though Alice's auction just reopened.
  2. Value-propagation oracles (like BACScan) try replacing a request parameter with a unique tracking token and watching where it pops up later. But you can't replace an integer auction ID (relist[]=17) with a random string without breaking the request, and operations like changing a status or permission don't submit a new value that gets echoed back.
Example of response-based and value-propagation oracles missing a WeBid relist vulnerability

To reliably catch these silent state changes, a scanner needs an effect oracle tailored to what each specific operation is actually meant to do.

Methods

Ichnia builds these operation-specific oracles in four phases, keeping the LLM strictly away from making authorization judgments:

Figure 2: Overview of Ichnia.
  1. Web Interaction Collection: Using Playwright and Crawlee, Ichnia crawls the app with identity-aware sessions, recording requests, form fields, buttons, and surrounding DOM context into an interaction graph ($\mathcal{G}_1$).
  2. Effect-Oriented Semantics Modeling: An LLM inspects the UI context (e.g., a "Re-list" button next to a closed auction) to ground each business operation and infer its expected postcondition ($\varphi$, such as AuctionStatus(a) = OPEN). Guided by this postcondition, Ichnia retrieves candidate witnesses ($w$)—later pages or actions that could reveal the state change, like /item.php?id=17 showing a "Place Your Bid" form.
  3. Calibrated Effect Oracle Construction: Ichnia turns each candidate into an executable check in Conjunctive Normal Form (CNF) using strong Kleene logic (so missing pages or timeouts yield UNKNOWN rather than FALSE). Crucially, it calibrates the oracle by running it on $k=2$ fresh pairs of authorized executions versus matched no-operation controls. If the oracle doesn't consistently return TRUE when the authorized user acts and FALSE when the operation is omitted, it is rejected or routed back for refinement.
  4. Unauthorized Differential Effect Testing: With the oracle's logic frozen (and no LLM involved), Ichnia replays the operation using an unauthorized user's session and compares it against a matched no-op control. It reports a BAC vulnerability only if the protected effect occurs, is attributed to the unauthorized request, and violates the declared permission basis.

Datasets

The authors evaluate Ichnia on 20 real-world open-source web applications drawn from the BACAgent benchmark: 9 Java, 9 PHP, and 2 Go applications (ranging from 3K to 582K lines of code). Because the original benchmark only published per-application vulnerability counts, the authors reconstructed and reproduced 77 known BAC vulnerabilities from public advisories and issue reports to serve as ground truth.

Key Insights and Ideas

  • UI context explains opaque requests: A raw POST request with action=update&relist[]=17 reveals almost nothing on its own. Button labels, table columns, and surrounding page text give LLMs the semantic cues needed to separate operations sharing a single endpoint and infer their true postconditions.
  • Postconditions guide witness discovery: Instead of blindly scanning every page for changes, knowing what should change (e.g., an auction's status, a user's email, or a repository membership) narrows the search to the exact detail pages or behavioral probes that can prove it.
  • Calibration eliminates guesswork: An LLM that both proposes an effect and reads its evidence can easily fool itself (for instance, by checking a cached list). Testing candidate oracles against matched no-op controls filtered out 25 of 31 false positives in the authors' ablation study.

Key Results

  • Effectiveness: Using gpt-6-luna as its primary backend, Ichnia detected 103 BAC vulnerabilities (72 known, 31 previously unknown) at 94.50% precision and 93.51% recall. All 31 new vulnerabilities were responsibly disclosed; 23 have been confirmed and 18 CVE IDs assigned.
  • Outperforming Baselines: Ichnia's 93.51% recall crushes BACScan (53.25%), Burp Suite + Autorize (45.45%), and EvoCrawl (25.97%)—an improvement of 40.26 to 67.54 percentage points—while matching BACScan's precision (94.44%). Even when restricted to the exact same set of 823 operations exercised by all tools, Ichnia detected 91.1% of vulnerabilities versus 48.9% for BACScan.
  • Cost & Efficiency: Ichnia takes a median of 3.9 hours and $16.90 in API costs per application (about 3× slower than BACScan's 1.2 hours), issuing 38.2K HTTP requests and 2,070 LLM calls. Cheaper backends like DeepSeek-V4 cut the total 20-app cost from $387 down to $62, at the trade-off of 9.09 percentage points lower recall.

Limitations and Future Work

  • Sibling objects and shared resources: Four false positives occurred when an oracle accidentally bound to a sibling object whose state happened to match the target's during calibration. Two others stemmed from permission bases that didn't account for deliberately shared resources.
  • Attempt-sensitive observations: Because calibration compares an authorized execution against an omitted operation (rather than a denied one), an observation that reacts to any attempt—such as an activity log entry—could pass calibration and trigger a false positive.
  • Exploration and async limits: Ichnia still misses vulnerabilities on endpoints its crawler doesn't reach (e.g., certain single-page app routes) or effects that only materialize after asynchronous background jobs.

Summary updated

BibTeX
@misc{yang2026ichnia,
  author = {Ruozhao Yang and Jiongchi Yu and Yuqiang Sun and Junjie Wang and Xiaofei Xie},
  title = {{Ichnia: Semantic Effect Oracles for Black-Box Broken Access Control Detection in Web Applications}},
  year = {2026},
  eprint = {2612.03182},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.03182},
}
Figure