-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: allow cipher enumeration in SSL protocol #4297
Merged
ehsandeep
merged 2 commits into
projectdiscovery:dev
from
mionskowski-form3:mionskowski/allow-cipher-enumeration
Nov 17, 2023
Merged
feat: allow cipher enumeration in SSL protocol #4297
ehsandeep
merged 2 commits into
projectdiscovery:dev
from
mionskowski-form3:mionskowski/allow-cipher-enumeration
Nov 17, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tarunKoyalwar
approved these changes
Nov 16, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm ! thanks for contribution @mionskowski-form3
tls version enum
$ ./nuclei -u scanme.sh -t tls-version.yaml
__ _
____ __ _______/ /__ (_)
/ __ \/ / / / ___/ / _ \/ /
/ / / / /_/ / /__/ / __/ /
/_/ /_/\__,_/\___/_/\___/_/ v3.0.1
projectdiscovery.io
[INF] Current nuclei version: v3.0.1 (outdated)
[INF] Current nuclei-templates version: v9.6.9 (latest)
[INF] New templates added in latest release: 73
[INF] Templates loaded for current scan: 1
[WRN] Executing 1 unsigned templates. Use with caution.
[INF] Targets loaded for current scan: 1
[tls-version] [ssl] [info] scanme.sh:443 [["tls13","tls10","tls11","tls12"]]
Cipher Enumeration (weak & insecure)
$ ./nuclei -u scanme.sh -t weak-cipher-suites.yaml
__ _
____ __ _______/ /__ (_)
/ __ \/ / / / ___/ / _ \/ /
/ / / / /_/ / /__/ / __/ /
/_/ /_/\__,_/\___/_/\___/_/ v3.0.1
projectdiscovery.io
[INF] Current nuclei version: v3.0.1 (outdated)
[INF] Current nuclei-templates version: v9.6.9 (latest)
[INF] New templates added in latest release: 73
[INF] Templates loaded for current scan: 1
[WRN] Executing 1 unsigned templates. Use with caution.
[INF] Targets loaded for current scan: 1
[INF] Started TLS Cipher Enumeration using auto mode
[weak-cipher-suites] [ssl] [low] scanme.sh:443 [[{"ciphers":{},"version":"tls13"},{"ciphers":{"weak":["TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA","TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA"]},"version":"tls10"},{"ciphers":{"weak":["TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA","TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA"]},"version":"tls11"},{"ciphers":{"weak":["TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA","TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA"]},"version":"tls12"}]]
updated templatesid: tls-version
info:
name: TLS Version
author: pdteam
severity: info
tags: ssl
ssl:
- address: "{{Host}}:{{Port}}"
tls_version_enum: true
extractors:
- type: json
json:
- ".version_enum" id: weak-cipher-suites
info:
name: Weak Cipher Suites Detection
author: pussycat0x
severity: low
description: A weak cipher is defined as an encryption/decryption algorithm that uses a key of insufficient length. Using an insufficient length for a key in an encryption/decryption algorithm opens up the possibility (or probability) that the encryption scheme could be broken.
reference:
- https://www.acunetix.com/vulnerabilities/web/tls-ssl-weak-cipher-suites/
- http://ciphersuite.info
metadata:
max-request: 4
tags: ssl,tls,misconfig,fuzz
ssl:
- address: "{{Host}}:{{Port}}"
tls_cipher_enum: true
tls_cipher_types:
- insecure
- weak
extractors:
- type: json
json:
- ".cipher_enum" |
This was referenced Nov 16, 2023
follow up projectdiscovery/tlsx#402 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Proposed changes
This allows enabling cipher and TLS version enumeration in SSL protocol; enabling templates to access ciphers_enum to perform checks on all supported ciphers.
Checklist