Skip to main content
Challenges Nginx log: blind SQL injection
Web Medium Reconstructing parallel boolean-based blind SQLi queries from nginx access.log Solves: 3

Nginx log: blind SQL injection

Author: CyberSamSU
Points
45

The web server's nginx_access.log log contains traces of regular visitors, bot scanners, and a boolean-based blind SQLi attack against the /item.php?id=... endpoint.

The attacker used AND ASCII(SUBSTRING((SELECT ...),n,1))>k conditional requests: when the condition was true, the server returned 200 OK (larger response size), and when false, 404 Not Found (smaller response size). However, because the attack ran across multiple parallel threads, the order of positions is mixed up, with 429/503 rate-limit responses and repeated attempts in between.

The log contains multiple SELECT queries: a decoy env='staging' as well as the admin hash were also extracted. Recover the real production secret — the env='prod' value in the app_secrets table. Flag format: BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits).

Attached files
nginx_access.log Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −4 pts Log in
Hint 2 −9 pts Log in
Hint 3 −13 pts Log in
To submit a flag, log in.

First solvers

1. Odam 25.11.2026
2. Mirjaxon Qaxxarov 25.11.2026
3. AGENT X 25.11.2026