Skip to content
HALOWERK

Codewerk

sql injection patterns

Tokenizes the code with an own lexer per language (f-strings, template literals, PHP and Ruby interpolation incl. heredocs, C# $-strings, Go raw strings, Java text blocks) and follows every SQL-looking string through concatenation, %-formatting, .format(), sprintf/String.format/fmt.Sprintf and interpolation to the enclosing database call (execute, query, executeQuery, mysqli_query, $queryRawUnsafe, raw, whereRaw, find_by_sql, SqlCommand, .) or to a variable that is later passed to one..

POST https://code.halowerk.com/v1/sql-injection-patterns

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
codestringYes
languagestringNo
filenamestringNoOptional file name; its extension decides the language when language is auto.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "code"
  ],
  "properties": {
    "code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500000
    },
    "language": {
      "type": "string",
      "enum": [
        "auto",
        "python",
        "javascript",
        "typescript",
        "php",
        "java",
        "csharp",
        "go",
        "ruby"
      ],
      "default": "auto"
    },
    "filename": {
      "type": "string",
      "maxLength": 300,
      "description": "Optional file name; its extension decides the language when language is auto."
    }
  }
}

Open original schema

Published input example

{
  "language": "python",
  "code": "name = request.args.get(\"name\")\ncur.execute(\"SELECT * FROM users WHERE name = '\" + name + \"'\")\n"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’