Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-14004

Customized TrustManager bypasses certificate verification

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • None
    • None
    • clients, control.sh, security

    Description

      We found a security vulnerability in file ignite/modules/core/src/main/java/org/apache/ignite/internal/client/ssl/GridSslBasicContextFactory.java. The customized TrustManger (at Line 502) allows all certificates to pass the verification.

      Security Impact:

      The checkClientTrusted and checkServerTrusted methods are expected to implement the certificate validation logic. Bypassing it could allow man-in-the-middle attacks.

      Useful Resources:

      https://cwe.mitre.org/data/definitions/295.html

      https://developer.android.com/training/articles/security-ssl

      Solution we suggest:

      Do not customize the TrustManger or specify the certificate validation logic instead of allowing all certificates. See here to securely allow self-signed certificates and other common cases.

      Please share with us your opinions/comments if there is any:

      Is the bug report helpful?

      Attachments

        Activity

          People

            Unassigned Unassigned
            yaxiao Ya Xiao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: