Skip to content

Commit 671ca00

Browse files
authored
Merge pull request #87 from essentialkaos/develop
Version 1.17.3
2 parents 744ec6a + ac1b6e5 commit 671ca00

File tree

3 files changed

+82
-32
lines changed

3 files changed

+82
-32
lines changed

SECURITY.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Security Policies and Procedures
2+
3+
This document outlines security procedures and general policies for all
4+
ESSENTIAL KAOS projects.
5+
6+
* [Reporting a Bug](#reporting-a-bug)
7+
* [Disclosure Policy](#disclosure-policy)
8+
9+
## Reporting a Bug
10+
11+
The ESSENTIAL KAOS team and community take all security bugs in our projects
12+
very seriously. Thank you for improving the security of our project. We
13+
appreciate your efforts and responsible disclosure and will make every effort
14+
to acknowledge your contributions.
15+
16+
Report security bugs by emailing our security team at security@essentialkaos.com.
17+
18+
The security team will acknowledge your email within 48 hours and will send a
19+
more detailed response within 48 hours, indicating the next steps in handling
20+
your report. After the initial reply to your report, the security team will
21+
endeavor to keep you informed of the progress towards a fix and full
22+
announcement, and may ask for additional information or guidance.
23+
24+
Report security bugs in third-party dependencies to the person or team
25+
maintaining the dependencies.
26+
27+
## Disclosure Policy
28+
29+
When the security team receives a security bug report, they will assign it to a
30+
primary handler. This person will coordinate the fix and release process,
31+
involving the following steps:
32+
33+
* Confirm the problem and determine the affected versions;
34+
* Audit code to find any similar potential problems;
35+
* Prepare fixes for all releases still under maintenance. These fixes will be
36+
released as fast as possible.

SOURCES/webkaos.patch

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
diff -urN nginx-1.17.2-orig/auto/lib/openssl/make nginx-1.17.2/auto/lib/openssl/make
2-
--- nginx-1.17.2-orig/auto/lib/openssl/make 2019-07-23 15:01:47.000000000 +0300
3-
+++ nginx-1.17.2/auto/lib/openssl/make 2019-07-24 00:04:56.852681937 +0300
1+
diff -urN nginx-1.17.3-orig/auto/lib/openssl/make nginx-1.17.3/auto/lib/openssl/make
2+
--- nginx-1.17.3-orig/auto/lib/openssl/make 2019-08-13 15:45:57.000000000 +0300
3+
+++ nginx-1.17.3/auto/lib/openssl/make 2019-08-14 00:37:59.958675974 +0300
44
@@ -45,18 +45,18 @@
55
/*) ngx_prefix="$OPENSSL/.openssl" ;;
66
*) ngx_prefix="$PWD/$OPENSSL/.openssl" ;;
@@ -24,9 +24,9 @@ diff -urN nginx-1.17.2-orig/auto/lib/openssl/make nginx-1.17.2/auto/lib/openssl/
2424
;;
2525

2626
esac
27-
diff -urN nginx-1.17.2-orig/src/core/nginx.c nginx-1.17.2/src/core/nginx.c
28-
--- nginx-1.17.2-orig/src/core/nginx.c 2019-07-23 15:01:47.000000000 +0300
29-
+++ nginx-1.17.2/src/core/nginx.c 2019-07-24 00:04:56.859681879 +0300
27+
diff -urN nginx-1.17.3-orig/src/core/nginx.c nginx-1.17.3/src/core/nginx.c
28+
--- nginx-1.17.3-orig/src/core/nginx.c 2019-08-13 15:45:57.000000000 +0300
29+
+++ nginx-1.17.3/src/core/nginx.c 2019-08-14 00:37:59.964675924 +0300
3030
@@ -389,13 +389,13 @@
3131
static void
3232
ngx_show_version_info(void)
@@ -45,13 +45,13 @@ diff -urN nginx-1.17.2-orig/src/core/nginx.c nginx-1.17.2/src/core/nginx.c
4545
"Options:" NGX_LINEFEED
4646
" -?,-h : this help" NGX_LINEFEED
4747
" -v : show version and exit" NGX_LINEFEED
48-
diff -urN nginx-1.17.2-orig/src/core/nginx.h nginx-1.17.2/src/core/nginx.h
49-
--- nginx-1.17.2-orig/src/core/nginx.h 2019-07-23 15:01:47.000000000 +0300
50-
+++ nginx-1.17.2/src/core/nginx.h 2019-07-24 00:06:52.000000000 +0300
48+
diff -urN nginx-1.17.3-orig/src/core/nginx.h nginx-1.17.3/src/core/nginx.h
49+
--- nginx-1.17.3-orig/src/core/nginx.h 2019-08-13 15:45:57.000000000 +0300
50+
+++ nginx-1.17.3/src/core/nginx.h 2019-08-14 00:40:25.000000000 +0300
5151
@@ -11,7 +11,7 @@
5252

53-
#define nginx_version 1017002
54-
#define NGINX_VERSION "1.17.2"
53+
#define nginx_version 1017003
54+
#define NGINX_VERSION "1.17.3"
5555
-#define NGINX_VER "nginx/" NGINX_VERSION
5656
+#define NGINX_VER "webkaos/" NGINX_VERSION
5757

@@ -66,9 +66,9 @@ diff -urN nginx-1.17.2-orig/src/core/nginx.h nginx-1.17.2/src/core/nginx.h
6666
#define NGX_OLDPID_EXT ".oldbin"
6767

6868

69-
diff -urN nginx-1.17.2-orig/src/core/ngx_log.c nginx-1.17.2/src/core/ngx_log.c
70-
--- nginx-1.17.2-orig/src/core/ngx_log.c 2019-07-23 15:01:47.000000000 +0300
71-
+++ nginx-1.17.2/src/core/ngx_log.c 2019-07-24 00:04:56.869681797 +0300
69+
diff -urN nginx-1.17.3-orig/src/core/ngx_log.c nginx-1.17.3/src/core/ngx_log.c
70+
--- nginx-1.17.3-orig/src/core/ngx_log.c 2019-08-13 15:45:57.000000000 +0300
71+
+++ nginx-1.17.3/src/core/ngx_log.c 2019-08-14 00:37:59.974675841 +0300
7272
@@ -202,9 +202,9 @@
7373
return;
7474
}
@@ -99,9 +99,9 @@ diff -urN nginx-1.17.2-orig/src/core/ngx_log.c nginx-1.17.2/src/core/ngx_log.c
9999
return NGX_CONF_ERROR;
100100
#endif
101101

102-
diff -urN nginx-1.17.2-orig/src/http/modules/ngx_http_autoindex_module.c nginx-1.17.2/src/http/modules/ngx_http_autoindex_module.c
103-
--- nginx-1.17.2-orig/src/http/modules/ngx_http_autoindex_module.c 2019-07-23 15:01:47.000000000 +0300
104-
+++ nginx-1.17.2/src/http/modules/ngx_http_autoindex_module.c 2019-07-24 00:04:56.875681748 +0300
102+
diff -urN nginx-1.17.3-orig/src/http/modules/ngx_http_autoindex_module.c nginx-1.17.3/src/http/modules/ngx_http_autoindex_module.c
103+
--- nginx-1.17.3-orig/src/http/modules/ngx_http_autoindex_module.c 2019-08-13 15:45:57.000000000 +0300
104+
+++ nginx-1.17.3/src/http/modules/ngx_http_autoindex_module.c 2019-08-14 00:37:59.980675792 +0300
105105
@@ -449,9 +449,11 @@
106106
;
107107

@@ -177,9 +177,9 @@ diff -urN nginx-1.17.2-orig/src/http/modules/ngx_http_autoindex_module.c nginx-1
177177
tm.ngx_tm_mday,
178178
months[tm.ngx_tm_mon - 1],
179179
tm.ngx_tm_year,
180-
diff -urN nginx-1.17.2-orig/src/http/ngx_http_header_filter_module.c nginx-1.17.2/src/http/ngx_http_header_filter_module.c
181-
--- nginx-1.17.2-orig/src/http/ngx_http_header_filter_module.c 2019-07-23 15:01:47.000000000 +0300
182-
+++ nginx-1.17.2/src/http/ngx_http_header_filter_module.c 2019-07-24 00:04:56.881681698 +0300
180+
diff -urN nginx-1.17.3-orig/src/http/ngx_http_header_filter_module.c nginx-1.17.3/src/http/ngx_http_header_filter_module.c
181+
--- nginx-1.17.3-orig/src/http/ngx_http_header_filter_module.c 2019-08-13 15:45:57.000000000 +0300
182+
+++ nginx-1.17.3/src/http/ngx_http_header_filter_module.c 2019-08-14 00:37:59.985675750 +0300
183183
@@ -46,7 +46,7 @@
184184
};
185185

@@ -230,9 +230,9 @@ diff -urN nginx-1.17.2-orig/src/http/ngx_http_header_filter_module.c nginx-1.17.
230230
#define NGX_HTTP_OFF_5XX (NGX_HTTP_LAST_4XX - 400 + NGX_HTTP_OFF_4XX)
231231

232232
ngx_string("500 Internal Server Error"),
233-
diff -urN nginx-1.17.2-orig/src/http/ngx_http_special_response.c nginx-1.17.2/src/http/ngx_http_special_response.c
234-
--- nginx-1.17.2-orig/src/http/ngx_http_special_response.c 2019-07-23 15:01:47.000000000 +0300
235-
+++ nginx-1.17.2/src/http/ngx_http_special_response.c 2019-07-24 00:04:56.887681649 +0300
233+
diff -urN nginx-1.17.3-orig/src/http/ngx_http_special_response.c nginx-1.17.3/src/http/ngx_http_special_response.c
234+
--- nginx-1.17.3-orig/src/http/ngx_http_special_response.c 2019-08-13 15:45:57.000000000 +0300
235+
+++ nginx-1.17.3/src/http/ngx_http_special_response.c 2019-08-14 00:37:59.991675700 +0300
236236
@@ -19,21 +19,21 @@
237237

238238

@@ -705,9 +705,9 @@ diff -urN nginx-1.17.2-orig/src/http/ngx_http_special_response.c nginx-1.17.2/sr
705705
#define NGX_HTTP_OFF_5XX (NGX_HTTP_LAST_4XX - 400 + NGX_HTTP_OFF_4XX)
706706

707707
ngx_string(ngx_http_error_494_page), /* 494, request header too large */
708-
diff -urN nginx-1.17.2-orig/src/http/v2/ngx_http_v2_filter_module.c nginx-1.17.2/src/http/v2/ngx_http_v2_filter_module.c
709-
--- nginx-1.17.2-orig/src/http/v2/ngx_http_v2_filter_module.c 2019-07-23 15:01:47.000000000 +0300
710-
+++ nginx-1.17.2/src/http/v2/ngx_http_v2_filter_module.c 2019-07-24 00:08:07.000000000 +0300
708+
diff -urN nginx-1.17.3-orig/src/http/v2/ngx_http_v2_filter_module.c nginx-1.17.3/src/http/v2/ngx_http_v2_filter_module.c
709+
--- nginx-1.17.3-orig/src/http/v2/ngx_http_v2_filter_module.c 2019-08-13 15:45:57.000000000 +0300
710+
+++ nginx-1.17.3/src/http/v2/ngx_http_v2_filter_module.c 2019-08-14 00:39:56.000000000 +0300
711711
@@ -148,7 +148,7 @@
712712
ngx_http_core_srv_conf_t *cscf;
713713
u_char addr[NGX_SOCKADDR_STRLEN];
@@ -726,9 +726,9 @@ diff -urN nginx-1.17.2-orig/src/http/v2/ngx_http_v2_filter_module.c nginx-1.17.2
726726
}
727727

728728
*pos++ = ngx_http_v2_inc_indexed(NGX_HTTP_V2_SERVER_INDEX);
729-
diff -urN nginx-1.17.2-orig/src/os/unix/ngx_setproctitle.c nginx-1.17.2/src/os/unix/ngx_setproctitle.c
730-
--- nginx-1.17.2-orig/src/os/unix/ngx_setproctitle.c 2019-07-23 15:01:47.000000000 +0300
731-
+++ nginx-1.17.2/src/os/unix/ngx_setproctitle.c 2019-07-24 00:04:56.897681567 +0300
729+
diff -urN nginx-1.17.3-orig/src/os/unix/ngx_setproctitle.c nginx-1.17.3/src/os/unix/ngx_setproctitle.c
730+
--- nginx-1.17.3-orig/src/os/unix/ngx_setproctitle.c 2019-08-13 15:45:57.000000000 +0300
731+
+++ nginx-1.17.3/src/os/unix/ngx_setproctitle.c 2019-08-14 00:38:00.001675618 +0300
732732
@@ -89,7 +89,7 @@
733733

734734
ngx_os_argv[1] = NULL;

webkaos.spec

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
################################################################################
22

3+
%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd
4+
5+
################################################################################
6+
37
%define _posixroot /
48
%define _root /root
59
%define _bin /bin
@@ -44,7 +48,7 @@
4448
%define service_name %{name}
4549
%define service_home %{_cachedir}/%{service_name}
4650

47-
%define boring_commit ee4888c5ecde876d7a5609d1d7b9af8ce8f50338
51+
%define boring_commit eca48e52edc684db1433c2cfbca02bb9468d81af
4852
%define lua_module_ver 0.10.15
4953
%define mh_module_ver 0.33
5054
%define pcre_ver 8.43
@@ -55,8 +59,8 @@
5559

5660
Summary: Superb high performance web server
5761
Name: webkaos
58-
Version: 1.17.2
59-
Release: 1%{?dist}
62+
Version: 1.17.3
63+
Release: 0%{?dist}
6064
License: 2-clause BSD-like license
6165
Group: System Environment/Daemons
6266
URL: https://github.com/essentialkaos/webkaos
@@ -83,6 +87,8 @@ Source53: https://ftp.pcre.org/pub/pcre/pcre-%{pcre_ver}.tar.gz
8387
Source54: https://zlib.net/zlib-%{zlib_ver}.tar.gz
8488
Source55: https://github.com/openresty/luajit2/archive/v%{luajit_ver}.tar.gz
8589

90+
Source100: checksum.sha512
91+
8692
Patch0: %{name}.patch
8793
Patch1: mime.patch
8894
# https://github.com/cloudflare/sslconfig/blob/master/patches/nginx__1.11.5_dynamic_tls_records.patch
@@ -148,6 +154,8 @@ Links for nginx compatibility.
148154
################################################################################
149155

150156
%prep
157+
%{crc_check}
158+
151159
%setup -qn nginx-%{version}
152160

153161
mkdir boringssl
@@ -579,6 +587,12 @@ rm -rf %{buildroot}
579587
################################################################################
580588

581589
%changelog
590+
* Wed Aug 14 2019 Anton Novojilov <andy@essentialkaos.com> - 1.17.3-0
591+
- Nginx updated to 1.17.3 with fixes for CVE-2019-9511 (Data dribble),
592+
CVE-2019-9513 (Resource loop) and CVE-2019-9516 (Zero‑length headers leak)
593+
- BoringSSL updated to the latest version
594+
- Added checksums for all sources
595+
582596
* Wed Jul 24 2019 Anton Novojilov <andy@essentialkaos.com> - 1.17.2-1
583597
- resty-core disabled by default
584598

0 commit comments

Comments
 (0)