Open the dashboard, or let your coding agent use AutoProof directly through the API. The long work of sorting is ours. Your people spend their time on what needs people.
The search handler treats the caller-controlled q value as part of the SQL program: length truncation leaves SQL syntax intact, and direct interpolation lets SQLite parse a UNION that selects from Users. The handler then serializes the full result set into the HTTP response, with no binding or SQL-neutralizing validation between the request value and the raw query.
Attacker inputroutes/search.ts:19-22
A client controls q on GET /rest/products/search. The handler assigns req.query.q to criteria and only truncates it, and the API test's UNION input fits within that bound.
Reachable pathserver.ts:641
The normal Express configuration registers the public GET endpoint to searchProducts, and the service startup configures the app and binds its HTTP listener. The API test invokes the endpoint without an authorization header and expects a 200 response.
Sink reachedroutes/search.ts:23
The interpolated criteria reaches models.sequelize.query. The included API test specifies a successful UNION from Users, and the handler returns the query result as JSON.
Protection absentroutes/search.ts:21-23
No SQL parameter binding, escaping, or character allowlist is applied to criteria before the sink; limiting its length to 200 characters does not prevent the tested SQL syntax. The route itself has no route-specific authorization middleware.
Runtime reproduction
A single bounded request uses the repository API test's UNION payload against the supplied service URL.
GET /rest/products/search?q=')) union select id,'2','3',email,password,'6','7','8','9','10' from users--
Runtime Response
HTTP 200 · 81 rows24 with an email and a password hash
HTTP 200; Content-Type: application/json; charset=utf-8. Parsed JSON contained 81 data rows, including 24 rows matching the injected UNION markers with an email-like price field and non-empty password-hash field. Credential values were not emitted.
Runtime Standard Output
HTTP_STATUS=200
JSON_DATA_ROWS=81
SENSITIVE_VALUES_REDACTED=True
SECURITY_IMPACT_OBSERVED=True
IMPACT=Users-table email and stored password-hash fields were returned in JSON through UNION injection
The SQL injection was reproduced against the current matched Juice Shop service: an unauthenticated search request returned Users-table email and stored password-hash fields in JSON, and the runtime recorded the User Credentials challenge as solved.
Recommended Action
Bind the search pattern as a SQL parameter (for example, pass %${criteria}% as a bound value) instead of interpolating criteria into the query string; validate q as a string and keep the length cap only as a secondary resource control.
A person still checks every result.
Triage is already automated
Teams run scanners and AI tools to sort findings. Someone still opens each result, checks it, and makes the call.
That checking is where the hours go
Engineers in a 2026 industry study put review at 10 to 20 minutes per static-analysis alarm.1
1Du et al. (Fudan University and Tencent), Reducing False Positives in Static Bug Detection with LLMs: An Empirical Study in Industry, arXiv:2601.18844, 2026-01-26. Presented at ICSE 2026 (Software Engineering in Practice). Review time is from interviews with five engineers. Static bug alarms, not security-specific. Source
What each verdict tells your team
Exploitable
Proven exploitable. The badge names the kind of evidence.
83 findings in the sample run
Runtime reproduced
A proof of concept reproduced the behavior in a test runtime.
36 findings in the sample run
Regression reproduced
A regression reproducer showed the vulnerable behavior.
25 findings in the sample run
Structural proof only
Proven by structural verification alone.
22 findings in the sample run
Not exploitable
The reported vulnerable logic was disproved, with the reason written out.
179 findings in the sample run
Needs review
Verification was not conclusive either way. A person decides.
18 findings in the sample run
Counts from one run on OWASP Juice Shop, a training app: 280 findings.
Watch the demo
3 min · No sound
Add verification to your SAST
Use AutoProof's built-in scan or bring the findings you already have.
Code
GitHub (GitHub App)
Public repository URL
Archive upload
Findings in
Built-in scan
Opengrep results through the API
GitHub Actions workflow
Results out
Slack
Jira
Team
API keys
Reports in English or Korean
Where AutoProof works
Built for
Web applications, backend servers, APIs, and libraries.