Commit 420244e
http: unset
Duplicate `Transfer-Encoding` header should be a treated as a single,
but with original header values concatenated with a comma separator. In
the light of this, even if the past `Transfer-Encoding` ended with
`chunked`, we should be not let the `F_CHUNKED` to leak into the next
header, because mere presence of another header indicates that `chunked`
is not the last transfer-encoding token.
Ref: nodejs-private/llhttp-private#3
See: https://hackerone.com/bugs?report_id=1002188&subject=nodejs
CVE-ID: CVE-2020-8287
PR-URL: nodejs-private/node-private#236
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>F_CHUNKED on new Transfer-Encoding
1 parent 4a30ac8 commit 420244e
File tree
2 files changed
+80
-2
lines changed- deps/llhttp/src
- test/parallel
2 files changed
+80
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
816 | 824 | | |
817 | 825 | | |
818 | 826 | | |
| |||
5974 | 5982 | | |
5975 | 5983 | | |
5976 | 5984 | | |
| 5985 | + | |
| 5986 | + | |
| 5987 | + | |
| 5988 | + | |
| 5989 | + | |
| 5990 | + | |
| 5991 | + | |
| 5992 | + | |
5977 | 5993 | | |
5978 | 5994 | | |
5979 | 5995 | | |
5980 | | - | |
| 5996 | + | |
5981 | 5997 | | |
5982 | 5998 | | |
5983 | 5999 | | |
| |||
7625 | 7641 | | |
7626 | 7642 | | |
7627 | 7643 | | |
| 7644 | + | |
| 7645 | + | |
| 7646 | + | |
| 7647 | + | |
| 7648 | + | |
| 7649 | + | |
| 7650 | + | |
| 7651 | + | |
7628 | 7652 | | |
7629 | 7653 | | |
7630 | 7654 | | |
| |||
12522 | 12546 | | |
12523 | 12547 | | |
12524 | 12548 | | |
| 12549 | + | |
| 12550 | + | |
| 12551 | + | |
| 12552 | + | |
| 12553 | + | |
| 12554 | + | |
| 12555 | + | |
| 12556 | + | |
12525 | 12557 | | |
12526 | 12558 | | |
12527 | 12559 | | |
12528 | | - | |
| 12560 | + | |
12529 | 12561 | | |
12530 | 12562 | | |
12531 | 12563 | | |
| |||
| 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 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
0 commit comments