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
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:
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:
A maliciously crafted input can achieve arbitrary read/write, potentially leading to arbitrary code execution.
Root Cause:
The function
get_nwhois
passeslinebuff
, which contains content from the command line, toprint_line
:dmitry/src/nwhois.c
Lines 3 to 28 in 5ad492c
This eventually reaches
printf
as the format string argument:dmitry/src/output.c
Lines 3 to 29 in 5ad492c
This is a very unsafe usage of
printf
.The text was updated successfully, but these errors were encountered: