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

Use strong hashing as security improvement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Security
    • None

    Description

      There have been 2 places identified where weak hashing needs to be replaced by SHA256.

      1. CookieSigner.java uses MessageDigest.getInstance("SHA"). Mostly SHA is mapped to SHA-1, which is not secure enough according to today's standards. We should use SHA-256 instead.

      2. GenericUDFMaskHash.java uses DigestUtils.md5Hex. MD5 is considered weak and should be replaced by DigestUtils.sha256Hex.

      Attachments

        Activity

          People

            taoli-hwx Tao Li
            taoli-hwx Tao Li
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: