From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aleksandr Vityazev Newsgroups: gmane.emacs.bugs Subject: bug#54624: 29.0.50; textsec and ipv6 addresses Date: Tue, 29 Mar 2022 12:36:00 +0000 Message-ID: <874k3hlyvj.fsf@posteo.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6089"; mail-complaints-to="usenet@ciao.gmane.io" To: 54624@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 29 14:37:31 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nZB6J-0001PI-2c for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Mar 2022 14:37:31 +0200 Original-Received: from localhost ([::1]:47458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZB6H-0006HE-L7 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Mar 2022 08:37:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZB5q-0006A9-5g for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2022 08:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38010) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZB5p-00045J-Te for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2022 08:37:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nZB5p-0002DF-RA for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2022 08:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Aleksandr Vityazev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Mar 2022 12:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54624 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16485573998475 (code B ref -1); Tue, 29 Mar 2022 12:37:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Mar 2022 12:36:39 +0000 Original-Received: from localhost ([127.0.0.1]:60140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZB5S-0002Cd-Tc for submit@debbugs.gnu.org; Tue, 29 Mar 2022 08:36:39 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:43876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZB5Q-0002CV-M4 for submit@debbugs.gnu.org; Tue, 29 Mar 2022 08:36:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZB5P-0005IJ-84 for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2022 08:36:36 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:48031) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZB5J-000409-GC for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2022 08:36:31 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1756A240029 for ; Tue, 29 Mar 2022 14:36:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1648557385; bh=Y+LU2S0xGNAuPMbzCta8JcKQ/Htv9XMr6NU+hcJb+AA=; h=From:To:Subject:Date:From; b=G/+xfrW/7LEtgic5VRwE+h/Z7ZJgJM+e4yddPv1p1p+Ce675+maui3o/LUmEgtxyW o46g+FMqGWyyI/HrElSsuUvaL0shTAz07UOFcTFPay2+09SKjlfdrKVl60vC5HD60o GOTtjif+QpEqfheho8p6tBMgu9f72n+QDlTAfWPvYVOkEKHfDyPsSB2UT+BGYe7mbN cBfp/5syNyeewAWKFgjR5fbQ75pxz3XUpyDxvBXiGZx9iygeXT9mqOA2LyuIYqPksd Q6McpZmBMCE6UrsRaZnbU1HNdR3mIDpNKzxuMe2kSV6V34yJfYiz8EAtCc6xp7qG8i MNDeE+AYyheoA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KSTZc1Ygyz9rxG for ; Tue, 29 Mar 2022 14:36:24 +0200 (CEST) Received-SPF: pass client-ip=185.67.36.65; envelope-from=avityazev@posteo.org; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:229051 Archived-At: Hi, in small networks people sometimes use not domain names, but only ipv6 addresses. If (setq textsec-check t), wich is also the default, all such links are displayed as suspicious. ipv6 addresses contain colons and sometimes left/right square brackets. Example: #+begin_src elisp (textsec-domain-suspicious-p "21a:34aa:c782:3ad2:1bf8:73f8:141:66e8") => "Disallowed character: : (#x3a, COLON)" (textsec-domain-suspicious-p "[21a:34aa:c782:3ad2:1bf8:73f8:141:66e8]") => "Disallowed character: [ (#x5b, LEFT SQUARE BRACKET)" #+end_src I think it is not entirely correct. It may be possible to add additional validation for such addresses in the textsec-domain-suspicious-p function. WDYT? -- Best regards, Aleksandr Vityazev