From: "cron2 (Code Review)" Date: Sun, 27 Oct 2024 09:41:32 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <2e0fdb79af56cbe699cb4ff88665df94ad459b1e-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="qw0pqtVFImc="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Refuse clients if username or password is > USER_PASS_LEN List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: flichtenheld , openvpn-devel --qw0pqtVFImc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/787?usp=3Demail ) Change subject: Refuse clients if username or password is > USER_PASS_LEN ...................................................................... Patch Set 1: Code-Review-1 (1 comment) Patchset: PS1: Okay, my client was not compiled the way I thought - so with --enable-pkcs1= 1, sending a long username to an unmodified server yields ``` Oct 27 10:30:59 gentoo tun-udp-p2mp-global-authpam[14201]: 194.97.140.21:36= 736 TLS Error: Auth Username/Password was not provided by peer Oct 27 10:30:59 gentoo tun-udp-p2mp-global-authpam[14201]: 194.97.140.21:36= 736 TLS Error: TLS handshake failed `` and with the patch it does a proper ``` Oct 27 10:34:48 gentoo tun-udp-p2mp-global-authpam[15712]: 194.97.140.21:60= 127 TLS INFO: Username (-230) or password (14) long ... Oct 27 10:34:48 gentoo tun-udp-p2mp-global-authpam[15712]: 194.97.140.21:60= 127 TLS Error: Username (230) or password (14) too long ``` and the client receives ``` 2024-10-27 10:34:48 AUTH: Received control message: AUTH_FAILED,Username or= password is too long. Maximum length is 128 bytes ``` (the "-" 230 is my doing, I removed the abs() call to more clearly see what= is being returned). Upgrading the patch to "-1" ;-) - I think the "TLS INFO:" line clould eithe= r be removed (because it's duplicating the TLS Error: message later) or the= `abs()` should go, and the double space before ` long`) --=20 To view, visit http://gerrit.openvpn.net/c/openvpn/+/787?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I60f02c919767eb8f1b95253689a8233f5f68621d Gerrit-Change-Number: 787 Gerrit-PatchSet: 1 Gerrit-Owner: plaisthos Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Sun, 27 Oct 2024 09:41:32 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment --qw0pqtVFImc= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

Patch set 1:Code-Review -1=

Vi= ew Change

1 comment:

  • Patchset:

    • Patch Set #1:

      Okay, my client was not compiled the way I tho= ught - so with --enable-pkcs11, sending a long username to an unmodified se= rver yields

      `= ``
      Oct 27 10:30:59 gentoo tun-udp-p2mp-global-authpam[14201]: 194.97.140= .21:36736 TLS Error: Auth Username/Password was not provided by peer
      Oct= 27 10:30:59 gentoo tun-udp-p2mp-global-authpam[14201]: 194.97.140.21:36736= TLS Error: TLS handshake failed
      ``

      and with the patch it does a proper

      ```
      Oct 27 10:34:48 g= entoo tun-udp-p2mp-global-authpam[15712]: 194.97.140.21:60127 TLS INFO: Use= rname (-230) or password (14) long
      ...
      Oct 27 10:34:48 gentoo tun-ud= p-p2mp-global-authpam[15712]: 194.97.140.21:60127 TLS Error: Username (230)= or password (14) too long
      ```

      and the client receives

      ```
      2024-10-27 10:34:48 AUTH: Received c= ontrol message: AUTH_FAILED,Username or password is too long. Maximum lengt= h is 128 bytes
      ```

      (the "-" 230 is my doing, I removed the abs() call to mo= re clearly see what is being returned).

      Upgrading the patch to "-1" ;-) - I th= ink the "TLS INFO:" line clould either be removed (because it'= ;s duplicating the TLS Error: message later) or the `abs()` should go, and = the double space before ` long`)

To view, visit = change 78= 7. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I60f02c919767eb8f1b95253689a= 8233f5f68621d
Gerrit-Change-Number: 787
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Sun, 27 Oct 2024 09:41:32= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
--qw0pqtVFImc=--