← Learn
Dangerous
psql -h db.example.com -U app -c "DELETE FROM sessions WHERE user_id = '$USER_ID'"

cross-platform · bash · Expert

The shell expands the variable into the SQL text before psql ever sees it, so a value containing a quote ends the literal and appends its…

The full explanation and danger signals for this pack are part of Pro.

Think you can spot these under time pressure?

Start Training

More Web Security