Commit graph

60 commits

Author SHA1 Message Date
Petr Štetiar
c8447b8a38 treewide: fix security issues by bumping all packages using libwolfssl
As wolfSSL is having hard time maintaining ABI compatibility between
releases, we need to manually force rebuild of packages depending on
libwolfssl and thus force their upgrade. Otherwise due to the ABI
handling we would endup with possibly two libwolfssl libraries in the
system, including the patched libwolfssl-5.5.1, but still have
vulnerable services running using the vulnerable libwolfssl-5.4.0.

So in order to propagate update of libwolfssl to latest stable release
done in commit ec8fb542ec3e4 ("wolfssl: fix TLSv1.3 RCE in uhttpd by
using 5.5.1-stable (CVE-2022-39173)") which fixes several remotely
exploitable vulnerabilities, we need to bump PKG_RELEASE of all packages
using wolfSSL library.

Same bump has been done in buildroot in commit f1b7e1434f66 ("treewide:
fix security issues by bumping all packages using libwolfssl").

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 845d81ca09)
(cherry picked from commit f624e41f38)
2022-10-05 21:37:47 +02:00
Glenn Strauss
f3ab672f40 lighttpd: update to lighttpd 1.4.67 release hash
* update to lighttpd 1.4.67 release hash

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
(cherry picked from commit f750089d26)
2022-09-23 13:42:24 -07:00
Glenn Strauss
c7e8e074d0 lighttpd: update to lighttpd 1.4.66 release hash
* update to lighttpd 1.4.66 release hash

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
(cherry picked from commit 5eaf000c83)
2022-09-23 13:42:24 -07:00
Glenn Strauss
cde73af87b
lighttpd: update to lighttpd 1.4.65 release hash
* update to lighttpd 1.4.65 release hash
* specify lua version w/ -Dlua_version=lua to avoid patching meson.build

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
(cherry picked from commit db8205e545)
2022-06-13 09:20:04 +02:00
Glenn Strauss
48bf1a0d0d
lighttpd: update to lighttpd 1.4.64 release hash
remove long-deprecated modules

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
(cherry picked from commit 3badd76668)
2022-01-24 15:19:03 +01:00
Glenn Strauss
82339309f5
lighttpd: update to lighttpd 1.4.63 release hash
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
(cherry picked from commit 35dff58b3a)
2022-01-24 15:18:59 +01:00
Glenn Strauss
527f2b920f
lighttpd: update to lighttpd 1.4.62 release hash
depend on libpcre2 instead of libpcre

also remove patches incorporated upstream into lighttpd 1.4.62

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
(cherry picked from commit ddecac45c8)
2022-01-24 15:18:54 +01:00
Glenn Strauss
6b2535230a lighttpd: update to lighttpd 1.4.61 release hash
also remove patches incorporated upstream into lighttpd 1.4.61

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
(cherry picked from commit 9786df13a82e58e36d4730e209ea6849fa27a113)
2021-10-30 01:05:20 -07:00
Glenn Strauss
a740068f03 lighttpd: update to lighttpd 1.4.60 release hash
also remove patches incorporated upstream into lighttpd 1.4.60

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
(cherry picked from commit 07446a73ca)
2021-10-30 01:05:20 -07:00
Glenn Strauss
a3596cb8a7 lighttpd: patches from upstream
- ignore Content-Length from backend if 101 Switching Protocols
- close HTTP/2 connection after bad password
- skip cert chain build for self-issued certs
- meson zstd fix
- ls-hpack upstream update
- discard some HTTP/2 DATA frames received after response

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
(cherry picked from commit 52f85a0e1f)
2021-04-24 01:05:25 -07:00
Glenn Strauss
d614b4692c lighttpd: update to lighttpd 1.4.59 release hash
update to lighttpd 1.4.59 release hash
add new base module mod_ajp13

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
2021-02-03 01:59:04 -05:00
Glenn Strauss
a49dec8a5f lighttpd: update to lighttpd 1.4.58 release hash
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
2020-12-27 23:54:45 -05:00
Glenn Strauss
a6ca009422 lighttpd: update to lighttpd 1.4.57 release hash
* update to lighttpd 1.4.57 release hash
* remove patches incorporated upstream

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
2020-12-17 05:22:06 -05:00
Glenn Strauss
8f46b79c20 lighttpd: cleaner TLS dependency logic in Makefile
incorporate suggestion from cotequeiroz (Eneas U de Queiroz)
https://github.com/openwrt/packages/issues/14142#issuecomment-739583111

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
2020-12-17 05:22:06 -05:00
Glenn Strauss
cc3ab08fde lighttpd: wolfssl complex preproc logic for SNI
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
2020-12-06 23:07:03 -05:00
Glenn Strauss
b575b91553 lighttpd: wolfssl TLS compat module detection
x-ref:
  "[lighttpd] -mod-wolfssl fails (requires dependency on -mod-openssl?)"
  https://github.com/openwrt/packages/issues/14139

github: closes #14139

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
2020-12-05 11:37:19 -05:00
Glenn Strauss
6e8aa406f4 lighttpd: meson.build linker fix for TLS modules
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
2020-12-03 17:36:29 -05:00
Glenn Strauss
82221622af lighttpd: build and bugfix patches
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
2020-12-01 17:40:10 -05:00
Glenn Strauss
fa1464c3b9 lighttpd: update to lighttpd 1.4.56 release hash
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
2020-11-30 09:27:28 -05:00
Glenn Strauss
5fb8d5f463 lighttpd: revamp Makefile for lighttpd-1.4.56
* update upstream version to lighttpd-1.4.56
* depend on Nettle for MD5, SHA1, SHA256
* multiple TLS options: gnutls, mbedtls, nss, openssl, wolfssl
* new module mod_authn_dbi
* mod_authn_* depend on mod_auth
* mod_authn_file is included if mod_auth is selected in build
* mod_vhostdb_* depend on mod_vhostdb
* mod_deflate subsumes mod_compress
* remove from Makefile the include of nls.mk (no longer needed)

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
2020-11-30 09:27:28 -05:00
Jan Pavlinec
aa80a02340 lighttpd: add config for logrotate
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2020-10-29 15:18:54 +01:00
Jan Kardell
18967c9593 [lighttpd] Pull in mod-authn_file with mod-auth
If lighttpd loads mod-auth, it also automatically tries to load
mod-authn_file, and fails if it's not available. That is a compatibility
feature of lighttpd after the funtionality was split into modules.

Signed-off-by: Jan Kardell <jan.kardell@telliq.com>
2020-10-06 11:40:22 +02:00
Rosen Penev
602e3899b4
lighttpd: switch to meson
Simplifies the Makefile and allows faster compilation with Ninja.

Added patch to fix libmariadb dependency.

Added extra modules.

Speed Before:

time make package/lighttpd/compile -j 12
Executed in   47.91 secs   fish           external
   usr time   41.83 secs  384.00 micros   41.83 secs
   sys time   10.79 secs   37.00 micros   10.79 secs

Speed After:

time make package/lighttpd/compile -j 12
Executed in   19.67 secs   fish           external
   usr time   42.79 secs  377.00 micros   42.79 secs
   sys time    8.56 secs   37.00 micros    8.56 secs

Tested with fish shell.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-11 22:49:38 -07:00
Michal Hrusecky
8b5f98d989 lighttpd: Add subpackage containing authn_pam module
Add new subpackage containing pam authentication module. Shouldn't
affect dependencies and nothing changes, there is just one more module
enabled for people interested in it.

Signed-off-by: Michal Hrusecky <michal@hrusecky.net>
2020-06-22 17:22:39 +02:00
Josef Schlehofer
e5928b372d
lighttpd: update to version 1.4.55
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2020-02-22 21:54:45 +01:00
Josef Schlehofer
e06086c4ca
lighttpd: Makefile polishing
- Correct SPDX License Identifier
- Move MAINTAINER, SUBMENU to more appropriate place
- Use HTTPS in URL

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-09-01 15:40:35 +02:00
Josef Schlehofer
80c721c6ae
lighttpd: Update to version 1.4.54
Fixes CVE-2019-11072

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-09-01 15:39:24 +02:00
W. Michael Petullo
9cf412c0cb lighttpd: mark module configuration files
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2019-04-24 15:57:34 -04:00
Jan Pavlinec
2c5b1048ab
lighttpd: Add PKG_CPE_ID for proper CVE tracking
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-03-26 13:26:30 +01:00
W. Michael Petullo
3526adee17 lighttpd: update to 1.4.53
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2019-03-16 17:15:56 -04:00
David Yang
2ceeaeb5ad lighttpd: Add missing 'server.modules' in some config files
e.g. 20-auth.conf

Signed-off-by: David Yang <mmyangfl@gmail.com>
2019-02-01 16:00:06 +08:00
David Yang
3013490240 lighttpd: Remove recursive dependency in #7737
Signed-off-by: David Yang <mmyangfl@gmail.com>
2019-02-01 16:00:06 +08:00
David Yang
0bda3d9a83 lighttpd: Fix dependencies among auth mods
lighttpd-mod-auth has to be installed with lighttpd-mod-authn_file,
otherwise an error will appear even when auth.backend is not "plain".

  (plugin.c.229) dlopen() failed for: /usr/lib/lighttpd/mod_authn_file.so Error loading shared library /usr/lib/lighttpd/mod_authn_file.so: No such file or directory

Signed-off-by: David Yang <mmyangfl@gmail.com>
2019-01-11 21:03:32 +08:00
Rosen Penev
12378ef296 lighttpd: Fix Compilation with OpenSSL 1.1.x
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-11-09 18:53:32 -08:00
Sebastian Kemper
062bd423e5 lighttpd: include nls.mk for mysql plugin
libmariadb 10.2 needs to be linked in together with iconv.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-13 22:25:06 +02:00
Sebastian Kemper
b43e63b66d lighttpd: fix CONFIGURE_ARGS
With the current layout CONFIGURE_ARGS can end up like this:

--with-mysql --without-mysql

To avoid that join the ifneqs of the two mysql related plugins.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-13 22:22:56 +02:00
Xavier Franquet
425331f316 Lighttpd: Update to 1.4.49
At 1.4.48, base64 decode is broken when libc sees `char` as `unsigned char`

d4083effab

Signed-off-by: Xavier Franquet <xavier@franquet.es>
2018-05-23 15:38:53 +02:00
Vincent Riou
193ef9ab9c lighttpd: add mod-wstunnel
Exposes the mod-wstunnel plugin which implements websocket proxying over http

Signed-off-by: Vincent Riou <vincent@invizbox.com>
2018-03-23 14:54:11 +00:00
Michael Heimpold
9ca0961d49 lighttpd: fix PKG_CONFIG_DEPENDS (fixes #4210)
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2018-01-08 21:29:44 +01:00
Philip Prindeville
e13fbbad62 lighttpd: CONFIG_LIGHTTPD_SSL includes mod_openssl
If we're built with CONFIG_LIGHTTPD_SSL then mod_openssl.so should
be included into the base package. Fixes issue #5343.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2018-01-03 14:14:20 -07:00
Philip Prindeville
3d59ce6f50 lighttpd: update to 1.4.48
All of the bugs for which we had patches have been fixed upstream
in 1.4.46, so the patches can be dropped.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-12-16 12:49:22 -07:00
Etienne Champetier
4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Philip Prindeville
c3345a6d4a lighttpd: add 'reload' to init script to make logrotate-friendly
If lighttpd's scripts are rotated from under it while they're still open,
this will cause some weird things to happen.  Give it a heads up that
the logs have moved.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-07-10 16:11:19 -06:00
Rafał Miłecki
1359e072be lighttpd: backport more mod_cgi fixes queued for 1.4.46
The most important change is local redirects being disabled by default.
There is an option called cgi.local-redir that allows enabling this
optimization manually back if needed.

Local redirects were initially introduced in 1.4.40 but caused many
problems for *some* web services.

One of problems is breaking Post/Redirect/Get design pattern. With
redirects handled on server side there is no browser redirection making
it "lose" the POST data.

Another possible issue are HTML forms with action="". With CGI local
redirects browser may be sending form data to the wrong URL (the one
that was supposed to redirect the browser).

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2017-06-29 09:41:30 +02:00
Philip Prindeville
79f9f1a3ec lighttpd: use procd-based init.d script
This will allow procd to restart the service if it crashes or otherwise
exits.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-06-01 20:12:58 -06:00
Glenn Strauss
6e788aca0c lighttpd: add new modules, upd URLs, add restart()
(with feedback from @hnyman and patch additions from @MikePetullo)

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
2017-03-22 03:03:36 -04:00
Rafał Miłecki
f99c3b2510 lighttpd: fix regression in local-redir used with url.rewrite-once
This fixes upstream regression introduced in 1.4.40. It was reported &
debugged in https://redmine.lighttpd.net/issues/2793
This fix is queued for 1.4.46 in the personal/gstrauss/master upstream
branch.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2017-02-23 10:21:27 +01:00
Rafał Miłecki
a0cade8094 lighttpd: update to 1.4.45
Update to 1.4.42 introduced a problem with starting lighttpd as
OpenWrt/LEDE service. It was stopping whole init process at sth like:
  783 root      1124 S    {S50lighttpd} /bin/sh /etc/rc.common /etc/rc.d/S50lighttpd boot
  799 root      1164 S    /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf

It was hanging until getting random pool:
[  176.340007] random: nonblocking pool is initialized
and then immediately the rest of init process followed:
[  176.423475] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[  176.430754] jffs2_build_filesystem(): unlocking the mtd device... done.
[  176.437615] jffs2_build_filesystem(): erasing all blocks after the end marker... done.

This was fixed in 1.4.44, but bump directly to 1.4.45 while at it.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2017-02-20 17:46:07 -05:00
W. Michael Petullo
410e4ea3d1 lighttpd: add option to build mod_authn_file.so
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2016-11-25 11:11:47 -05:00
W. Michael Petullo
1215622476 lighttpd: update to 1.4.42
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2016-10-29 04:17:08 -04:00