Skip to content

tls-server-end-point RFC5929 (Channel Binding) missing support #115195

Closed as not planned

Description

@Neustradamus

Bug report

Bug description:

Dear @python team,

Can you add "tls-server-end-point" from RFC5929?

Little details, to know easily:

  • tls-unique for TLS =< 1.2
  • tls-server-end-point
  • tls-exporter for TLS = 1.3

An announcement has been done by Slixmpp team here about the security problem:

I think that you have seen the jabber.ru MITM:

It is needed for all SCRAM-SHA-*-PLUS (several RFCs) and specified in:

A best SCRAM SASL and Channel Binding explanation:

All links about it:

cc: @davidben, @wingel, @eighthave, @jchampio, @gst, @lowinger42, @ezio-melotti, @AlexWaygood, @njsmith, @zooba, @tlocke, @agronholm, @oberstet.

Thanks in advance.

Linked to:

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

Activity

  1. davidben commented on Feb 9, 2024

    @davidben
    Contributor

    @Neustradamus please stop CC-ing me on these bugs.

  2. Neustradamus commented on Feb 9, 2024

    @Neustradamus
    Author

    @davidben: Thanks for your answer, no problem, maybe you can help me to contact the Python Security team to solve Security points?

  3. oberstet commented on Feb 9, 2024

    @oberstet

    yeah, everybody should be using channel binding, in TLS, and in general (it is an attack vector that exists in all authentication protocols layered on encryption on lower protocols)

    WAMP has this, and correctly ties it into "WAMP-Cryptosign" authentication

    https://wamp-proto.org/wamp_latest_ietf.html#name-tls-channel-binding

    TLS channel binding is supported in very few WAMP implementations to my knowledge, but Autobahn (client-side)

    https://github.com/crossbario/autobahn-python/blob/359f868f9db410586cf01c071220994d8d7f165a/autobahn/twisted/util.py#L134
    https://github.com/crossbario/autobahn-python/blob/359f868f9db410586cf01c071220994d8d7f165a/autobahn/wamp/cryptosign.py#L399

    as well as Crossbar.io (router side)

    https://github.com/crossbario/crossbar/blob/0089c1ef6fbbb87fc7316088a91f1859fa84eeb0/crossbar/router/auth/cryptosign.py#L59
    https://github.com/crossbario/crossbar-examples/blob/aa31d9fe3abcb4b797931356b5a2ceeac64229c3/authentication/cryptosign/static/client_tx.py#L96

    are 2 impls. that do.

  4. removed
    type-bugAn unexpected behavior, bug, or error
    on Feb 9, 2024
  5. zooba commented on Feb 9, 2024

    @zooba
    Member

    Are you referring to SSLSocket.get_channel_binding?

    Frankly, I find this bug report impossible to understand. And aggressively tagging various people on it makes me want to report you for spamming. Please don't ever do that again - the issue tags are sufficient to get the attention of the right people.

  6. added
    pendingThe issue will be closed if no feedback is provided
    on Feb 9, 2024
  7. erlend-aasland commented on Feb 9, 2024

    @erlend-aasland
    Contributor

    Duplicate of #95341.

  8. removed
    pendingThe issue will be closed if no feedback is provided
    on Feb 9, 2024
  9. erlend-aasland commented on Feb 9, 2024

    @erlend-aasland
    Contributor

    @Neustradamus: Christian Heimes already asked you to keep the discussion in #95341 in #95350 (comment). You've opened three (!) identical issues since his request. Please don't open more duplicate issues.

  10. Neustradamus commented on Feb 9, 2024

    @Neustradamus
    Author

    Thanks all for comment, I will explain if you have not understand, there are several parts, please do not mix.

    This ticket is for missing "tls-server-end-point" RFC5929 support, a security part, not for other.

    Other part, my initial ticket for RFC9266 linked to "tls-exporter" has been closed without solution, I have done a new one to have the security solution.

    It is possible to have a PR, a commit with the security solution for "tls-exporter", and another one for "tls-server-end-point"?

    Thanks in advance.

  11. locked as resolved and limited conversation to collaborators on Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions