Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-42125

ALTER TABLE errors can reveal column values w/o SELECT privilege

    XMLWordPrintable

Details

    Description

      A user with ALTER privilege bug without SELECT can use various errors from ALTER that include the column value into the error message to see values he was not granted a privilege to see. For example

      MariaDB [test]> SELECT * FROM t1;
      ERROR 1142 (42000): SELECT command denied to user 'u'@'localhost' for table `db`.`t1`
      MariaDB [test]> ALTER TABLE t1 ADD UNIQUE (v);
      ERROR 1062 (23000): Duplicate entry 'foobar' for key 'v'
      

      Reported by Yalguun Tumenkhuu

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0d
                  0d
                  Remaining:
                  Time Spent - 1h Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - 1h Remaining Estimate - 1h
                  1h

                  Git Integration

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