You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for SCRAM-SHA-*-PLUS channel binding in PHP streams (e.g., tls-unique, tls-exporter) #16766
I'm the maintainer of the fabiang/sasl library, which implements various SASL mechanisms. Since many SASL mechanisms have been deprecated over the years due to security issues, I am interested in improving the security of the SCRAM-SHA-* SASL mechanisms.
The SCRAM-SHA-*-PLUS mechanisms offer better security through channel binding. The recommended channel binding types are:
tls-unique for TLS <= 1.2
tls-server-end-point
tls-exporter for TLS >= 1.3
Currently, PHP lacks support for channel binding, as no API is exposed to access data from the underlying secure socket. Additionally, more and more server software is adding support for channel binding.
There are still bunch of open bug for tls streams so I won't be probably able to get to it anytime soon but if someone else creates a PR containing tests, I should be able to review it.
@bukka: For your information, the recent Dovecot 2.4.0 has SCRAM-SHA-1-PLUS/SCRAM-SHA-256-PLUS supports in more SCRAM-SHA-1/SCRAM-SHA-256. It arrives after Exim, indimail-mta, msmtp, mpop, ...
About PHP, SCRAM has been added in, people wait for -PLUS variants:
PEAR Auth_SASL/Auth_SASL2/Net_SMTP (used by a lot of projects like Roundcube etc.)
@Neustradamus Bugs and especially security issues are the highest priority so I cannot prioritise this over them. We have got other important features requested for OpenSSL as well (there are many things missing). I understand that this is a priority for you but you will either need to implement it yourself and create a PR or hire someone to do that if you can't do that. Just pinging people will not change their priorities.
RFC 5801: Using Generic Security Service Application Program Interface (GSS-API) Mechanisms in Simple Authentication and Security Layer (SASL): The GS2 Mechanism Family: https://datatracker.ietf.org/doc/html/rfc5801
Activity
Neustradamus commentedon Nov 13, 2024
@fabiang: Thanks for your ticket, a lot of PHP projects wait the solution to add -PLUS variants.
Neustradamus commentedon Jan 15, 2025
Dear @php team,
Have you progressed on this ticket?
bukka commentedon Jan 19, 2025
There are still bunch of open bug for tls streams so I won't be probably able to get to it anytime soon but if someone else creates a PR containing tests, I should be able to review it.
Neustradamus commentedon Jan 19, 2025
@bukka: Thanks for your answer!
It is always possible to work on it before to solve all other bugs?
This feature is very important and permit to have more security...
Neustradamus commentedon Feb 3, 2025
@bukka: For your information, the recent Dovecot 2.4.0 has SCRAM-SHA-1-PLUS/SCRAM-SHA-256-PLUS supports in more SCRAM-SHA-1/SCRAM-SHA-256. It arrives after Exim, indimail-mta, msmtp, mpop, ...
About PHP, SCRAM has been added in, people wait for -PLUS variants:
Linked to:
Neustradamus commentedon Mar 3, 2025
Dear @php team, @bukka, @fjanisze,
For information: @fabiang has released the 2.0.0 release build of PHP SASL2 Authentification Library:
The only missing point is Channel Binding :/
Hope that you will solved this problem.
Thanks in advance.
cc: @jfha73
bukka commentedon Mar 3, 2025
@Neustradamus Bugs and especially security issues are the highest priority so I cannot prioritise this over them. We have got other important features requested for OpenSSL as well (there are many things missing). I understand that this is a priority for you but you will either need to implement it yourself and create a PR or hire someone to do that if you can't do that. Just pinging people will not change their priorities.
Neustradamus commentedon Oct 24, 2025
Little details, to know easily:
Neustradamus commentedon Dec 4, 2025
Dear PHP Security team, @bukka,
Have you progressed about this important PHP security point?
This is missing since a long time and @fabiang has done this ticket more one year ago.
Can you see to have this security support into all PHP >= 8.2?
Thanks in advance.
More informations:
IANA: Simple Authentication and Security Layer (SASL) Mechanisms: https://www.iana.org/assignments/sasl-mechanisms/sasl-mechanisms.xhtml
Channel Binding RFCs:
Channel-Binding Types: https://www.iana.org/assignments/channel-binding-types/channel-binding-types.xhtml
Linked RFCs:
Current IETF Internet-Drafts:
Neustradamus commentedon Sep 30, 2026
Dear PHP Security team, @bukka,
Have you progressed about this important PHP security point?
This is missing since a long time and @fabiang has done this ticket two year ago.
Can you see to have this security support into all PHP version?
Thanks in advance.
Sjord commentedon Oct 1, 2026
@fabiang, @Neustradamus, could you take a look at #24035? Would that solve your use case?
This is unlikely to happen; it will probably be in PHP 8.7 and up.
Neustradamus commentedon Oct 2, 2026
@Sjord: Thanks a lot for your work about Channel Binding!
I have requested tests to PHP project devs...
It will be not possible to backport to previous PHP versions too?