跳到正文
arXiv cs.AI· Mingrui Liu, Liang He, Xinchu Wang, Yeting Li, Dongxu Han, Yunpeng Li, Yuling Liu·· 3 小时前AI 评分43

BAC-Bench:用 LLM 修复 Web 应用越权漏洞的实证基准研究

Repairing Broken Access Control in Web Applications with LLMs: An Empirical Benchmark Study

AI 导读

研究者构建 BAC-Bench,首个针对 Web 应用 Broken access control(BAC)漏洞修复的基准,包含来自 6 个常用 Web 应用、4 种编程语言的 46 个真实漏洞,每个漏洞配有沙箱运行环境、PoC 验证和功能测试程序。

正文 · 原文

View PDF HTML (experimental)

Abstract:Broken access control (BAC) ranks among the most severe web-application vulnerability classes, yet its automated repair remains largely unexplored. Unlike memory-safety vulnerabilities, BAC is a logic vulnerability whose repair demands a deep understanding of an application's access-control model and business semantics, which traditional automated vulnerability repair techniques handle poorly. Large language models (LLMs) open a promising avenue for this problem, but no standard benchmark exists for studying how well they repair BAC vulnerabilities. We construct BAC-Bench, the first benchmark for BAC repair, consisting of 46 real-world BAC vulnerabilities drawn from six widely used web applications spanning four programming languages. Each vulnerability is equipped with a sandboxed runtime environment, a PoC validation program and a functional test program. We further propose a BAC repair-strategy framework that characterizes any BAC patch along four dimensions, Position, Coverage, Mechanism, and Content. Evaluating eight base LLMs and two commercial LLM agents on BAC-Bench, we find that single-turn base LLMs repair 37.68% of the vulnerabilities on average, while two minimal scaffolds, Apply-Feedback and Navigate-and-Locate, raise this average to 66.03%, with the best base LLM reaching 75.36%, close to the 78.99% of the best agent. Notably, some LLM-generated patches surpass the official patches, and one incidentally closed a zero-day vulnerability that had lain dormant for three years. Our findings delineate the current capability boundary of LLM-based BAC repair and offer guidance toward its practical adoption.
Subjects: Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI); Software Engineering (cs.SE)
Cite as: arXiv:2610.34290 [cs.CR]
  (or arXiv:2610.34290v1 [cs.CR] for this version)
  https://doi.org/10.48550/arXiv.2610.34290

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Mingrui Liu [view email]
[v1] Sun, 25 Oct 2026 13:45:32 UTC (2,764 KB)

来源:arXiv cs.AI · arxiv.org