Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-15132

Master region merge RPC should authorize user request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0, 2.0.0
    • None
    • None
    • Reviewed

    Description

      The normal flow for region merge is:
      1. client sends a master RPC for dispatch merge regions
      2. master moves the regions to the same regionserver
      3. master calls mergeRegions RPC on the regionserver.

      For user initiated region merge, MasterRpcServices#dispatchMergingRegions() is called by HBaseAdmin.

      There is no coprocessor invocation in step 1.
      Step 3 is carried out in the "hbase" user context.

      This leaves potential security hole - any user without proper authorization can merge regions of any table.

      Thanks to Enis who spotted this flaw first.

      Attachments

        1. HBASE-15132-branch-1.v6.patch
          24 kB
          Ted Yu
        2. HBASE-15132.v8.patch
          23 kB
          Ted Yu
        3. HBASE-15132.v7.patch
          24 kB
          Ted Yu
        4. HBASE-15132.v6.patch
          24 kB
          Ted Yu
        5. HBASE-15132.v5.patch
          24 kB
          Ted Yu
        6. HBASE-15132.v4.patch
          24 kB
          Ted Yu
        7. HBASE-15132.v2.patch
          8 kB
          Ted Yu
        8. HBASE-15132.v1.patch
          9 kB
          Ted Yu

        Issue Links

          Activity

            People

              yuzhihong@gmail.com Ted Yu
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: