Skip to content

Further robustness checks for winshock (#1719)#1731

Merged
drwetter merged 3 commits into3.1devfrom
winshock_cipher_improvements
Sep 22, 2020
Merged

Further robustness checks for winshock (#1719)#1731
drwetter merged 3 commits into3.1devfrom
winshock_cipher_improvements

Conversation

@drwetter
Copy link
Copy Markdown
Collaborator

@drwetter drwetter commented Sep 22, 2020

This commit adds

  • a check for the elliptical curves
  • and a check for TLS extensions

which will again reduces false positives.

Background:

Also:

  • Docu phrased more precise (we're not checking ciphers and HTTP Server banner only
  • As a last resort we also take 'Microsoft-HTTPAPI/2.0' as a server header on the HTTPS branch
    and query the HTTP branch for Microsoft-IIS/8.x.
  • $EXPERIMENTAL overrides some banner and service related checks. So that e.g. SMTP servers can also
    be checked. Last but bot least ist's a vulnerability of the TLS stack.

For better debugging we'll keep the TLS extensions and offered curves in a file.
Also it adds a debug1() function which may be needed on other occasions.

Also the output is better coded as we put "check patches locally to confirm"
into a variable.

There's still room for improvement:

This commit adds

* a check for the elliptical curves
* and a check for TLS extensions

which will again reduces false positives.

Background:
* https://en.wikipedia.org/wiki/Comparison_of_TLS_implementations#Supported_elliptic_curves
* https://en.wikipedia.org/wiki/Comparison_of_TLS_implementations#Extensions

Also:

* Docu phrased more precise (we're not checking ciphers and
  HTTP Server banner only
* As a last resort we also take 'Microsoft-HTTPAPI/2.0' as a server header on the HTTPS branch
  and query the HTTP branch for Microsoft-IIS/8.x.
* $EXPERIMENTAL overrides some banner and service related checks. So that e.g. SMTP servers can also
  be checked. Last but bot least ist's a vulnerability of the TLS stack.

For better debugging we'll keep the TLS extensions and offered curves in a file.
Also it adds a debug1() function which may be needed on other occasions.

Also the output is better coded as we put "check patches locally to confirm"
into a variable.

There's still room for improvement:

* More extensions (see https://raw.githubusercontent.com/cisco/joy/master/doc/using-joy-fingerprinting-00.pdf)
* We could need a separate determine_curves() function, see #1730 as otherwise
  we can't use the curves in a non-default run.
@drwetter drwetter changed the title Further robustness check to winshock (#1719) Further robustness checks for winshock (#1719) Sep 22, 2020
... when checking other services as HTTP or RDP
and remove some not needed quotes in RHS at double square brackets
@drwetter drwetter merged commit 3d07f55 into 3.1dev Sep 22, 2020
@drwetter drwetter deleted the winshock_cipher_improvements branch September 22, 2020 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant