From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: REPL Server: Guard against HTTP inter-protocol exploitation attacks. Date: Wed, 12 Oct 2016 14:23:58 +0200 Message-ID: <87r37lpxgh.fsf@gnu.org> References: <20161011133745.2333.41505@vcs.savannah.gnu.org> <20161011133746.47A04220168@vcs.savannah.gnu.org> <87r37mvuym.fsf_-_@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1476275093 31757 195.159.176.226 (12 Oct 2016 12:24:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2016 12:24:53 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: guile-devel@gnu.org To: Alex Kost Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Oct 12 14:24:49 2016 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1buIa9-0004hh-0z for guile-devel@m.gmane.org; Wed, 12 Oct 2016 14:24:25 +0200 Original-Received: from localhost ([::1]:33217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buIa7-00071Y-NU for guile-devel@m.gmane.org; Wed, 12 Oct 2016 08:24:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buIZq-00071P-QI for guile-devel@gnu.org; Wed, 12 Oct 2016 08:24:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buIZn-0001nz-Kb for guile-devel@gnu.org; Wed, 12 Oct 2016 08:24:06 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buIZn-0001na-II; Wed, 12 Oct 2016 08:24:03 -0400 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]:48500 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1buIZl-0007Qw-Dt; Wed, 12 Oct 2016 08:24:02 -0400 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 21 =?utf-8?Q?Vend=C3=A9miaire?= an 225 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <87r37mvuym.fsf_-_@gmail.com> (Alex Kost's message of "Wed, 12 Oct 2016 11:21:21 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:18716 Archived-At: Alex Kost skribis: > Hello, I've noticed an insignificant typo in commit > 08c021916dbd3a235a9f9cc33df4c418c0724e03 (in the fancy warning message). > > [...] >> + ;; Print a report to STDERR (POSIX file descriptor 2). >> + ;; XXX Can we do better here? >> + (call-with-port (dup->port 2 "w") >> + (cut format <> " >> +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ >> +@@ POSSIBLE BREAK-IN ATTEMPT ON THE REPL SERVER @@ >> +@@ BY AN HTTP INTER-PROTOCOL EXPLOITATION ATTACK. See: @@ >> +@@ @@ >> +@@ Possible HTTP request received: ~S > ^^ > Missing trailing "@@" in the above line. As discussed on IRC, I think this is intended: we don=E2=80=99t know the le= ngth of the string being printed by ~S. Ludo=E2=80=99.