Closed
Description
I realize this repository is no longer being actively maintained, but for those who still find the program useful, be aware that there is a serious format string vulnerability, so please carefully validate your inputs!
PoC:
$ ./dmitry "%p %p %p %p %p %p"
Deepmagic Information Gathering Tool
"There be some deep magic going on"
ERROR: Unable to locate Host IP addr. for %p %p %p %p %p %p
Continuing with limited modules
HostIP:
HostName:%p %p %p %p %p %p
Gathered Inic-whois information for 0x5598e89e9b47 (nil) (nil) 0x7ffc2f4878e0 0x7f721845de80 (nil)
[...]
A maliciously crafted input can achieve arbitrary read/write, potentially leading to arbitrary code execution.
Root Cause:
The function get_nwhois
passes linebuff
, which contains content from the command line, to print_line
:
Lines 3 to 28 in 5ad492c
This eventually reaches printf
as the format string argument:
Lines 3 to 29 in 5ad492c
This is a very unsafe usage of printf
.
Metadata
Assignees
Labels
No labels
Activity