Skip to content

Instantly share code, notes, and snippets.

@pikpikcu
Forked from 0x240x23elu/sqli2.yaml
Created September 2, 2020 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pikpikcu/1f5a7bc31b1676b97383af2cdd87d609 to your computer and use it in GitHub Desktop.
Save pikpikcu/1f5a7bc31b1676b97383af2cdd87d609 to your computer and use it in GitHub Desktop.
Basic SQL Injection Detections nuclei Template
id: SQLInjection_ERROR
info:
name: SQLINJECTION Detection
author: 0x240x23elu & OFJAAAH
severity: High
requests:
- method: GET
path:
- "{{BaseURL}}'"
- "{{BaseURL}} 1 or 1"
extractors:
- type: regex
part: body
regex:
- "SQL syntax.*MySQL|Warning.*mysql_.*|valid MySQL result|MySqlClient.|mysqli_error|mysqli_query"
- "PostgreSQL.*ERROR|Warning.*Wpg_.*|valid PostgreSQL resultNpgsql."
# - "Driver.* SQL[-_ ]*Server|OLE DB.* SQL Server|(W|A)SQL Server.*Driver|Warning.*mssql_.*|(W|A)SQL Server.*[0-9a-fA-F]{8}|(?s)Exception.*WSystem.Data.SqlClient.|(?s)Exception.*WRoadhouse.Cms.)"
- "Microsoft Access Driver|JET Database Engine|Access Database Engine"
- "ORA-[0-9][0-9][0-9][0-9]|Oracle error|Oracle.*Driver|Warning.*Woci_.*|Warning.*Wora_.*"
- "CLI Driver.*DB2|DB2 SQL error|bdb2_w+"
- "SQLite/JDBCDriver|SQLite.Exception|System.Data.SQLite.SQLiteException|Warning.*sqlite_.*|Warning.*SQLite3::|SQLITE_ERROR"
- "(?i)Warning.*sybase.*|Sybase message|Sybase.*Server message.*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment