SANS Holiday Hack 2026: SQL Injection Walkthrough
Walking through a SQLite injection challenge from SANS Holiday Hack 2026: reading parser errors to bypass login, then pulling another user's task list.
Contents
Challenge prompt: “A task-tracker web app with a login page and a search box. Get past the login without a password, then read another user’s task list.”
Opening the challenge gives us a login prompt for a small task-tracker app:

The app has both a login form and a closed-beta registration form requiring an invite code. I focused on the login page first, using admin as the username and changing only the password field.

Testing the password field
We know this challenge is about SQL injection, so let’s try some SQL. My first test was the classic payload:
' OR 1 = 1 --
Instead of a normal login failure, the app returned:
Database error: incomplete input
That’s a great sign because it tells us our input is directly affecting the structure of the backend query. Next, I removed the -- comment marker and tried again. This time we got:
Database error: unrecognized token: "')'"
That difference tells us the original query continues after our input and includes a closing parenthesis.
I also tested the # comment syntax used by MySQL:
' OR 1 = 1 #
The response came back:
Database error: unrecognized token: '#'"
Between rejecting # and accepting --, this is almost certainly SQLite. One more quick punctuation test, '(), returned near "(": syntax error, which backed that up.
What the errors revealed
Putting those responses together, the password is likely sitting inside both a quoted string and a surrounding function or parenthesized expression. Our payload needs to:
- Close the existing string.
- Close the surrounding parenthesis.
- Add a condition that always evaluates to true.
- Comment out the rest of the backend query.
So the shape looks like [close string][close parenthesis] OR [true condition][SQLite comment]. I entered:
') OR 1=1 --
That balances the query, forces the condition true, and uses SQLite’s -- comment marker to drop the trailing SQL. The app accepted the login and let us right in.
Bingo:

Quick check on the Sign Up invite-code field
Out of curiosity, I tried similar payloads in the invite-code field under “Sign up.” That only returned incorrect invite code... with no database error exposed. It could be parameterized SQL, separate validation logic, or just cleaner error handling. There might be another path there, but the login form gave us verbose SQLite errors, so we ran with that.

Reading another user’s task list
Once logged in, we see our account’s three tasks along with a search box. Since the prompt called out both login and search, let’s test the search box with the same style of payload:
' OR 1=1 --
The task list immediately expanded well past the original three items. Our own tasks were still there, now mixed with records belonging to another user.

The final row had the confirmation that we finished the challenge:

URGENT before Christmas Eve -- confirm delivery HHC(y0u_f0und_s0m30n3s_t0d0_).
That confirmed the search query wasn’t just injectable, it also failed to isolate results to the current user once the WHERE clause was broken open with OR 1=1. Both parts of the challenge are done: we bypassed login without a password and read another user’s tasks.