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

KILL checks user (not priv_user) and doesn't verify hostname

    XMLWordPrintable

Details

    • Unexpected results
    • Q3/2026 Server Development

    Description

      KILL allows the user to kill their own connections, but not connections of other users.

      The check for "own connections" only compared username part of USER(), instead of comparing CURRENT_USER fully, thus two different accounts with the identical username part were able to kill each other connections.

      Reported by Andrew James Gonzalez

      Attachments

        Activity

          People

            serg Sergei Golubchik
            serg Sergei Golubchik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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

                Git Integration

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