Skip to content

SYN scan broken since r37979 #2107

Closed
res0nat0r/nmap
#1

Description

@nnposter

SYN scan no longer detects open ports. All come back as "filtered". (Regular connect scan works fine.) Bisection of the commits identified r37979 (cfff367) as the culprit.

Observed on Ubuntu 18.04 x86-64 with kernel 4.15.0-112-generic

Activity

  1. dmiller-nmap commented on Aug 24, 2020

    @dmiller-nmap

    Thanks for catching this; that's embarrassing! I'll try to sort it out.

  2. dmiller-nmap commented on Aug 24, 2020

    @dmiller-nmap

    Got it. I had relocated the pointer increment to outside the switch statement, but the switch condition was supposed to use the previous value of the pointer. I'm working also on handling the case of optlen == 1 at the beginning of the loop, which might cause us to read off the end of the options by 1 byte.

  3. nnposter commented on Aug 25, 2020

    @nnposter
    Author

    I can confirm that the fix resolves the issue. Thank you!

  4. added a commit that references this issue on Oct 7, 2020
    c461990
  5. added a commit that references this issue on Mar 20, 2024
    428c3e7
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