Commit 47d6ced
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.
Refs: https://hackerone.com/reports/1043360
CVE-ID: CVE-2021-22883
PR-URL: nodejs-private/node-private#246
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 10d9efe commit 47d6ced
3 files changed
Lines changed: 84 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2048 | 2048 | | |
2049 | 2049 | | |
2050 | 2050 | | |
2051 | | - | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
2052 | 2054 | | |
2053 | 2055 | | |
2054 | 2056 | | |
| |||
2120 | 2122 | | |
2121 | 2123 | | |
2122 | 2124 | | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
2123 | 2128 | | |
2124 | 2129 | | |
2125 | 2130 | | |
| |||
2226 | 2231 | | |
2227 | 2232 | | |
2228 | 2233 | | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
2229 | 2238 | | |
2230 | 2239 | | |
2231 | 2240 | | |
| |||
2262 | 2271 | | |
2263 | 2272 | | |
2264 | 2273 | | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
2265 | 2277 | | |
2266 | 2278 | | |
2267 | 2279 | | |
| |||
2358 | 2370 | | |
2359 | 2371 | | |
2360 | 2372 | | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
2361 | 2377 | | |
2362 | 2378 | | |
2363 | 2379 | | |
| |||
2391 | 2407 | | |
2392 | 2408 | | |
2393 | 2409 | | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
2394 | 2413 | | |
2395 | 2414 | | |
2396 | 2415 | | |
| |||
2474 | 2493 | | |
2475 | 2494 | | |
2476 | 2495 | | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
2477 | 2500 | | |
2478 | 2501 | | |
2479 | 2502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
2899 | 2899 | | |
2900 | 2900 | | |
2901 | 2901 | | |
2902 | | - | |
| 2902 | + | |
2903 | 2903 | | |
2904 | 2904 | | |
2905 | 2905 | | |
2906 | 2906 | | |
2907 | 2907 | | |
2908 | | - | |
2909 | | - | |
| 2908 | + | |
| 2909 | + | |
2910 | 2910 | | |
2911 | 2911 | | |
2912 | 2912 | | |
| |||
2966 | 2966 | | |
2967 | 2967 | | |
2968 | 2968 | | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
| 2974 | + | |
| 2975 | + | |
| 2976 | + | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
2969 | 2985 | | |
2970 | 2986 | | |
2971 | 2987 | | |
| |||
3011 | 3027 | | |
3012 | 3028 | | |
3013 | 3029 | | |
| 3030 | + | |
| 3031 | + | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
3014 | 3037 | | |
3015 | 3038 | | |
3016 | 3039 | | |
| |||
| 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