[GH-ISSUE #1010] rar format: asan error for ./jtrts.pl -random -seed=987141 -type rar #611

Closed
opened 2026-10-14 03:15:21 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @frank-dittrich on GitHub (Jan 8, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1010

This test might be faster than the test for issue #1008 because of the smaller dictionary. The stack info is different.

(master)test $ ./jtrts.pl -type rar -stoponerror -random -seed=987181
-------------------------------------------------------------------------------
- JtR-TestSuite (jtrts). Version 1.13, Dec 21, 2014.  By, Jim Fougeron & others
- Testing:  John the Ripper password cracker, version 1.8.0.2-jumbo-1-bleeding_omp [linux-gnu 64-bit AVX2-autoconf]
--------------------------------------------------------------------------------

John Jumbo build detected.

form=rar                          guesses:    0 -show=   0 unk unk : Expected count(s) (130)  [!!!FAILED!!!  return code 256]
Exiting on error. The .pot file ./tst.pot continas the found data
The command used to run this test was:

../run/john -ses=./tst  -pot=./tst.pot rar_tst.in --wordlist=pw-40.dic -form=rar
(master)test $ rm tst.*
(master)test $ ../run/john -ses=./tst  -pot=./tst.pot rar_tst.in --wordlist=pw-40.dic -form=rar
Loaded 130 password hashes with 130 different salts (rar, RAR3 [SHA1 AES 32/64])
Will run 4 OpenMP threads
Press 'q' or Ctrl-C to abort, almost any other key for status
hello            (test076.rar)
hello            (test036.rar)
hello            (test006.rar)
hello            (test116.rar)
hello            (test106.rar)
hello            (test066.rar)
hello            (test086.rar)
hello            (test026.rar)
hello            (test126.rar)
hello            (test046.rar)
hello            (test096.rar)
=================================================================
==15152== ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fda901622cf at pc 0x4e0b16 bp 0x7fda90162210 sp 0x7fda90162200
READ of size 1 at 0x7fda901622cf thread T1
    #0 0x4e0b15 (/home/fd/git/JtR/run/john+0x4e0b15)
    #1 0x4e5333 (/home/fd/git/JtR/run/john+0x4e5333)
    #2 0x6ae658 (/home/fd/git/JtR/run/john+0x6ae658)
    #3 0x38df20ddf4 (/usr/lib64/libgomp.so.1.0.0+0xddf4)
    #4 0x7fda91792bb7 (/usr/lib64/libasan.so.0.0.0+0x19bb7)
    #5 0x38dde07ee4 (/usr/lib64/libpthread-2.18.so+0x7ee4)
    #6 0x38dd6f4b8c (/usr/lib64/libc-2.18.so+0xf4b8c)
Address 0x7fda901622cf is located at offset 95 in frame <read_tables> of T1's stack:
  This frame has 2 object(s):
    [32, 52) 'bit_length'
    [96, 500) 'table'
HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext
      (longjmp and C++ exceptions *are* supported)
Thread T1 created by T0 here:
    #0 0x7fda91783d2a (/usr/lib64/libasan.so.0.0.0+0xad2a)
    #1 0x38df20e35f (/usr/lib64/libgomp.so.1.0.0+0xe35f)
    #2 0x6afea7 (/home/fd/git/JtR/run/john+0x6afea7)
    #3 0x7696f4 (/home/fd/git/JtR/run/john+0x7696f4)
    #4 0x776e25 (/home/fd/git/JtR/run/john+0x776e25)
    #5 0x7780fb (/home/fd/git/JtR/run/john+0x7780fb)
    #6 0x38dd621d64 (/usr/lib64/libc-2.18.so+0x21d64)
Shadow bytes around the buggy address:
  0x0ffbd2024400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ffbd2024410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ffbd2024420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ffbd2024430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ffbd2024440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1
=>0x0ffbd2024450: f1 f1 00 00 04 f4 f2 f2 f2[f2]00 00 00 00 00 00
  0x0ffbd2024460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ffbd2024470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ffbd2024480: 00 00 00 00 00 00 00 00 00 00 00 00 04 f4 f3 f3
  0x0ffbd2024490: f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0ffbd20244a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:     fa
  Heap righ redzone:     fb
  Freed Heap region:     fd
  Stack left redzone:    f1
  Stack mid redzone:     f2
  Stack right redzone:   f3
  Stack partial redzone: f4
  Stack after return:    f5
  Stack use after scope: f8
  Global redzone:        f9
  Global init order:     f6
  Poisoned by user:      f7
  ASan internal:         fe
==15152== ABORTING
(master)test $ ../run/asan_symbolize.py 
    #0 0x4e0b15 (/home/fd/git/JtR/run/john+0x4e0b15)
    #1 0x4e5333 (/home/fd/git/JtR/run/john+0x4e5333)
    #2 0x6ae658 (/home/fd/git/JtR/run/john+0x6ae658)
    #3 0x38df20ddf4 (/usr/lib64/libgomp.so.1.0.0+0xddf4)
    #4 0x7fda91792bb7 (/usr/lib64/libasan.so.0.0.0+0x19bb7)
    #5 0x38dde07ee4 (/usr/lib64/libpthread-2.18.so+0x7ee4)
    #6 0x38dd6f4b8c (/usr/lib64/libc-2.18.so+0xf4b8c)
llvm-symbolizer: for the -functions option: 'short' is invalid value for boolean argument! Try 0 or 1
    #0 0x4e0b15 in read_tables /home/fd/git/JtR/src/unrar.c:542
    #1 0x4e5333 in rar_unpack29 /home/fd/git/JtR/src/unrar.c:1003
    #2 0x6ae658 in crypt_all._omp_fn.1 /home/fd/git/JtR/src/rar_fmt_plug.c:801
    #3 0x38df20ddf4 in ?? ??:0
    #4 0x7fda91792bb7 in __asan_describe_address ??:?
    #5 0x38dde07ee4 in ?? ??:0
    #6 0x38dd6f4b8c in ?? ??:0


    #0 0x7fda91783d2a (/usr/lib64/libasan.so.0.0.0+0xad2a)
    #1 0x38df20e35f (/usr/lib64/libgomp.so.1.0.0+0xe35f)
    #2 0x6afea7 (/home/fd/git/JtR/run/john+0x6afea7)
    #3 0x7696f4 (/home/fd/git/JtR/run/john+0x7696f4)
    #4 0x776e25 (/home/fd/git/JtR/run/john+0x776e25)
    #5 0x7780fb (/home/fd/git/JtR/run/john+0x7780fb)
    #6 0x38dd621d64 (/usr/lib64/libc-2.18.so+0x21d64)
    #0 0x7fda91783d2a in __interceptor_pthread_create ??:?
    #1 0x38df20e35f in ?? ??:0
    #2 0x6afea7 in crypt_all /home/fd/git/JtR/src/rar_fmt_plug.c:666
    #3 0x7696f4 in fmt_self_test_body /home/fd/git/JtR/src/formats.c:497
    #4 0x776e25 in john_run /home/fd/git/JtR/src/john.c:1299
    #5 0x7780fb in main /home/fd/git/JtR/src/john.c:1651
    #6 0x38dd621d64 in ?? ??:0
Originally created by @frank-dittrich on GitHub (Jan 8, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1010 This test might be faster than the test for issue #1008 because of the smaller dictionary. The stack info is different. ``` (master)test $ ./jtrts.pl -type rar -stoponerror -random -seed=987181 ------------------------------------------------------------------------------- - JtR-TestSuite (jtrts). Version 1.13, Dec 21, 2014. By, Jim Fougeron & others - Testing: John the Ripper password cracker, version 1.8.0.2-jumbo-1-bleeding_omp [linux-gnu 64-bit AVX2-autoconf] -------------------------------------------------------------------------------- John Jumbo build detected. form=rar guesses: 0 -show= 0 unk unk : Expected count(s) (130) [!!!FAILED!!! return code 256] Exiting on error. The .pot file ./tst.pot continas the found data The command used to run this test was: ../run/john -ses=./tst -pot=./tst.pot rar_tst.in --wordlist=pw-40.dic -form=rar (master)test $ rm tst.* (master)test $ ../run/john -ses=./tst -pot=./tst.pot rar_tst.in --wordlist=pw-40.dic -form=rar Loaded 130 password hashes with 130 different salts (rar, RAR3 [SHA1 AES 32/64]) Will run 4 OpenMP threads Press 'q' or Ctrl-C to abort, almost any other key for status hello (test076.rar) hello (test036.rar) hello (test006.rar) hello (test116.rar) hello (test106.rar) hello (test066.rar) hello (test086.rar) hello (test026.rar) hello (test126.rar) hello (test046.rar) hello (test096.rar) ================================================================= ==15152== ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fda901622cf at pc 0x4e0b16 bp 0x7fda90162210 sp 0x7fda90162200 READ of size 1 at 0x7fda901622cf thread T1 #0 0x4e0b15 (/home/fd/git/JtR/run/john+0x4e0b15) #1 0x4e5333 (/home/fd/git/JtR/run/john+0x4e5333) #2 0x6ae658 (/home/fd/git/JtR/run/john+0x6ae658) #3 0x38df20ddf4 (/usr/lib64/libgomp.so.1.0.0+0xddf4) #4 0x7fda91792bb7 (/usr/lib64/libasan.so.0.0.0+0x19bb7) #5 0x38dde07ee4 (/usr/lib64/libpthread-2.18.so+0x7ee4) #6 0x38dd6f4b8c (/usr/lib64/libc-2.18.so+0xf4b8c) Address 0x7fda901622cf is located at offset 95 in frame <read_tables> of T1's stack: This frame has 2 object(s): [32, 52) 'bit_length' [96, 500) 'table' HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext (longjmp and C++ exceptions *are* supported) Thread T1 created by T0 here: #0 0x7fda91783d2a (/usr/lib64/libasan.so.0.0.0+0xad2a) #1 0x38df20e35f (/usr/lib64/libgomp.so.1.0.0+0xe35f) #2 0x6afea7 (/home/fd/git/JtR/run/john+0x6afea7) #3 0x7696f4 (/home/fd/git/JtR/run/john+0x7696f4) #4 0x776e25 (/home/fd/git/JtR/run/john+0x776e25) #5 0x7780fb (/home/fd/git/JtR/run/john+0x7780fb) #6 0x38dd621d64 (/usr/lib64/libc-2.18.so+0x21d64) Shadow bytes around the buggy address: 0x0ffbd2024400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ffbd2024410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ffbd2024420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ffbd2024430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ffbd2024440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 =>0x0ffbd2024450: f1 f1 00 00 04 f4 f2 f2 f2[f2]00 00 00 00 00 00 0x0ffbd2024460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ffbd2024470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ffbd2024480: 00 00 00 00 00 00 00 00 00 00 00 00 04 f4 f3 f3 0x0ffbd2024490: f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ffbd20244a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Heap righ redzone: fb Freed Heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 ASan internal: fe ==15152== ABORTING ``` ``` (master)test $ ../run/asan_symbolize.py #0 0x4e0b15 (/home/fd/git/JtR/run/john+0x4e0b15) #1 0x4e5333 (/home/fd/git/JtR/run/john+0x4e5333) #2 0x6ae658 (/home/fd/git/JtR/run/john+0x6ae658) #3 0x38df20ddf4 (/usr/lib64/libgomp.so.1.0.0+0xddf4) #4 0x7fda91792bb7 (/usr/lib64/libasan.so.0.0.0+0x19bb7) #5 0x38dde07ee4 (/usr/lib64/libpthread-2.18.so+0x7ee4) #6 0x38dd6f4b8c (/usr/lib64/libc-2.18.so+0xf4b8c) llvm-symbolizer: for the -functions option: 'short' is invalid value for boolean argument! Try 0 or 1 #0 0x4e0b15 in read_tables /home/fd/git/JtR/src/unrar.c:542 #1 0x4e5333 in rar_unpack29 /home/fd/git/JtR/src/unrar.c:1003 #2 0x6ae658 in crypt_all._omp_fn.1 /home/fd/git/JtR/src/rar_fmt_plug.c:801 #3 0x38df20ddf4 in ?? ??:0 #4 0x7fda91792bb7 in __asan_describe_address ??:? #5 0x38dde07ee4 in ?? ??:0 #6 0x38dd6f4b8c in ?? ??:0 #0 0x7fda91783d2a (/usr/lib64/libasan.so.0.0.0+0xad2a) #1 0x38df20e35f (/usr/lib64/libgomp.so.1.0.0+0xe35f) #2 0x6afea7 (/home/fd/git/JtR/run/john+0x6afea7) #3 0x7696f4 (/home/fd/git/JtR/run/john+0x7696f4) #4 0x776e25 (/home/fd/git/JtR/run/john+0x776e25) #5 0x7780fb (/home/fd/git/JtR/run/john+0x7780fb) #6 0x38dd621d64 (/usr/lib64/libc-2.18.so+0x21d64) #0 0x7fda91783d2a in __interceptor_pthread_create ??:? #1 0x38df20e35f in ?? ??:0 #2 0x6afea7 in crypt_all /home/fd/git/JtR/src/rar_fmt_plug.c:666 #3 0x7696f4 in fmt_self_test_body /home/fd/git/JtR/src/formats.c:497 #4 0x776e25 in john_run /home/fd/git/JtR/src/john.c:1299 #5 0x7780fb in main /home/fd/git/JtR/src/john.c:1651 #6 0x38dd621d64 in ?? ??:0 ```
bsakaguchi 2026-10-14 03:15:21 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#611
No description provided.