Shield
Lab
Learn
Practice
Roadmap
Cheatsheets
Search lessons & terms…
⌘K
Made with
❤️
by
Aromal S
All labs
Lab · Cyberattacks
SQL Injection Sandbox
Use parameterized queries (the fix)
VULNERABLE
AcmeCorp Staff Portal
Username
Password
Sign in
Try:
admin' --
' OR '1'='1
alice
What the server runs
-- input is pasted into the SQL string
SELECT
*
FROM
users
WHERE
username =
'
'
AND
password =
'
'