Uploaded image for project: 'MariaDB Connector/C++'
  1. MariaDB Connector/C++
  2. CONCPP-162

Wrong quot escaping of parameters in DatabaseMetaData methods

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.0.7, 1.1.8
    • 1.1.9, 1.0.8
    • General
    • 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

          Activity

            People

              Lawrin Lawrin Novitsky
              Lawrin Lawrin Novitsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.