Breaking the Gate: Detecting Invisible Authentication Slip-Through in NGINX Reverse Proxy
Abstract
Nginx serves as the authentication enforcement point for millions of web applications, yet its configuration language can silently disable authentication through cross-directive interactions among location ordering, map variable resolution, URI normalization, and per-block access controls. We identify seven classes of configuration-semantic authentication bypasses that arise from these interactions and present NginxBuster, a detection framework combining static configuration analysis with targeted active validation. NginxBuster’s static analyzer models nginx’s four-phase location matching algorithm to detect cross-location routing conflicts, while a configuration-aware mutation engine derives all test payloads from the target configuration’s structure. A dual-baseline detection model confirms bypasses only when unauthenticated requests achieve authenticated-equivalent responses. On 20 synthetic benchmarks containing 55 planted vulnerability instances, the static analyzer detected 54 true positives with 3 false positives (precision 0.95, recall 0.98); an active scanner issuing 1.1 million mutated requests independently confirmed 44 of these as working bypasses against live nginx deployments. Five widely-used security tools tested under identical conditions detected at most one vulnerability class. On 1,344 real-world nginx configurations drawn from 10,434 configuration files collected from public GitHub repositories, NginxBuster flagged 11.8% as vulnerable; manual verification confirmed 144 of 195 vulnerability-class flags as genuine bypasses. These results demonstrate that authentication correctness is a property of the entire routing configuration, not of any individual directive, and that detecting configuration-semantic bypasses requires routing-aware analysis that no existing tool provides.
Author: Aliakbar Sadeghi - Data Intelligence Lab, Samsung Research America, Sai Chand Boyapati - Data Intelligence Lab, Samsung Research America, Maryam Rostamipoor - Computer Science Department, Stony Brook University, Omar Chowdhury - Computer Science Department, Stony Brook University
Published: ACM CCS ’26, November 15–19, 2026, The Hague, Netherlands
Date: Nov 15, 2026