Commit 3f2e9dc
http2: add unknownProtocol timeout
This commit add a configuration options named unknownProtocolTimeout
which can be specified to set a value for the timeout in milliseconds
that a server should wait when an unknowProtocol is sent to it. When
this happens a timer will be started and the if the socket has not been
destroyed during that time the timer callback will destoy it.
CVE-ID: CVE-2021-22883
Refs: https://hackerone.com/reports/1043360
PR-URL: nodejs-private/node-private#246
Backport PR-URL: nodejs-private/node-private#248
Reviewed-By: Beth Griggs <bgriggs@redhat.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>1 parent d1cf6a9 commit 3f2e9dc
File tree
3 files changed
+85
-5
lines changed- doc/api
- lib/internal/http2
- test/parallel
3 files changed
+85
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1865 | 1865 | | |
1866 | 1866 | | |
1867 | 1867 | | |
1868 | | - | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
1869 | 1871 | | |
1870 | 1872 | | |
1871 | 1873 | | |
| |||
1901 | 1903 | | |
1902 | 1904 | | |
1903 | 1905 | | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
1904 | 1909 | | |
1905 | 1910 | | |
1906 | 1911 | | |
| |||
1981 | 1986 | | |
1982 | 1987 | | |
1983 | 1988 | | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
1984 | 1993 | | |
1985 | 1994 | | |
1986 | 1995 | | |
| |||
2016 | 2025 | | |
2017 | 2026 | | |
2018 | 2027 | | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
2019 | 2031 | | |
2020 | 2032 | | |
2021 | 2033 | | |
| |||
2090 | 2102 | | |
2091 | 2103 | | |
2092 | 2104 | | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
2093 | 2109 | | |
2094 | 2110 | | |
2095 | 2111 | | |
| |||
2123 | 2139 | | |
2124 | 2140 | | |
2125 | 2141 | | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
2126 | 2145 | | |
2127 | 2146 | | |
2128 | 2147 | | |
| |||
2194 | 2213 | | |
2195 | 2214 | | |
2196 | 2215 | | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
2197 | 2220 | | |
2198 | 2221 | | |
2199 | 2222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
81 | | - | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
2676 | 2677 | | |
2677 | 2678 | | |
2678 | 2679 | | |
2679 | | - | |
| 2680 | + | |
2680 | 2681 | | |
2681 | 2682 | | |
2682 | 2683 | | |
| |||
2710 | 2711 | | |
2711 | 2712 | | |
2712 | 2713 | | |
2713 | | - | |
2714 | | - | |
| 2714 | + | |
| 2715 | + | |
2715 | 2716 | | |
2716 | 2717 | | |
2717 | 2718 | | |
| |||
2771 | 2772 | | |
2772 | 2773 | | |
2773 | 2774 | | |
| 2775 | + | |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
| 2779 | + | |
| 2780 | + | |
| 2781 | + | |
| 2782 | + | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
| 2790 | + | |
2774 | 2791 | | |
2775 | 2792 | | |
2776 | 2793 | | |
| |||
2810 | 2827 | | |
2811 | 2828 | | |
2812 | 2829 | | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
| 2836 | + | |
2813 | 2837 | | |
2814 | 2838 | | |
2815 | 2839 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments