Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4925

An information leakage from TSaslClientTransport

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 0.11.0, 0.12.0
    • None
    • Java - Library
    • None
    • Ubuntu 16.04.3 LTS
      Open JDK version "1.8.0_191" build 25.191-b12

    Description

      In org.apache.thrift.transport.TSaslClientTransport,
      protected void handleSaslStartMessage() throws TTransportException, SaslException {
      .......
      LOGGER.debug("Sending mechanism name {} and initial response of length {}", mechanism,
      initialResponse.length);
      .......
      }
      Sensitive information about mechanism is leaked. The LOGGER.isDebugEnabled() conditional statement should be added:
      protected void handleSaslStartMessage() throws TTransportException, SaslException {
      .......
      if (LOGGER.isDebugEnabled())
      LOGGER.debug("Sending mechanism name {} and initial response of length {}", mechanism,
      initialResponse.length);
      .......
      }

      Attachments

        Issue Links

          Activity

            People

              jensg Jens Geyer
              xiaoqin.fu xiaoqin.fu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: