Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-8893

Implement whitelist for builtin UDFs to avoid untrused code execution in multiuser mode

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.14.0
    • Fix Version/s: 1.1.0
    • Component/s: Authorization, HiveServer2, SQL
    • Labels:
      None

      Description

      The udfs like reflect() or java_method() enables executing a java method as udf. While this offers lot of flexibility in the standalone mode, it can become a security loophole in a secure multiuser environment. For example, in HiveServer2 one can execute any available java code with user hive's credentials.
      We need a whitelist and blacklist to restrict builtin udfs in Hiveserver2.

        Attachments

        1. HIVE-8893.6.patch
          32 kB
          Prasad Mujumdar
        2. HIVE-8893.5.patch
          27 kB
          Prasad Mujumdar
        3. HIVE-8893.4.patch
          27 kB
          Prasad Mujumdar
        4. HIVE-8893.3.patch
          27 kB
          Prasad Mujumdar

          Issue Links

            Activity

              People

              • Assignee:
                prasadm Prasad Mujumdar
                Reporter:
                prasadm Prasad Mujumdar
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: