Skip to contentSkip to conversation

package/shellinabox: remove package

PATCH In review Yegor Yefremov 2 participants 3 messages Nov 19 – Nov 20

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/shellinabox: remove package

shellinabox is dead upstream: its last release, 2.20, dates from 2016 and its last commit from January 2019. It only keeps building in Buildroot thanks to local fixes, and as a web server exposing a terminal, it is not something to keep shipping unmaintained.

Remove the package, as suggested by Peter [1], and add a legacy option for it.

[1] https://patchwork.buildroot.org/project/buildroot/patch/[email protected]/

Assisted-by Claude:claude-opus-5-5
---
 .checkpackageignore                           |  1 -
 Config.in.legacy                              |  7 +++
 DEVELOPERS                                    |  3 --
 package/Config.in                             |  1 -
 ...e-disable-always-building-statically.patch | 26 ----------
 ...9-fix-for-broken-multipart-form-data.patch | 28 -----------
 ...ck-for-utmp.h-even-with-disable-utmp.patch | 49 -------------------
 package/shellinabox/Config.in                 | 18 -------
 package/shellinabox/shellinabox.hash          |  4 --
 package/shellinabox/shellinabox.mk            | 33 -------------
 10 files changed, 7 insertions(+), 163 deletions(-)
 delete mode 100644 package/shellinabox/0001-Makefile-disable-always-building-statically.patch
 delete mode 100644 package/shellinabox/0002-CVE-2018-16789-fix-for-broken-multipart-form-data.patch
 delete mode 100644 package/shellinabox/0003-configure.ac-check-for-utmp.h-even-with-disable-utmp.patch
 delete mode 100644 package/shellinabox/Config.in
 delete mode 100644 package/shellinabox/shellinabox.hash
 delete mode 100644 package/shellinabox/shellinabox.mk
.checkpackageignore +0 -1
index 5cd8e20bce..9b38521760 100644
@@ -797,7 +797,6 @@ package/setools/0001-Do-not-export-use-setools.InfoFlowAnalysis-and-setoo.patch
 package/setserial/0001-build-system-fix.patch lib_patch.Upstream
 package/shairport-sync/S99shairport-sync Shellcheck lib_sysv.Indent lib_sysv.Variables
 package/shared-mime-info/0001-Remove-incorrect-dependency-from-install-data-hook.patch lib_patch.Upstream
-package/shellinabox/0001-Makefile-disable-always-building-statically.patch lib_patch.Upstream
 package/skeleton-init-systemd/fakeroot_tmpfiles.sh Shellcheck
 package/slang/0001-slsh-libs.patch lib_patch.Upstream
 package/smcroute/S41smcroute NotExecutable lib_sysv.Indent lib_sysv.Variables
Config.in.legacy +7 -0
index 8efc476888..aab7a95cc3 100644
@@ -146,6 +146,13 @@ endif
 
 comment "Legacy options removed in 2026.11"
 
+config BR2_PACKAGE_SHELLINABOX
+	bool "shellinabox has been removed"
+	select BR2_LEGACY
+	help
+	  shellinabox is no longer maintained upstream (last release
+	  in 2016, last commit in 2019) and has been removed.
+
 config BR2_PACKAGE_PRBOOM
 	bool "prboom has been removed"
 	select BR2_LEGACY
DEVELOPERS +0 -3
index 1d2960f9b3..edea0e3803 100644
@@ -2665,9 +2665,6 @@ F:	package/poppler/
 F:	package/qpdf/
 F:	package/openjpeg/
 
-N:	Olivier Singla <[email protected]>
-F:	package/shellinabox/
-
 N:	Parnell Springmeyer <[email protected]>
 F:	package/scrypt/
 
package/Config.in +0 -1
index 49659b007e..b448f4525e 100644
@@ -2647,7 +2647,6 @@ endif
 	source "package/ser2net/Config.in"
 	source "package/shadowsocks-libev/Config.in"
 	source "package/shairport-sync/Config.in"
-	source "package/shellinabox/Config.in"
 	source "package/smcroute/Config.in"
 	source "package/sngrep/Config.in"
 	source "package/snmpclitools/Config.in"
package/shellinabox/0001-Makefile-disable-always-building-statically.patch deleted +0 -26
deleted file mode 100644
index 2f2097e099..0000000000
@@ -1,26 +0,0 @@
-From c060e6f06a81ffa400266a6d0bfc58511265a16f Mon Sep 17 00:00:00 2001
-From: Olivier Singla <[email protected]>
-Date: Thu, 4 Aug 2016 21:23:41 +0200
-Subject: [PATCH] Makefile: disable always building statically
-
-Signed-off-by: Olivier Singla <[email protected]>
----
- Makefile.am | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/Makefile.am b/Makefile.am
-index 7b8e7ab..5c4c71e 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -126,7 +126,7 @@ BUILT_SOURCES        = shellinabox/beep.h                                     \
- 
- shellinaboxd_LDADD   = liblogging.la                                          \
-                        libhttp.la
--shellinaboxd_LDFLAGS = -static
-+shellinaboxd_LDFLAGS =
- ## Added this for compatibility with older versions of autoconf/automake
- docdir               = ${datadir}/doc/${PACKAGE}
- 
--- 
-2.7.4
-
package/shellinabox/0002-CVE-2018-16789-fix-for-broken-multipart-form-data.patch deleted +0 -28
deleted file mode 100644
index 5067833056..0000000000
@@ -1,28 +0,0 @@
-From 7f47efe1717c381f86566fabe0b1ced8cb98fe8f Mon Sep 17 00:00:00 2001
-From: irsl <[email protected]>
-Date: Fri, 26 Oct 2018 11:51:15 +0200
-Subject: [PATCH] fix for broken multipart/form-data
-
-Malformed multipart/form-data payload results in infinite loop and thus denial of service
-
-CVE: CVE-2018-16789
-Upstream: https://github.com/shellinabox/shellinabox/pull/446
-Signed-off-by: Fabrice Fontaine <[email protected]>
----
- libhttp/url.c | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/libhttp/url.c b/libhttp/url.c
-index ed29475..4177871 100644
---- a/libhttp/url.c
-+++ b/libhttp/url.c
-@@ -312,6 +312,9 @@ static void urlParsePostBody(struct URL *url,
-               }
-             }
-           }
-+        } else {
-+           warn("[http] broken multipart/form-data!");
-+           break;
-         }
-       }
-       if (lastPart) {
package/shellinabox/0003-configure.ac-check-for-utmp.h-even-with-disable-utmp.patch deleted +0 -49

49 lines not on this page · raw message

package/shellinabox/Config.in deleted +0 -18
deleted file mode 100644
index 63a298dcae..0000000000
@@ -1,18 +0,0 @@
-config BR2_PACKAGE_SHELLINABOX
-	bool "shellinabox"
-	depends on BR2_USE_MMU # fork()
-	depends on !BR2_STATIC_LIBS # dlfcn.h
-	select BR2_PACKAGE_OPENSSL
-	select BR2_PACKAGE_ZLIB
-	help
-	  Shell In A Box implements a web server that can export
-	  arbitrary command line tools to a web based terminal
-	  emulator. This emulator is accessible to any JavaScript and
-	  CSS enabled web browser and does not require any additional
-	  browser plugins.
-
-	  https://github.com/shellinabox/shellinabox
-
-comment "shellinabox needs a toolchain w/ dynamic library"
-	depends on BR2_USE_MMU
-	depends on BR2_STATIC_LIBS
package/shellinabox/shellinabox.hash deleted +0 -4
deleted file mode 100644
index 6bbaf73c16..0000000000
@@ -1,4 +0,0 @@
-# Locally calculated
-sha256  27a5ec6c3439f87aee238c47cc56e7357a6249e5ca9ed0f044f0057ef389d81e  shellinabox-2.20.tar.gz
-sha256  04ef60ab9b83cde6f0862ea18474454477efb34c52ebce1f8d8260a398a39362  COPYING
-sha256  ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6  GPL-2
package/shellinabox/shellinabox.mk deleted +0 -33
deleted file mode 100644
index 725b8d9c52..0000000000
@@ -1,33 +0,0 @@
-################################################################################
-#
-# shellinabox
-#
-################################################################################
-
-SHELLINABOX_VERSION = 2.20
-SHELLINABOX_SITE = $(call github,shellinabox,shellinabox,v$(SHELLINABOX_VERSION))
-SHELLINABOX_LICENSE = GPL-2.0 with OpenSSL exception
-SHELLINABOX_LICENSE_FILES = COPYING GPL-2
-SHELLINABOX_CPE_ID_VALID = YES
-
-# 0002-CVE-2018-16789-fix-for-broken-multipart-form-data.patch
-SHELLINABOX_IGNORE_CVES += CVE-2018-16789
-
-# Fetching from Github, and patching Makefile.am, so we need to autoreconf
-SHELLINABOX_AUTORECONF = YES
-
-# The OpenSSL support is supposed to be optional, but in practice,
-# with OpenSSL disabled, it fails to build. See
-# https://github.com/shellinabox/shellinabox/issues/385.
-SHELLINABOX_DEPENDENCIES = zlib openssl
-SHELLINABOX_CONF_OPTS = \
-	--disable-runtime-loading \
-	--enable-ssl
-
-# musl's implementation of utmpx is a dummy one, and some aspects of
-# it cause build failures in shellinabox
-ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
-SHELLINABOX_CONF_OPTS += --disable-utmp
-endif
-
-$(eval $(autotools-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi Yegor,

let's give Olivier a bit of time to reply. But I also have a few comments. :)

Quoted 2 lines · Yegor Yefremov

shellinabox is dead upstream: its last release, 2.20, dates from 2016 and its last commit from January 2019.

It's a bit more complicated and confusing than that. https://github.com/shellinabox/shellinabox/releases/tag/v2.21 was published Sep 2025. But it's actually tagging a commit from 2019 that also just pushed code that got released in debian in 2018 already. *sigh* (some context here: https://github.com/shellinabox/shellinabox/commit/4f0ecc31ac6f985e0dd3f5a52cbfc0e9251f6361#commitcomment-32295280)

Buildroot carries the 2.20 release + the CVE fix. (but missing the selinux policy additions... but those wouldn't be usable in buildroot as-is anyway).

And also debian apparently carries a new security fix for this that got never merged upstream: https://github.com/shellinabox/shellinabox/pull/540

Quoted 4 lines

It only keeps building in Buildroot thanks to local fixes,

and as a web server exposing a
terminal, it is not something to keep shipping unmaintained.

This part here is not really relevant and as it stand also unsubstantiated. (It also reads like the typical LLM text output, it sounds helpful but doesn't actually say anything useful.) So either specifically mention the open security issue or drop this part.

Quoted 3 lines

Remove the package, as suggested by Peter [1], and add a legacy option for it.

This removal (if it happens, let's give Olivier a bit of time to respond) will be applied to next (or master after the next -> master merge). So the legacy handling needs to be for "removed in 2027.02".

We should probably also pick up the security fix for 2026.11 and older.

If you resend this, can you base it on next and clarify the confusing release history? I've marked it as "Changes requested" for now.

Quoted 7 lines

[1] https://patchwork.buildroot.org/project/buildroot/patch/[email protected]/

Assisted-by Claude:claude-opus-5-5

---

[...]

Best,
Marcus

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw

Hi Marcus,

Quoted 38 lines · Marcus Hoffmann

Hi Yegor,

let's give Olivier a bit of time to reply. But I also have a few comments. :)

Quoted 2 lines · Yegor Yefremov

shellinabox is dead upstream: its last release, 2.20, dates from 2016 and its last commit from January 2019.

It's a bit more complicated and confusing than that.
https://github.com/shellinabox/shellinabox/releases/tag/v2.21 was published Sep 2025. But it's actually tagging a commit from 2019 that also just pushed code that got released in debian in 2018 already. *sigh* (some context here:
https://github.com/shellinabox/shellinabox/commit/4f0ecc31ac6f985e0dd3f5a52cbfc0e9251f6361#commitcomment-32295280)

Buildroot carries the 2.20 release + the CVE fix. (but missing the selinux policy additions... but those wouldn't be usable in buildroot as-is anyway).

And also debian apparently carries a new security fix for this that got never merged upstream: https://github.com/shellinabox/shellinabox/pull/540

Quoted 4 lines

It only keeps building in Buildroot thanks to local fixes,

and as a web server exposing a
terminal, it is not something to keep shipping unmaintained.

This part here is not really relevant and as it stand also unsubstantiated. (It also reads like the typical LLM text output, it sounds helpful but doesn't actually say anything useful.) So either specifically mention the open security issue or drop this part.

Quoted 3 lines

Remove the package, as suggested by Peter [1], and add a legacy option for it.

Quoted 8 lines

This removal (if it happens, let's give Olivier a bit of time to respond) will be applied to next (or master after the next -> master merge). So the legacy handling needs to be for "removed in 2027.02".

We should probably also pick up the security fix for 2026.11 and older.

If you resend this, can you base it on next and clarify the confusing release history? I've marked it as "Changes requested" for now.

The whole story looks really complicated. Let's wait for a few weeks. According to OpenHub, Olivier wasn't really active since 2020:
https://openhub.net/committers/984885

I'll then apply the required changes.

Yegor

Quoted 8 lines
Quoted 7 lines

[1] https://patchwork.buildroot.org/project/buildroot/patch/[email protected]/

Assisted-by Claude:claude-opus-5-5

---

Quoted 5 lines

[...]

Best,
Marcus

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot