mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1163] --prince-loopback and --min-length: asan error #729
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#729
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 (Mar 27, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1163
This bug is found by fuzzzing John using Fuzz Options.
#1. Prepare
1.1 content of 7z_fmt
1.2 compile with asan
#2. Reproduce
Loaded 1 password hash (7z, 7-Zip [SHA256 AES 32/64])
Will run 8 OpenMP threads
Note: This format may emit false positives, so it will keep trying even after
finding a possible candidate.
Press 'q' or Ctrl-C to abort, almost any other key for status
ASAN:SIGSEGV
==117718==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000791134 sp 0x7fffa070b880 bp 0x7fffa070b880 T0)
#0 0x791133 in sort_by_cnt /home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options_asan/src/pp.c:560
#1 0x7f30edde0408 (/lib/x86_64-linux-gnu/libc.so.6+0x3a408)
#2 0x7f30edde1721 in qsort_r (/lib/x86_64-linux-gnu/libc.so.6+0x3b721)
#3 0x7961d5 in do_prince_crack /home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options_asan/src/pp.c:1882
#4 0x73f854 in john_run /home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options_asan/src/john.c:1393
#5 0x74062e in main /home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options_asan/src/john.c:1687
#6 0x7f30eddc7ec4 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)
#7 0x406cb2 (/home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options_asan/run/john+0x406cb2)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options_asan/src/pp.c:560 sort_by_cnt
==117718==ABORTING
Aborted
@magnumripper commented on GitHub (Mar 27, 2015):
Ooops. We do have a check for this in place, but apparently it happens later than prince init.
@magnumripper commented on GitHub (Mar 27, 2015):
It turns out those length checks are per mode, so we lacked them for Prince.