RedTeam Nexus
All labs
Web Security

SQL Injection: Authentication Bypass

Exploit a classic SQL injection flaw in a login form to bypass authentication as an administrator, then capture the flag.

Beginner100 pts25 min

You are assessing the login API of an internal admin panel during an authorized engagement. The endpoint builds its SQL query by pasting your input straight into the query string — the textbook setup for a SQL injection authentication bypass.

The target is a real HTTP service (an isolated sandbox with only in-memory demo accounts — no database, no real users, no secrets). You interact with it from the console below by sending real requests.

Sign in to submit flags

You can explore the target now. Answer validation and progress tracking require an account.

Sign in
Task 1 · 1 question

Recon — how the login query is built

Send a GET / request to the target using the console above. The service describes itself, including the exact query it runs:

SELECT * FROM users WHERE username = '<username>' AND password = '<password>'

Your username and password are concatenated directly into that string — nothing is escaped or parameterized. Notice which keyword links the two checks together: that is the clause you will subvert.

Flag · submit below

Which single SQL keyword joins the username check and the password check in the query the server runs?

Sign in to submit and earn points.

Target environment · console

The console is isolated and simulated — it runs in your browser against a deliberately vulnerable target, never the real platform. Open it whenever you need to work with the target; it keeps its state while hidden.