mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1264] Several formats allow "negative iteration counts" etc. #799
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#799
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 (May 3, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1264
Originally assigned to: @frank-dittrich on GitHub.
They just use
atoi(p). They should use useisdecu(p)first and reject invalid hashes.After changing "iteration count" from
1000to-1000:I gave up here, pressing ^C twice after about 20 seconds.
agilekeychain is not the only format.
At least the KeePass format has similar errors, but there might be more.
@frank-dittrich commented on GitHub (May 3, 2015):
Since these formats use unsigned int for iterations/rounds, these negative integer values get translated into numbers close to UINT_MAX. I don't think this behaviour is intended.
@jfoug commented on GitHub (Aug 3, 2015):
I am pretty sure this bug is fixed. The isdec() function now returns false for negative numbers. Thus as long as isdec() is used, then this problem should be fixed by valid returning false for these type items.
@frank-dittrich can you look at this just in case I missed something.