Add weird for unknown HTTP/0.9 request method

This commit is contained in:
Tim Wojtulewicz 2023-03-09 13:20:03 -07:00
parent 0003495a9b
commit 9cb6de7447
5 changed files with 12 additions and 2 deletions

View file

@ -984,6 +984,9 @@ void HTTP_Analyzer::DeliverStream(int len, const u_char* data, bool is_orig)
// responder because we expect raw data.
if ( request_version == HTTP_VersionNumber{0, 9} )
{
if ( request_method->ToStdString() != "GET" )
Weird("invalid_http_09_request_method", request_method->CheckString());
reply_state = EXPECT_REPLY_HTTP09;
RemoveSupportAnalyzer(content_line_resp);
}