-
Notifications
You must be signed in to change notification settings - Fork 317
null pointer dereference in http.cpp #793
Copy link
Copy link
Closed
Description
There is a null pointer deference bug at http.cpp:364. If the http server sends back a reply that does not contain a space character, then strchr will return NULL, leading to a null pointer dereference in atoi.
To reproduce the bug (tested on master: 55dfdb9) open two terminals. In the first terminal, start a fake webserver using response1.txt:
cat response1.txt | sudo nc -l -p 80
In the second terminal, try to connect to the fake webserver:
exiv2 http://127.0.0.1/test.jpg
There are several other calls to strcat and strstr in the same block of code. I have not written PoCs for them, but the calls to strchr on lines 351 and 362 also look vulnerable to me.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels