You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code parses the version information in the HTTP protocol and assigns it to request->version,If the version is not 1.0/1.1, the value is unknown
src/http.c lines 204-206:
int process_http_request(s_http_request *request, s_http_response *response) {
response->version = request->version;
response->version will be unkown if the version is not 1.0/1.1
src/http.c lines 324-330:
The code does not check the value of response->version, so it will access the memory area that does not exist in C_HTTP.For example,if the attacker sends the following message, the current process of the program will crash.
GET /test HTTP/1.9
Host: 127.0.0.1:9000
User-Agent: curl/7.64.0
Accept: */*
Connection: close
After sending multiple malicious requests, the program will be denied service due to all worker crashes
The text was updated successfully, but these errors were encountered:
Thanks for opening this issue! As you may see, the project is currently hold (but definitely not dead)
I'll certainly address this issue when I'll have more time. If you want to use LEAR, and to have this issue fixed fast, consider opening pull request. I'm eager to help with that
src/http.c lines 156-165:
Code parses the version information in the HTTP protocol and assigns it to request->version,If the version is not 1.0/1.1, the value is unknown
src/http.c lines 204-206:
response->version will be unkown if the version is not 1.0/1.1
src/http.c lines 324-330:
The code does not check the value of response->version, so it will access the memory area that does not exist in C_HTTP.For example,if the attacker sends the following message, the current process of the program will crash.
After sending multiple malicious requests, the program will be denied service due to all worker crashes
The text was updated successfully, but these errors were encountered: