mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2246] ASan error in Salted-SHA1 format #1503
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#1503
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 @frank-dittrich on GitHub (Aug 29, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2246
Originally assigned to: @frank-dittrich on GitHub.
@frank-dittrich commented on GitHub (Aug 29, 2016):
@jfoug your change fixed this issue, but is it correct? I don't know.
Now I was able to make Salted-SHA1 crash on another input file. I guess some base64 validity check is needed.
@frank-dittrich commented on GitHub (Aug 29, 2016):
Here are other "hashes" that make Salted-SHA1 (ASan) crash.
All found using afl, see https://github.com/mirrorer/afl.
The first sample was the only one found prior to your fix which still caused problems after your latest change.
The others have been found when testing the latest build. It took less than 15 minutes to find the first 3 hashes. The test is still running. I might add new hashes to the list if they look different from what has been found earlier.
@jfoug commented on GitHub (Aug 29, 2016):
I do agree, that this does need to be done post base64-2-raw. What is being done is it is not valid to have a hash without a salt. But by tacking on a number of = signs to a shorter hash, it will always have enough base64 bytes.
I will dig deeper.
@jfoug commented on GitHub (Aug 29, 2016):
425a130Please try now. There should be no overwrites any more.@frank-dittrich commented on GitHub (Aug 29, 2016):
@jfoug
@jfoug commented on GitHub (Aug 29, 2016):
Tag, your it.
b4648deI stopped all length checking (other than some 'sanity' checking), of the base-64 stuff. The new code decodes to raw, using the 'new' better functions, and then uses the length returned there.
@frank-dittrich commented on GitHub (Aug 29, 2016):
@jfoug Fixed, thanks.