mirror of
https://github.com/openwall/john.git
synced 2026-12-03 20:43:49 +07:00
[GH-ISSUE #1941] double free in ssh2john #1293
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#1293
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 @magnumripper on GitHub (Dec 8, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1941
Originally assigned to: @kholia on GitHub.
Reported by Hanno Böck
There is a double free error in ssh2john if you run it against a file
that contains two ssl certificate blocks.
Just take a random certificate, add it twice to a file:
and run
Seems there is a loop that is freeing all openssl objects at the end of
the loop and then reusing the same objects and freeing them for every
iteration of the loop.
@kholia commented on GitHub (Dec 8, 2015):
I am thinking of removing ssh2john.c and ssh_fmt_plug.c. The code is simply terrible.
ssh-ngandpemformats are better for doing this stuff.@magnumripper commented on GitHub (Dec 8, 2015):
Is there any functionality that only the non-ng format can provide?
@kholia commented on GitHub (Dec 9, 2015):
sshcan handle PEM files which use AES. Our newpemformat can be extended to do that as well.@magnumripper commented on GitHub (Dec 21, 2015):
This is sort of fixed (deprecating the format) but not merged yet. Changing label accordingly.