You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
Activity
dmiller-nmap commentedon Aug 24, 2020
Thanks for catching this; that's embarrassing! I'll try to sort it out.
dmiller-nmap commentedon Aug 24, 2020
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 == 1at the beginning of the loop, which might cause us to read off the end of the options by 1 byte.Be more strict with TCP options parsing, avoid reading off the end of…
nnposter commentedon Aug 25, 2020
I can confirm that the fix resolves the issue. Thank you!
stef (#1)
Fix off-by-one issue in last change. Fixes nmap#2107