From da249e64da1be91d516fdc65313b1a08aa517514 Mon Sep 17 00:00:00 2001 From: edoardottt Date: Mon, 21 Mar 2022 19:08:24 +0100 Subject: [PATCH] update quotes in error regexes --- scanner/errors.go | 80 +++++++++++++++++++++++------------------------ 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/scanner/errors.go b/scanner/errors.go index efca8be..bc64c17 100644 --- a/scanner/errors.go +++ b/scanner/errors.go @@ -75,61 +75,61 @@ func GetErrorRegexes() []Error { []string{ `(?i)valid MySQL result`, `(?i)check the manual that (fits|corresponds to) your MySQL server version`, - "(?i)MySQLSyntaxErrorException", - "(?i)MySqlException", - "(?i)MySql error", - "(?i)Unknown column ", - "(?i)SQL syntax.*?MySQL", - "(?i)Warning.*?mysqli?", - "(?i)Unknown column '[^ ]+' in 'field list'", - "(?i)com\\.mysql\\.jdbc", - "(?i)Zend_Db_(Adapter|Statement)_Mysqli_Exception", - "(?i)Syntax error or access violation"}, + `(?i)MySQLSyntaxErrorException`, + `(?i)MySqlException`, + `(?i)MySql error`, + `(?i)Unknown column `, + `(?i)SQL syntax.*?MySQL`, + `(?i)Warning.*?mysqli?`, + `(?i)Unknown column '[^ ]+' in 'field list'`, + `(?i)com\\.mysql\\.jdbc`, + `(?i)Zend_Db_(Adapter|Statement)_Mysqli_Exception`, + `(?i)Syntax error or access violation`}, }, { "MariaDB error", []string{ `(?i)check the manual that (fits|corresponds to) your MariaDB server version`, - "(?i)MariaDB error"}, + `(?i)MariaDB error`}, }, { "PostgreSQL error", []string{ `(?i)valid PostgreSQL result`, - "(?i)PG::SyntaxError:", - "(?i)PSQLException", - "(?i)PostgreSQL query failed", - "(?i)ERROR: parser: parse error at or near", - "(?i)PostgreSQL error", - "(?i)PostgreSQL.*?ERROR", - "(?i)Warning.*?\\Wpg_", - "(?i)Npgsql\\.", - "(?i)org\\.postgresql\\.util\\.PSQLException", - "(?i)ERROR:\\s\\ssyntax error at or near", - "(?i)org\\.postgresql\\.jdbc"}, + `(?i)PG::SyntaxError:`, + `(?i)PSQLException`, + `(?i)PostgreSQL query failed`, + `(?i)ERROR: parser: parse error at or near`, + `(?i)PostgreSQL error`, + `(?i)PostgreSQL.*?ERROR`, + `(?i)Warning.*?\\Wpg_`, + `(?i)Npgsql\\.`, + `(?i)org\\.postgresql\\.util\\.PSQLException`, + `(?i)ERROR:\\s\\ssyntax error at or near`, + `(?i)org\\.postgresql\\.jdbc`}, }, { "MSSQL error", []string{ `(?i)Microsoft SQL error`, - "(?i)Microsoft SQL Native Client error", - "(?i)ODBC SQL Server Driver", - "(?i)Unclosed quotation mark after the character string", - "(?i)SQLServer JDBC Driver", - "(?i)Driver.*? SQL[\\-\\_\\ ]*Server", - "(?i)OLE DB.*? SQL Server", - "(?i)\bSQL Server[^<"]+Driver", - "(?i)Warning.*?\\W(mssql|sqlsrv)_", - "(?i)\bSQL Server[^<"]+[0-9a-fA-F]{8}", - "(?i)System\\.Data\\.SqlClient\\.SqlException", - "(?is)Exception.*?\bRoadhouse\\.Cms\\.", - "(?i)\\[SQL Server\\]", - "(?i)ODBC Driver \\d+ for SQL Server", - "(?i)com\\.jnetdirect\\.jsql", - "(?i)macromedia\\.jdbc\\.sqlserver", - "(?i)Zend_Db_(Adapter|Statement)_Sqlsrv_Exception", - "(?i)com\\.microsoft\\.sqlserver\\.jdbc", - "(?i)SQL(Srv|Server)Exception"}, + `(?i)Microsoft SQL Native Client error`, + `(?i)ODBC SQL Server Driver`, + `(?i)Unclosed quotation mark after the character string`, + `(?i)SQLServer JDBC Driver`, + `(?i)Driver.*? SQL[\\-\\_\\ ]*Server`, + `(?i)OLE DB.*? SQL Server`, + `(?i)\bSQL Server[^<"]+Driver`, + `(?i)Warning.*?\\W(mssql|sqlsrv)_`, + `(?i)\bSQL Server[^<"]+[0-9a-fA-F]{8}`, + `(?i)System\\.Data\\.SqlClient\\.SqlException`, + `(?is)Exception.*?\bRoadhouse\\.Cms\\.`, + `(?i)\\[SQL Server\\]`, + `(?i)ODBC Driver \\d+ for SQL Server`, + `(?i)com\\.jnetdirect\\.jsql`, + `(?i)macromedia\\.jdbc\\.sqlserver`, + `(?i)Zend_Db_(Adapter|Statement)_Sqlsrv_Exception`, + `(?i)com\\.microsoft\\.sqlserver\\.jdbc`, + `(?i)SQL(Srv|Server)Exception`}, }, { "OracleDB error",