mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
fix using chunked mode with HTTP/1.0
According to RFC 7230, Transfer-Encoding was added in HTTP/1.1. Such a header in a HTTP/1.0 message should be ignored. Interpreting it can be harmful when sending a HTTP/1.0 message because the parser would indefinitely wait for a chunk size instead of parsing the message's body as non-chunked, leading to a HTTP content evasion.
This commit is contained in:
parent
2e2d086144
commit
ec4a936f66
2 changed files with 13 additions and 1 deletions
|
@ -178,6 +178,11 @@ public:
|
|||
void ConnectionReset() override;
|
||||
void PacketWithRST() override;
|
||||
|
||||
double GetRequestVersion() { return request_version; };
|
||||
double GetReplyVersion() { return reply_version; };
|
||||
int GetRequestOngoing() { return request_ongoing; };
|
||||
int GetReplyOngoing() { return reply_ongoing; };
|
||||
|
||||
static analyzer::Analyzer* Instantiate(Connection* conn)
|
||||
{ return new HTTP_Analyzer(conn); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue