SQL Injection Demo

Raw API endpoints for to attack directly from Postman.

Search API (GET — click a link to open it, or copy the URL):

1. Normal search — look up one exact email

/api/users/search?email=alice@example.com

2. Vulnerable — always-true OR dumps every user

/api/users/search?email=fake-mail@example.com' OR '1'='1

Both have a -safe counterpart (/api/login-safe, /api/users/search-safe) using parameterized queries — try the same payloads there to see the fix.