Web Framework to build REST APIs, Webservices or any HTTP endpoint in C language. Can stream large amount of data, integrate JSON data with Jansson, and create websocket services
Describe the issue
I found a UAF bug in ulfius.c, in function ulfius_webservice_dispatcher
To Reproduce
Found it by static analysis~
Expected behavior
In function ulfius_webservice_dispatcher at line 628, o_free(response); will be called, but after that, there are many uses of the variable response, I'm wondering if it might lead to some UAF bugs
System (please complete the following information):
OS/Environment [Ubuntu/github]
Ulfius Version [2.7.10/git master]
Source installation [ github package/build from source]
Describe the issue I found a UAF bug in ulfius.c, in function
ulfius_webservice_dispatcher
To Reproduce Found it by static analysis~
Expected behavior In function
ulfius_webservice_dispatcher
at line 628,o_free(response);
will be called, but after that, there are many uses of the variableresponse
, I'm wondering if it might lead to some UAF bugsSystem (please complete the following information):