Article View: linux.debian.bugs.dist
Article #3391Bug#1153131: shellinabox: directory traversal regression in --static-file handler (externalfile.c)
From: Andrew Bower
Date: Fri, 06 Nov 2026 01:30
Date: Fri, 06 Nov 2026 01:30
22 lines
3542 bytes
3542 bytes
On Fri, Nov 06, 2026 at 03:17:01AM +0200, Alexandru-Ionut Jipa wrote: > I rebuilt from the salsa tree at 5ab6bdf with both patches applied and > re-ran the original request plus variants: /sfx/sub/../../secret-outside.txt, > /sfx/sub//../../..., /sfx/sub/./../../..., /sfx/sub/%2e%2e/%2e%2e/... and > /sfx/.hidden all return 404 now, while /sfx/marker.txt still returns 200. > The strchrnul() + while (*ptr++) change looks right to me. > > On the upstream forge: github.com/shellinabox/shellinabox has had no > commits since January 2019 and its open issues from 2020 have no > maintainer response, so I have nowhere useful to report this upstream. > If you would still like a record there, I can open an issue pointing at > #1153131 and your patch. They are clearly not actively maintaining it but they did acceed to a request to cut a tag corresponding to the 2.21 release recently (which was until last year, untagged), so there is at least someone there and other downstreams may pick it up! The reason I suggest you post is that you have done all the research so are probably best placed to but by all means mention that we have applied a patch to bolster the case. Your patch may be more appropriate upstream, although marginally larger, because it is not glibc-specific.
Technical Details
Message-ID:
<NWgWd-a5JE-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NWfx7-a4Vm-5@gated-at.bofh.it> <NWfx7-a4Vm-3@gated-at.bofh.it> <NWfx7-a4Vm-5@gated-at.bofh.it> <NWgWd-a5JE-3@gated-at.bofh.it> <NWfx7-a4Vm-5@gated-at.bofh.it> <NWgWd-a5JE-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Andrew Bower <andrew@bower.uk> Newsgroups: linux.debian.bugs.dist Subject: Bug#1153131: shellinabox: directory traversal regression in --static-file handler (externalfile.c) Date: Fri, 06 Nov 2026 02:30:01 +0100 Message-ID: <NWgWd-a5JE-1@gated-at.bofh.it> References: <NWfx7-a4Vm-5@gated-at.bofh.it> <NWfx7-a4Vm-3@gated-at.bofh.it> <NWfx7-a4Vm-5@gated-at.bofh.it> <NWgWd-a5JE-3@gated-at.bofh.it> <NWfx7-a4Vm-5@gated-at.bofh.it> <NWgWd-a5JE-3@gated-at.bofh.it> X-Original-To: Alexandru-Ionut Jipa <jipaionut@gmail.com>, 1153131@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Nov 6 01:25:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: Andrew Bower <andrew@bower.uk>, 1153131@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: team+salvage@tracker.debian.org X-Debian-Pr-Message: followup 1153131 X-Debian-Pr-Package: shellinabox X-Debian-Pr-Keywords: security upstream X-Debian-Pr-Source: shellinabox MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/2.4.1 (2026-07-04) X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000898 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 22 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 6 Nov 2026 01:24:03 +0000 X-Original-Message-ID: <au0sM0BJPmgiHIgu@arden.ab8.net> X-Original-References: <CAPrcYpig+gMVAKWX6FxRQkBQWt=VKZcyuwo9ZnRb5iejWAXT8Q@mail.gmail.com> <au0XY9jeUaZkUrGE@arden.ab8.net> <CAPrcYpig+gMVAKWX6FxRQkBQWt=VKZcyuwo9ZnRb5iejWAXT8Q@mail.gmail.com> <CAPrcYpjtZh-OtavVNkGYj6bWOFnSa8-k5GESJfKWL7z5N4ninw@mail.gmail.com> <CAPrcYpig+gMVAKWX6FxRQkBQWt=VKZcyuwo9ZnRb5iejWAXT8Q@mail.gmail.com> <CAPrcYpjtZh-OtavVNkGYj6bWOFnSa8-k5GESJfKWL7z5N4ninw@mail.gmail.com>