Add a service probe, NSE script version scan , and NSE script for CVE-2024-54772 for MikroTik-WinBox #2973
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The non-legacy payload starts with bytes “\x22\x06” and it is 36 bytes long. The response should match the following: 35 bytes of data, the first 2 bytes are “\x21\x06” and the last byte is either \x00 or \x01. In this case, the RouterOS version is 6.43+.
The legacy payload starts with bytes “\xf8\x05” and it is 250 bytes long. The response should match the following: 250 bytes of data and the first 2 bytes are “\xf8\x05”. Legacy match avoids echo services. In this case, the RouterOS version is < 6.43.
The NSE script "mikrotik-routeros-version.nse" can get the exact version of the RouterOS.
Please, read the following report winbox_service_probe.
The NSE script "mikrotik-routeros-usernames-enum.nse" can enumerate valid usernames using WinBox service in MikroTik-RouterOS (CVE-2024-54772).