Scan a code snippet (Python, JavaScript/TypeScript, PHP, Java, C#, Go, Ruby) for...
https://code.halowerk.com/v1/sql-injection-patternsOverview
Scan a code snippet (Python, JavaScript/TypeScript, PHP, Java, C#, Go, Ruby) for SQL built from strings: concatenation, interpolation and format calls reaching database APIs, with request-input taint and fixes.
Protocol
x402 (POST)
Price
$0.0030
Payment Asset
USD Coin
Payment Network
Base
Category
uncategorized
Provider
code
Source
bazaar
Indexed
2026-11-20 14:09:44
Health
Status
unknown
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
x402 Payment Validation
Payment Requirements
—
Asset Verified
—
Facilitator
—
Input Schema
{
"body": {
"code": "name = request.args.get(\"name\")\ncur.execute(\"SELECT * FROM users WHERE name = '\" + name + \"'\")\n",
"language": "python"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"limitations": [
"Static patterns within one snippet: values sanitized elsewhere or data flow across functions and files are not tracked.",
"No finding does not prove the absence of SQL injection."
],
"result": {
"findings": [
{
"construction": "concatenation",
"cwe": "CWE-89",
"fix": "Pass values as parameters: cursor.execute(\"... WHERE id = %s\", (value,)) (sqlite3 uses ?).",
"identifier_position": false,
"line": 2,
"message": "SQL statement built by concatenation from request input and passed to execute().",
"rule": "sql-concatenation",
"severity": "high",
"sink": "execute",
"sink_line": 2,
"snippet": "cur.execute(\"SELECT * FROM users WHERE name = '\" + name + \"'\")",
"source": "https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html",
"tainted_source": true,
"variable": null
}
],
"language": "python",
"summary": {
"high": 1,
"low": 0,
"medium": 0,
"safe_parameterized_calls": 0,
"tagged_templates": 0,
"total": 1
}
},
"service": "sql-injection-patterns",
"status": "success"
},
"type": "json"
}