Skip to content

NMAP crash with ssh-auth-methods.nse (patch included) #1077

Closed

Description

@sethrandall

When testing ssh-auth-methods.nse against non-standard ports, I forgot to specify ports and NMAP crashed. I have narrowed it down to running the script against port 139. I ran a debug and found the crash appears to be caused by a double free of session data. This appears to be due to a session pointer not being NULLed after the session is freed. Attached is a patch that appears to fix the issue.
nse_libssh2-session-null.txt

Activity

  1. changed the title [-]NMAP crash with ssh-auth-methods.nse[/-] [+]NMAP crash with ssh-auth-methods.nse (patch included)[/+] on Dec 13, 2017
  2. landgraf commented on May 2, 2019

    @landgraf

    This was fixed in 350bbe0

  3. landgraf commented on May 2, 2019

    @landgraf

    @dmiller-nmap can you close the issue since you've commited the fix? :)

  4. dmiller-nmap commented on May 17, 2019

    @dmiller-nmap

    Thanks!

  5. added a commit that references this issue on May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions