mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-02 00:33:27 +08:00
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
id: ssh-diffie-hellman-logjam
|
|
|
|
info:
|
|
name: SSH Diffie-Hellman Modulus <= 1024 Bits
|
|
author: pussycat0x
|
|
severity: low
|
|
description: |
|
|
SSH weak algorithms are outdated cryptographic methods that pose security risks. Identifying and disabling these vulnerable algorithms is crucial for enhancing the overall security of SSH connections.
|
|
reference:
|
|
- https://access.redhat.com/solutions/4278651
|
|
metadata:
|
|
verified: true
|
|
max-request: 2
|
|
shodan-query: product:"OpenSSH"
|
|
tags: javascript,ssh,misconfig,network
|
|
|
|
javascript:
|
|
- pre-condition: |
|
|
isPortOpen(Host,Port);
|
|
code: |
|
|
let m = require("nuclei/ssh");
|
|
let c = m.SSHClient();
|
|
let response = c.ConnectSSHInfoMode(Host, Port);
|
|
to_json(response);
|
|
|
|
args:
|
|
Host: "{{Host}}"
|
|
Port: "22"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "kex_algorithms"
|
|
|
|
- type: word
|
|
words:
|
|
- "diffie-hellman-group1-sha1"
|
|
# digest: 4a0a004730450220084881174c4b8de4645fdab401f1d5440224758d07b19a1fbdbf16221ade31ed022100ce896e9463b7025a4331551479bd6101f530ffac00c220d7c5af594c1267728a:922c64590222798bb761d5b6d8e72950 |