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

DatabaseMetaData methods do not consider NO_BACKSLASH_ESCAPES real value for escaping parameters

    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

      The escaping was always done as if NO_BACKSLASH_ESCAPES is on. Affected methods - getPrimaryKeys, getTables, getColumns, getProcedures, getProcedureColumns, getFunctionColumns, getColumnPrivileges, getTablePrivileges, getFunctions for table schema and name parameters and for columns, routine/procedure/function names(where applicable), in getColumnPrivileges only column name and in getTablePrivileges only for table name, in getFunctions only routine name.
      If the multi-statements are enabled, the result could be that with specially picked parameter values SQL can be injected. Or additional rows are selected

      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.