-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boreas use of ICMP Echo with 0 ID can cause issues on some networks #812
Comments
Hey @co60ca, Thanks a lot for reporting the issue and the great report! If the change is easy to implement we will do it soon. |
1 task
jjnicola
added a commit
that referenced
this issue
Apr 22, 2024
* Change: boreas. Use sequence number 1 and a random ping ID Close #812 Jira: SC-1064 * Fix libhiredis version for docker testing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
ICMP Echos from Boreas should use non zero id and seq. aka "Identifier" and "Sequence Number" from RFC 792 ICMP Echo. And see targets as alive.
Boreas uses identifier=0 seq=0 for ipv4 ICMP Echo requests during alive checks. Some environments appear to not like this. Despite being allowed by the spec, I think this behaviour is possibly at the least confusing since most ping tools increment the seq by one per message starting from 1, and have identifier > 0
Ipv6 echos appear to use 234 as the identifier.
This causes some environments to have all alive test fail. We are moving to "Consider Alive" however we think it benefits others to report this issue.
ping
(on Ubuntu) appears to pick seq 1..n and identifier=some number above 0 thats from the kernel I believe.When trying to debug this problem someone may attempt to use
ping
and because it uses a non 0 identifier and seq it will be difficult to debug when compared to the behaviour exhibited by boreas.Actual behavior
The ICMP Echo for alive test uses identifier=0 seq=0.
Steps to reproduce
Start a scan which uses the default alive check of ICMP Echo.
Use tcpdump on the target. As such
tcpdump -v icmp and (src 192.168.1.1 or dst 192.168.1.1) &
You will see
SENT (1.0342s) ICMP [192.168.1.30 > 192.168.1.1 Echo request (type=8/code=0) id=0 seq=0] IP [ttl=64 id=25987 iplen=28 ]
You will not receive a response if the environment does not appear to allow identifier = 0 Echos.
GVM versions
I recognize these are older but given the code appears to be unchanged in the last 3-4 years I think the problem still exists.
gsa: (gsad --version)
We do not use gsa
gvm: (gvmd --version)
Greenbone Vulnerability Manager 21.4.5~git-f27009b24-HEAD
openvas: (openvas --version)
OpenVAS 21.4.0~git-32ad87a4-HEAD
gvm-libs:
gvm-libs 21.4.4~git-59c8402c-HEAD
Environment
Operating system:
Installation method / source: (packages, source installation)
We run a mostly unmodified source install.
Logfiles
The text was updated successfully, but these errors were encountered: