Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-349

Timing side-channel in TLS fingerprint validation hash comparison

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0-rc3
    • Other
    • None

    Description

      In the MitM-proof authentication path, the connector compares its computed validation hash against the server-supplied value using str ==, which is not constant-time (it short-circuits on length and the first differing character).

      Since the server value is attacker-influenceable, the accept/reject timing leaks the matching-prefix length, potentially allowing byte-by-byte recovery of the expected hash and forgery of a valid server proof.

      goal is to use hmac.compare_digest that is a constant time comparison

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.