mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1406] NETLMv2_fmt_plug.c:229: ASAN: heap-buffer-overflow #898
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#898
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @loverszhaokai on GitHub (Jun 7, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1406
This bug is found by afl.
This problem seems like https://github.com/magnumripper/JohnTheRipper/issues/1405, they are maybe the same problem.
#1. Reproduce
$ ./configure --enable-asan && make -sj8
$ cat pwfile
$ ./john pwfile
#2. GDB debug
@jfoug commented on GitHub (Jun 22, 2015):
I think this is fixed, but I could not get the problem to replicate (bad input file).
@loverszhaokai please retest after
5c0fdf3and if the problem is gone, close out this issue.@loverszhaokai commented on GitHub (Jun 22, 2015):
@jfoug Sorry, there is still a bug. I reduced the hashes and change it to hex.
$ cat pwfile.hex
$ ../base64conv -q -i hex -o raw < pwfile.hex > pwfile
$ cat pwfile
$ ../john pwfile
@magnumripper commented on GitHub (Jun 22, 2015):
According to your report it now crashes in md5crypt, so that is a new issue, and this one is fixed.
@jfoug commented on GitHub (Jun 22, 2015):
No, the crash went from
#2 0x553911 in prepare /home/zhaokai/WorkSpace/open_wall/JohnTheRipper_kai/src/NETLMv2_fmt_plug.c:229to
#2 0x557b8f in prepare /home/zhaokai/WorkSpace/open_wall/JohnTheRipper_kai/src/NETNTLMv2_fmt_plug.c:238So the original bug was not showing, but it was now showing up in the prepare() for net-NTlmv2
We talked about that code also needing fixed. I did not fix it until I heard the first patch had fixed the problem there. Again, I 'thought' that was the problem, but I had not way to test.
@magnumripper commented on GitHub (Jun 22, 2015):
My bad, I see now: It did pick md5crypt but it still tests all other formats just for the Warning: detected hash type foo, but the string is also recognized as bar and while doing that it crashed in NTLMv2...
@magnumripper commented on GitHub (Jun 22, 2015):
But anyway it's a new format and thus a new issue!