Commit 8f3b537
committed
MEDIUM: proxy: Reject some header names for 'http-send-name-header' directive
From time to time, we saw the 'http-send-name-header' directive used to
overwrite the Host header to workaround limitations of a buggy application.
Most of time, this led to troubles. This was never officially supported and
each time we strongly discouraged anyone to do so. We already thought to
deprecate this directive, but it seems to be still used by few people. So
for now, we decided to strengthen the tests performed on it.
The header name is now checked during the configuration parsing to forbid
some risky names. 'Host', 'Content-Length', 'Transfer-Encoding' and
'Connection' header names are now rejected. But more headers could be added
in future.1 parent 2afcba1 commit 8f3b537
2 files changed
+11
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8366 | 8366 | | |
8367 | 8367 | | |
8368 | 8368 | | |
8369 | | - | |
8370 | | - | |
8371 | | - | |
8372 | | - | |
8373 | | - | |
8374 | | - | |
8375 | | - | |
8376 | | - | |
| 8369 | + | |
| 8370 | + | |
8377 | 8371 | | |
8378 | 8372 | | |
8379 | 8373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1476 | 1476 | | |
1477 | 1477 | | |
1478 | 1478 | | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
1479 | 1488 | | |
1480 | 1489 | | |
1481 | 1490 | | |
| |||
0 commit comments