mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1667] Bitcoin format -- EVP_DecryptFinal_ex() double free or corruption #1102
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#1102
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 (Aug 15, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1667
This bug can not be reproduced every time. There is at least 1 crash when you run 200 times.
Also can not reproduced in my local machine, since I can not make the bitcoin. max_keys_per_crypt = 64.
This bug is found on super by Solar. See http://www.openwall.com/lists/john-dev/2015/08/06/13
If your bitcoin. max_keys_per_crypt is not 64, please set this "OMP_NUM_THREADS=32".
#1. Reproduce
$ cat pwd.lst
$ cat pwfile
$ rm -f ./john.pot && ./john pwfile --format=bitcoin --wordlist=pwd.lst --skip-self-test
sometimes it reports another error
Here I wrote a simple script to run 50 times, maybe you can use it.
$ cat loop.sh
@magnumripper commented on GitHub (Aug 19, 2015):
All EVP AES CBC crap in this format (and other ones) should be replaced with our local "aes.h" and the functions declared in it (lower level interface, run-time detection of AES-NI and usually much faster for our use).
@magnumripper commented on GitHub (Aug 19, 2015):
Done in
0e2beec.@loverszhaokai please re-test. I'm pretty sure the bug is fixed now. If there's indeed a bug still in our code, it's probably easier to detect now, and ASan might be able to trigger on it.
@magnumripper commented on GitHub (Aug 19, 2015):
See also #1686
@loverszhaokai commented on GitHub (Aug 20, 2015):
@magnumripper I have run "./john --test-full=0 --format=bitcoin" about 500 times and it did not crash. I think this bug is fixed. Thanks.