Abstract:Broken-access-control (BAC) vulnerabilities are a common and serious class of vulnerabilities in Web applications. By exploiting these vulnerabilities, attackers can carry out unauthorized reads of protected resources or unauthorized operations on them, leading to the disclosure or tampering of sensitive data. Black-box detection, which analyzes HTTP requests and responses, is widely adopted for detecting BAC vulnerabilities. However, because existing methods lack semantic understanding of requests and responses, they struggle to distinguish whether the response returned by a read-type request is a public response or a sensitive response, and also fail to accurately identify feedback responses of operation-type requests, resulting in considerable false positives and false negatives. To address these problems, this study proposes a black-box detection method for BAC vulnerabilities based on LLM-based semantic understanding. By extracting the semantics of sensitive resources and business functions from requests and responses, a request-response graph enhanced with multidimensional semantics is developed. This graph effectively distinguishes sensitive responses and identifies feedback responses, enabling accurate detection of read-type and operation-type BAC vulnerabilities. Based on the proposed method, a prototype system for BAC vulnerability detection, BACHunter, is implemented. Experimental results on a dataset containing 10 real-world Web applications show that BACHunter detects a total of 62 BAC vulnerabilities, including 14 0-day vulnerabilities, and achieves precision and recall of 93.94% and 88.89%, respectively, improving upon existing state-of-the-art detection methods by 23.30% and 25.93%, respectively. To date, 11 CVE IDs have been assigned, demonstrating the practical value of the proposed method.