Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.0.7, 1.1.8
-
None
Description
DatabaseMetaData methods using a helper function that due to the bug in it can escape the own output, i.e. it can escape the same quot multiple times. As a result in some cases that can result in odd number of quotes. And that can allow SQL injection. In case
CLIENT_MULTI_STATEMENTS are allowed that can be additional destructive query, if not - just possibly wrong result with additional rows. Affected table types in getTables, schema name in getColumns, catalog(schema) in getProcedureColumns, catalog(schema) in getFunctionColumns, schema and table name in getColumnPrivileges, catatlog(schema) in getTablePrivileges, catalog(schema) in getFunctions, referenced schema and table in getExportedKeys, catalog(schema) name and table in getImportedKeys, schema and table name in getBestRowIdentifier, parent and foreign schema, parent and foreign table in getCrossReference, table schema and table in getIndexInfo, schema pattern in getSchemas.
Attachments
Issue Links
- relates to
-
CONCPP-163 Introduce allowMultiQueries option to control if multistatement queries are allowed
-
- Closed
-
-
CONCPP-161 DatabaseMetaData methods do not consider NO_BACKSLASH_ESCAPES real value for escaping parameters
-
- Closed
-